Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.w|speedSensor.flange.phi|smpm.is.1.|smpm.is.2.",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.w|speedSensor.flange.phi|smpm.is.1.|smpm.is.2.",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001135/0.001135, allocations: 114.4 kB / 17.73 MB, free: 5.359 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001077/0.001077, allocations: 187.1 kB / 18.66 MB, free: 4.438 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.411/1.411, allocations: 205.1 MB / 224.5 MB, free: 12.25 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001486/0.001486, allocations: 51.88 kB / 328.5 MB, free: 3.297 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1086/0.1101, allocations: 46.62 MB / 375.2 MB, free: 4.566 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource): time 0.2989/0.409, allocations: 15.12 MB / 390.3 MB, free: 4.926 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0143/0.4234, allocations: 5.114 MB / 395.4 MB, free: 1.211 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006266/0.4298, allocations: 87.34 kB / 395.5 MB, free: 1.188 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006308/0.4362, allocations: 1.062 MB / 396.5 MB, free: 0.6172 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00997/0.4462, allocations: 1.252 MB / 397.8 MB, free: 15.79 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004146/0.4504, allocations: 0.9087 MB / 398.7 MB, free: 15.22 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.009546/0.4599, allocations: 3.621 MB / 402.3 MB, free: 13.34 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006754/0.4667, allocations: 3.266 MB / 405.6 MB, free: 11.92 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005408/0.4722, allocations: 1.728 MB / 407.3 MB, free: 11.06 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007044/0.4793, allocations: 2.049 MB / 409.4 MB, free: 10.05 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003327/0.4827, allocations: 479.2 kB / 409.8 MB, free: 10.05 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004249/0.487, allocations: 0.6784 MB / 410.5 MB, free: 9.973 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00168/0.4887, allocations: 1.142 MB / 411.7 MB, free: 9.07 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004224/0.4929, allocations: 2.035 MB / 413.7 MB, free: 7.578 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009193/0.5021, allocations: 6.257 MB / 419.9 MB, free: 2.863 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.195e-06/0.5022, allocations: 0 / 419.9 MB, free: 2.863 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.184e-06/0.5022, allocations: 4 kB / 419.9 MB, free: 2.859 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0002433/0.5025, allocations: 1.125 kB / 419.9 MB, free: 2.859 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 826 * Number of variables: 826 Notification: Performance of Generate backend data structure: time 0.01379/0.5163, allocations: 4.24 MB / 424.2 MB, free: 14.65 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.528e-05/0.5163, allocations: 8.031 kB / 424.2 MB, free: 14.64 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002862/0.5192, allocations: 0.6134 MB / 424.8 MB, free: 14.02 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004295/0.5235, allocations: 2.128 MB / 426.9 MB, free: 11.84 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002176/0.5238, allocations: 242.6 kB / 427.2 MB, free: 11.6 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005304/0.5243, allocations: 312.3 kB / 427.5 MB, free: 11.3 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008059/0.5324, allocations: 4.043 MB / 431.5 MB, free: 7.191 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.063e-05/0.5325, allocations: 7.938 kB / 431.5 MB, free: 7.184 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000338/0.5328, allocations: 135.9 kB / 431.7 MB, free: 7.051 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001554/0.533, allocations: 146.2 kB / 431.8 MB, free: 6.906 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006645/0.5396, allocations: 3.374 MB / 435.2 MB, free: 3.523 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02667/0.5663, allocations: 13.16 MB / 448.3 MB, free: 5.914 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004449/0.5708, allocations: 3.962 MB / 452.3 MB, free: 1.449 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001595/0.5725, allocations: 0.9877 MB / 453.3 MB, free: 476 kB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004648/0.5771, allocations: 2.646 MB / 455.9 MB, free: 13.73 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.641e-05/0.5772, allocations: 51.5 kB / 456 MB, free: 13.67 MB / 382.1 MB Notification: Performance of pre-optimization done (n=108): time 3.006e-06/0.5772, allocations: 3.938 kB / 456 MB, free: 13.66 MB / 382.1 MB Notification: Performance of matching and sorting (n=142): time 0.01218/0.5894, allocations: 5.994 MB / 462 MB, free: 7.574 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.695e-05/0.5895, allocations: 72.7 kB / 462.1 MB, free: 7.488 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002913/0.5924, allocations: 1.896 MB / 464 MB, free: 5.547 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001068/0.5925, allocations: 45.7 kB / 464 MB, free: 5.496 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001077/0.5936, allocations: 1.505 MB / 465.5 MB, free: 3.973 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004011/0.594, allocations: 488.9 kB / 466 MB, free: 3.488 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000519/0.5945, allocations: 335.2 kB / 466.3 MB, free: 3.152 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001046/0.5947, allocations: 301.1 kB / 466.6 MB, free: 2.855 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001328/0.596, allocations: 0.7652 MB / 467.4 MB, free: 2.09 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0018/0.5978, allocations: 1.379 MB / 468.7 MB, free: 452 kB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003443/0.6013, allocations: 2.312 MB / 471.1 MB, free: 13.86 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.345e-05/0.6013, allocations: 7.938 kB / 471.1 MB, free: 13.86 MB / 398.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.004607/0.6059, allocations: 2.473 MB / 473.5 MB, free: 11.36 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.498e-05/0.6059, allocations: 12 kB / 473.6 MB, free: 11.35 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.362e-05/0.606, allocations: 20 kB / 473.6 MB, free: 11.33 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003891/0.6064, allocations: 130.9 kB / 473.7 MB, free: 11.2 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001745/0.6082, allocations: 491.2 kB / 474.2 MB, free: 10.71 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001311/0.6095, allocations: 1.406 MB / 475.6 MB, free: 9.168 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001815/0.6113, allocations: 116 kB / 475.7 MB, free: 9.055 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001426/0.6115, allocations: 83.98 kB / 475.8 MB, free: 8.973 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 87 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (232): * Single equations (assignments): 229 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002273/0.6138, allocations: 0.9889 MB / 476.8 MB, free: 7.973 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004443/0.6142, allocations: 201.5 kB / 477 MB, free: 7.773 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00349/0.6177, allocations: 1.961 MB / 478.9 MB, free: 5.793 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.202e-05/0.6178, allocations: 19.94 kB / 478.9 MB, free: 5.773 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.591e-06/0.6178, allocations: 4 kB / 479 MB, free: 5.77 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.677e-05/0.6178, allocations: 7.969 kB / 479 MB, free: 5.762 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007822/0.6256, allocations: 4.983 MB / 483.9 MB, free: 0.668 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.083e-05/0.6257, allocations: 4 kB / 483.9 MB, free: 0.6641 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001323/0.627, allocations: 315.8 kB / 484.3 MB, free: 364 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002962/0.6273, allocations: 98.45 kB / 484.4 MB, free: 256 kB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.568e-05/0.6274, allocations: 28 kB / 484.4 MB, free: 228 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001046/0.6284, allocations: 1.378 MB / 485.8 MB, free: 14.7 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.954e-06/0.6284, allocations: 0 / 485.8 MB, free: 14.7 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004562/0.633, allocations: 3.09 MB / 488.8 MB, free: 11.55 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001104/0.6341, allocations: 454.5 kB / 489.3 MB, free: 11.09 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002464/0.6344, allocations: 28 kB / 489.3 MB, free: 11.06 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001021/0.6354, allocations: 79.91 kB / 489.4 MB, free: 10.98 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002002/0.6356, allocations: 93.19 kB / 489.5 MB, free: 10.89 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.071e-05/0.6357, allocations: 40 kB / 489.5 MB, free: 10.86 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001999/0.6377, allocations: 1.281 MB / 490.8 MB, free: 9.551 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.6377, allocations: 3.938 kB / 490.8 MB, free: 9.547 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002006/0.6397, allocations: 0.5312 MB / 491.3 MB, free: 9.016 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 2 (smpm.inertiaRotor.w,quadraticSpeedDependentTorque.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (141): * Single equations (assignments): 138 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003972/0.6402, allocations: 170.9 kB / 491.5 MB, free: 8.836 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003278/0.6434, allocations: 2.223 MB / 493.7 MB, free: 6.559 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.48e-06/0.6435, allocations: 0 / 493.7 MB, free: 6.559 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001595/0.6451, allocations: 1.175 MB / 494.9 MB, free: 5.332 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00249/0.6476, allocations: 0.5076 MB / 495.4 MB, free: 4.82 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009766/0.6574, allocations: 5.574 MB / 0.4892 GB, free: 15.19 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001973/0.6594, allocations: 2.259 MB / 0.4915 GB, free: 12.9 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001703/0.6611, allocations: 0.5131 MB / 0.492 GB, free: 12.38 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004249/0.6615, allocations: 151.4 kB / 0.4921 GB, free: 12.23 MB / 430.1 MB Notification: Performance of SimCode: time 6.32e-07/0.6615, allocations: 0 / 0.4921 GB, free: 12.23 MB / 430.1 MB Notification: Performance of Templates: time 0.05097/0.7125, allocations: 26.56 MB / 0.518 GB, free: 1.625 MB / 446.1 MB make -j1 -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.makefile (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.sim & ./Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches