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.001356/0.001356, allocations: 107.5 kB / 18.4 MB, free: 4.699 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.001283/0.001283, allocations: 187.1 kB / 19.33 MB, free: 3.781 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.417/1.417, allocations: 205.1 MB / 225.2 MB, free: 12.23 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.001217/0.001217, allocations: 43.94 kB / 329.2 MB, free: 3.293 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0872/0.08842, allocations: 46.63 MB / 375.8 MB, free: 4.555 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource): time 0.2003/0.2888, allocations: 15.11 MB / 391 MB, free: 4.488 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01089/0.2997, allocations: 5.12 MB / 396.1 MB, free: 0.9453 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00366/0.3035, allocations: 83.91 kB / 396.2 MB, free: 0.9258 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004191/0.3077, allocations: 1.066 MB / 397.2 MB, free: 360 kB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005527/0.3132, allocations: 1.251 MB / 398.5 MB, free: 15.53 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003422/0.3167, allocations: 0.8958 MB / 399.4 MB, free: 14.96 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.006623/0.3233, allocations: 3.626 MB / 403 MB, free: 13.08 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006135/0.3295, allocations: 3.258 MB / 406.3 MB, free: 11.66 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004015/0.3336, allocations: 1.727 MB / 408 MB, free: 10.8 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004862/0.3385, allocations: 2.052 MB / 410 MB, free: 9.789 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002069/0.3406, allocations: 478.8 kB / 410.5 MB, free: 9.789 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003312/0.3439, allocations: 0.6766 MB / 411.2 MB, free: 9.715 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002489/0.3464, allocations: 1.149 MB / 412.3 MB, free: 8.852 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005416/0.3519, allocations: 2.036 MB / 414.4 MB, free: 7.359 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01043/0.3623, allocations: 6.246 MB / 420.6 MB, free: 2.656 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.354e-06/0.3624, allocations: 0 / 420.6 MB, free: 2.656 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.436e-06/0.3624, allocations: 3.938 kB / 420.6 MB, free: 2.652 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0002566/0.3627, allocations: 7.938 kB / 420.6 MB, free: 2.645 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.01472/0.3774, allocations: 4.243 MB / 424.9 MB, free: 14.49 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.684e-05/0.3775, allocations: 8.031 kB / 424.9 MB, free: 14.48 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003955/0.3814, allocations: 0.6095 MB / 425.5 MB, free: 13.87 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005554/0.387, allocations: 2.144 MB / 427.6 MB, free: 11.67 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002986/0.3874, allocations: 234.7 kB / 427.9 MB, free: 11.44 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001341/0.3887, allocations: 312.3 kB / 428.2 MB, free: 11.13 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0113/0.4001, allocations: 4.051 MB / 432.2 MB, free: 7.02 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001439/0.4003, allocations: 3.938 kB / 432.2 MB, free: 7.016 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008951/0.4012, allocations: 128 kB / 432.3 MB, free: 6.891 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001777/0.4014, allocations: 142.2 kB / 432.5 MB, free: 6.75 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008012/0.4094, allocations: 3.378 MB / 435.9 MB, free: 3.363 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02492/0.4343, allocations: 13.16 MB / 449 MB, free: 5.754 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004215/0.4386, allocations: 3.966 MB / 453 MB, free: 1.285 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001605/0.4402, allocations: 0.9838 MB / 454 MB, free: 312 kB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004603/0.4449, allocations: 2.646 MB / 456.6 MB, free: 13.57 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.965e-05/0.4449, allocations: 51.5 kB / 456.7 MB, free: 13.51 MB / 382.1 MB Notification: Performance of pre-optimization done (n=108): time 3.417e-06/0.445, allocations: 4 kB / 456.7 MB, free: 13.5 MB / 382.1 MB Notification: Performance of matching and sorting (n=142): time 0.01184/0.4568, allocations: 5.997 MB / 462.7 MB, free: 7.41 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.09e-05/0.4569, allocations: 68.72 kB / 462.7 MB, free: 7.328 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002873/0.4598, allocations: 1.889 MB / 464.6 MB, free: 5.395 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002159/0.46, allocations: 49.7 kB / 464.7 MB, free: 5.34 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009996/0.461, allocations: 1.497 MB / 466.2 MB, free: 3.824 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004568/0.4615, allocations: 492.9 kB / 466.6 MB, free: 3.336 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005034/0.462, allocations: 335.2 kB / 467 MB, free: 3 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001025/0.4621, allocations: 305.1 kB / 467.3 MB, free: 2.699 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001216/0.4633, allocations: 0.7691 MB / 468 MB, free: 1.93 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001497/0.4649, allocations: 1.375 MB / 469.4 MB, free: 292 kB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002758/0.4676, allocations: 2.316 MB / 471.7 MB, free: 13.7 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.263e-05/0.4676, allocations: 7.938 kB / 471.7 MB, free: 13.7 MB / 398.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.003963/0.4716, allocations: 2.473 MB / 474.2 MB, free: 11.2 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.27e-05/0.4717, allocations: 19.94 kB / 474.2 MB, free: 11.18 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.75e-05/0.4717, allocations: 19.98 kB / 474.3 MB, free: 11.16 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003622/0.4721, allocations: 122.9 kB / 474.4 MB, free: 11.04 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001776/0.4739, allocations: 495.2 kB / 474.9 MB, free: 10.55 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001094/0.475, allocations: 1.406 MB / 476.3 MB, free: 9.004 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00169/0.4767, allocations: 120 kB / 476.4 MB, free: 8.887 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001715/0.4769, allocations: 80 kB / 476.5 MB, free: 8.809 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.001878/0.4788, allocations: 0.985 MB / 477.4 MB, free: 7.812 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004839/0.4793, allocations: 205.5 kB / 477.6 MB, free: 7.609 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003253/0.4825, allocations: 1.954 MB / 479.6 MB, free: 5.637 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.184e-05/0.4826, allocations: 12 kB / 479.6 MB, free: 5.625 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.764e-06/0.4826, allocations: 4 kB / 479.6 MB, free: 5.621 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.401e-05/0.4826, allocations: 11.97 kB / 479.6 MB, free: 5.609 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008406/0.491, allocations: 4.983 MB / 484.6 MB, free: 0.5156 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.298e-06/0.4911, allocations: 4 kB / 484.6 MB, free: 0.5117 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001394/0.4925, allocations: 323.8 kB / 484.9 MB, free: 200 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000316/0.4928, allocations: 94.53 kB / 485 MB, free: 96 kB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.761e-05/0.4929, allocations: 27.98 kB / 485 MB, free: 68 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00104/0.4939, allocations: 1.378 MB / 486.4 MB, free: 14.55 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.165e-06/0.494, allocations: 7.938 kB / 486.4 MB, free: 14.54 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004875/0.4989, allocations: 3.082 MB / 489.5 MB, free: 11.4 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001079/0.5, allocations: 458.5 kB / 490 MB, free: 10.93 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003049/0.5003, allocations: 24 kB / 490 MB, free: 10.91 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009977/0.5013, allocations: 79.91 kB / 490.1 MB, free: 10.83 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001838/0.5015, allocations: 97.12 kB / 490.2 MB, free: 10.73 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.888e-05/0.5016, allocations: 39.98 kB / 490.2 MB, free: 10.7 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002023/0.5036, allocations: 1.281 MB / 491.5 MB, free: 9.391 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.5036, allocations: 4 kB / 491.5 MB, free: 9.387 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002038/0.5057, allocations: 0.5312 MB / 492 MB, free: 8.855 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.0003794/0.506, allocations: 171 kB / 492.2 MB, free: 8.676 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003413/0.5095, allocations: 2.22 MB / 494.4 MB, free: 6.402 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.851e-06/0.5095, allocations: 0 / 494.4 MB, free: 6.402 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001623/0.5111, allocations: 1.179 MB / 495.6 MB, free: 5.172 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002732/0.5139, allocations: 0.5127 MB / 496.1 MB, free: 4.656 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009757/0.5237, allocations: 5.603 MB / 0.4899 GB, free: 14.99 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001903/0.5256, allocations: 2.209 MB / 0.4921 GB, free: 12.75 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008405/0.5265, allocations: 167.4 kB / 0.4923 GB, free: 12.59 MB / 430.1 MB Notification: Performance of SimCode: time 9.31e-07/0.5265, allocations: 0 / 0.4923 GB, free: 12.59 MB / 430.1 MB Notification: Performance of Templates: time 0.2963/0.8228, allocations: 86.15 MB / 0.5764 GB, free: 147.5 MB / 478.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/jenkins1/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/jenkins1/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