Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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(ModelicaTest.Rotational.TestSpeed,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|speed1.phi|speed1.w|speed2.phi|speed3.s|speed3.v|speed4.s",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed") translateModel(ModelicaTest.Rotational.TestSpeed,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|speed1.phi|speed1.w|speed2.phi|speed3.s|speed3.v|speed4.s",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001383/0.001383, allocations: 109.8 kB / 17.78 MB, free: 5.27 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.001482/0.001483, allocations: 183.1 kB / 18.71 MB, free: 4.348 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.438/1.438, allocations: 222.9 MB / 242.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2297/0.2297, allocations: 44.19 MB / 336.7 MB, free: 2.68 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001581/0.001581, allocations: 68.09 kB / 470.5 MB, free: 13.21 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.419/0.4206, allocations: 60.82 MB / 0.5189 GB, free: 3.613 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestSpeed): time 0.003547/0.4242, allocations: 2.62 MB / 0.5214 GB, free: 1.773 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001273/0.4255, allocations: 0.6456 MB / 0.5221 GB, free: 1.305 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001716/0.4257, allocations: 4.875 kB / 0.5221 GB, free: 1.305 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00018/0.4259, allocations: 42.33 kB / 0.5221 GB, free: 1.277 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001935/0.4261, allocations: 89.17 kB / 0.5222 GB, free: 1.211 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002876/0.4264, allocations: 86.73 kB / 0.5223 GB, free: 1.164 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003715/0.4268, allocations: 337.7 kB / 0.5226 GB, free: 0.9961 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001974/0.427, allocations: 82.39 kB / 0.5227 GB, free: 0.9492 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000196/0.4272, allocations: 124.3 kB / 0.5228 GB, free: 0.8945 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001851/0.4274, allocations: 135.9 kB / 0.5229 GB, free: 0.8242 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.764e-05/0.4274, allocations: 22.84 kB / 0.5229 GB, free: 0.8242 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.142e-05/0.4275, allocations: 25.62 kB / 0.523 GB, free: 0.8203 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 6.521e-05/0.4276, allocations: 54.44 kB / 0.523 GB, free: 0.7852 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001459/0.4277, allocations: 147.5 kB / 0.5232 GB, free: 0.6953 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004092/0.4281, allocations: 305.5 kB / 0.5235 GB, free: 0.5703 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.11e-06/0.4281, allocations: 0.8438 kB / 0.5235 GB, free: 0.5703 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.4281, allocations: 1.469 kB / 0.5235 GB, free: 0.5703 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.394e-06/0.4282, allocations: 0 / 0.5235 GB, free: 0.5703 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.0008801/0.429, allocations: 0.5841 MB / 0.524 GB, free: 80 kB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.152e-05/0.4291, allocations: 8.719 kB / 0.524 GB, free: 80 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.41e-05/0.4292, allocations: 33.31 kB / 0.5241 GB, free: 64 kB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004383/0.4296, allocations: 275.4 kB / 0.5243 GB, free: 15.81 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.58e-05/0.4296, allocations: 20.42 kB / 0.5243 GB, free: 15.8 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.945e-05/0.4297, allocations: 34.09 kB / 0.5244 GB, free: 15.79 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005622/0.4303, allocations: 273.4 kB / 0.5246 GB, free: 15.63 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.957e-05/0.4303, allocations: 11.14 kB / 0.5247 GB, free: 15.62 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.802e-05/0.4304, allocations: 6.688 kB / 0.5247 GB, free: 15.62 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.095e-05/0.4304, allocations: 6.062 kB / 0.5247 GB, free: 15.62 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005033/0.4309, allocations: 191.1 kB / 0.5248 GB, free: 15.57 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001937/0.4328, allocations: 1.302 MB / 0.5261 GB, free: 14.49 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004652/0.4333, allocations: 244.7 kB / 0.5264 GB, free: 14.34 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002127/0.4335, allocations: 97.19 kB / 0.5264 GB, free: 14.29 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.202e-05/0.4336, allocations: 10.94 kB / 0.5265 GB, free: 14.28 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.166e-05/0.4336, allocations: 38.75 kB / 0.5265 GB, free: 14.23 MB / 398.1 MB Notification: Performance of pre-optimization done (n=26): time 2.264e-06/0.4336, allocations: 0 / 0.5265 GB, free: 14.23 MB / 398.1 MB Notification: Performance of matching and sorting (n=32): time 0.002891/0.4365, allocations: 1.575 MB / 0.528 GB, free: 12.92 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.112e-05/0.4366, allocations: 133.4 kB / 0.5282 GB, free: 12.76 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002529/0.4369, allocations: 220.5 kB / 0.5284 GB, free: 12.61 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.45e-05/0.4369, allocations: 31.33 kB / 0.5284 GB, free: 12.57 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001184/0.437, allocations: 178.8 kB / 0.5286 GB, free: 12.41 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.115e-05/0.4371, allocations: 115.8 kB / 0.5287 GB, free: 12.31 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001149/0.4372, allocations: 76.69 kB / 0.5288 GB, free: 12.25 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001262/0.4374, allocations: 336.1 kB / 0.5291 GB, free: 11.92 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002414/0.4376, allocations: 97.59 kB / 0.5292 GB, free: 11.88 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003253/0.438, allocations: 240.5 kB / 0.5294 GB, free: 11.66 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005845/0.4385, allocations: 375.6 kB / 0.5298 GB, free: 11.36 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.085e-06/0.4386, allocations: 1.375 kB / 0.5298 GB, free: 11.36 MB / 398.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0007283/0.4393, allocations: 396.7 kB / 0.5301 GB, free: 11.16 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.916e-05/0.4393, allocations: 7.156 kB / 0.5301 GB, free: 11.16 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.867e-06/0.4393, allocations: 4.062 kB / 0.5301 GB, free: 11.16 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.988e-05/0.4394, allocations: 6.688 kB / 0.5301 GB, free: 11.16 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003688/0.4397, allocations: 94.44 kB / 0.5302 GB, free: 11.14 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.854e-05/0.4398, allocations: 15.33 kB / 0.5303 GB, free: 11.13 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002224/0.44, allocations: 33.41 kB / 0.5303 GB, free: 11.11 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.187e-05/0.44, allocations: 21.88 kB / 0.5303 GB, free: 11.11 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * 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 (48): * Single equations (assignments): 48 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001577/0.4402, allocations: 152.5 kB / 0.5305 GB, free: 10.96 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000102/0.4403, allocations: 29.78 kB / 0.5305 GB, free: 10.95 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.738e-05/0.4404, allocations: 36.39 kB / 0.5305 GB, free: 10.91 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.571e-06/0.4404, allocations: 4.344 kB / 0.5305 GB, free: 10.91 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.878e-06/0.4404, allocations: 1.031 kB / 0.5305 GB, free: 10.91 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.833e-06/0.4404, allocations: 8.984 kB / 0.5305 GB, free: 10.91 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001504/0.4419, allocations: 0.9754 MB / 0.5315 GB, free: 10.09 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.657e-06/0.442, allocations: 5.094 kB / 0.5315 GB, free: 10.09 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003545/0.4423, allocations: 78.62 kB / 0.5316 GB, free: 10.07 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.23e-06/0.4423, allocations: 2.781 kB / 0.5316 GB, free: 10.07 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.454e-05/0.4424, allocations: 11.38 kB / 0.5316 GB, free: 10.06 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.761e-06/0.4424, allocations: 2.219 kB / 0.5316 GB, free: 10.06 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.184e-06/0.4424, allocations: 5.406 kB / 0.5316 GB, free: 10.05 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009685/0.4433, allocations: 0.7257 MB / 0.5323 GB, free: 9.508 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001176/0.4435, allocations: 105.2 kB / 0.5324 GB, free: 9.395 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.492e-05/0.4435, allocations: 16.22 kB / 0.5324 GB, free: 9.383 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002873/0.4438, allocations: 25.38 kB / 0.5324 GB, free: 9.367 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.788e-05/0.4439, allocations: 23.72 kB / 0.5325 GB, free: 9.355 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.807e-05/0.4439, allocations: 11.34 kB / 0.5325 GB, free: 9.352 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001526/0.4441, allocations: 156.8 kB / 0.5326 GB, free: 9.234 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.4441, allocations: 1.125 kB / 0.5326 GB, free: 9.234 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005021/0.4446, allocations: 68.16 kB / 0.5327 GB, free: 9.223 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 6 (speed4.s,speed3.s,speed3.v,speed1.phi,speed1.w,speed2.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 (32): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000109/0.4447, allocations: 108.8 kB / 0.5328 GB, free: 9.121 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0006339/0.4454, allocations: 279.5 kB / 0.5331 GB, free: 9.008 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.4454, allocations: 0 / 0.5331 GB, free: 9.008 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002894/0.4457, allocations: 127.3 kB / 0.5332 GB, free: 8.961 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006489/0.4463, allocations: 47.12 kB / 0.5332 GB, free: 8.93 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001383/0.4477, allocations: 0.86 MB / 0.5341 GB, free: 8.27 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003482/0.4481, allocations: 0.777 MB / 0.5348 GB, free: 7.527 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001263/0.4482, allocations: 33.52 kB / 0.5348 GB, free: 7.504 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.455e-05/0.4483, allocations: 35.52 kB / 0.5349 GB, free: 7.484 MB / 398.1 MB Notification: Performance of SimCode: time 2.7e-07/0.4483, allocations: 0 / 0.5349 GB, free: 7.484 MB / 398.1 MB Notification: Performance of Templates: time 0.006091/0.4544, allocations: 2.446 MB / 0.5373 GB, free: 6.285 MB / 398.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.sim & ./ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/TestSpeed/TestSpeed.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches