Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Rotational.TestSpeed.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_ModelicaTest.Rotational.TestSpeed") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008976/0.0008978, allocations: 95.25 kB / 18 MB, free: 5.602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001021/0.001021, allocations: 201.5 kB / 18.93 MB, free: 4.719 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.322/1.322, allocations: 227.7 MB / 247.5 MB, free: 9.488 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1952/0.1952, allocations: 46.18 MB / 345.9 MB, free: 11.14 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002547/0.000255, allocations: 8.281 kB / 420.2 MB, free: 19.7 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1073/0.1076, allocations: 63.56 MB / 483.7 MB, free: 4.117 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestSpeed): time 0.003113/0.1107, allocations: 2.311 MB / 486 MB, free: 1.793 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001531/0.1123, allocations: 0.713 MB / 486.7 MB, free: 1.074 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002399/0.1126, allocations: 7.938 kB / 486.8 MB, free: 1.066 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001696/0.1128, allocations: 27.78 kB / 486.8 MB, free: 1.039 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002467/0.113, allocations: 83.27 kB / 486.9 MB, free: 0.957 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003347/0.1134, allocations: 87.91 kB / 486.9 MB, free: 0.8711 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000422/0.1138, allocations: 314.6 kB / 487.3 MB, free: 0.5625 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000184/0.114, allocations: 73.8 kB / 487.3 MB, free: 500 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000284/0.1143, allocations: 115.5 kB / 487.4 MB, free: 384 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001948/0.1145, allocations: 119.4 kB / 487.6 MB, free: 264 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.499e-05/0.1145, allocations: 12 kB / 487.6 MB, free: 252 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.957e-05/0.1146, allocations: 12 kB / 487.6 MB, free: 240 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.008e-05/0.1147, allocations: 47.77 kB / 487.6 MB, free: 192 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001431/0.1148, allocations: 172.8 kB / 487.8 MB, free: 12 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000268/0.1151, allocations: 211.8 kB / 488 MB, free: 15.8 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/0.1151, allocations: 0 / 488 MB, free: 15.8 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.1151, allocations: 0 / 488 MB, free: 15.8 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.386e-06/0.1151, allocations: 0 / 488 MB, free: 15.8 MB / 366.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.0008776/0.116, allocations: 0.5456 MB / 488.5 MB, free: 15.21 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.995e-05/0.1161, allocations: 8.031 kB / 488.6 MB, free: 15.2 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002716/0.1164, allocations: 60.53 kB / 488.6 MB, free: 15.14 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000333/0.1167, allocations: 272.6 kB / 488.9 MB, free: 14.84 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.382e-05/0.1167, allocations: 28.88 kB / 488.9 MB, free: 14.81 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.011e-05/0.1168, allocations: 28.28 kB / 488.9 MB, free: 14.79 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005083/0.1173, allocations: 298.2 kB / 489.2 MB, free: 14.47 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.015e-05/0.1173, allocations: 4 kB / 489.2 MB, free: 14.47 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.824e-05/0.1174, allocations: 12 kB / 489.2 MB, free: 14.46 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.105e-06/0.1174, allocations: 4 kB / 489.2 MB, free: 14.45 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004484/0.1178, allocations: 203.8 kB / 489.4 MB, free: 14.25 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001752/0.1196, allocations: 1.321 MB / 490.8 MB, free: 12.82 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004369/0.1201, allocations: 246.4 kB / 491 MB, free: 12.55 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002298/0.1203, allocations: 111.6 kB / 491.1 MB, free: 12.43 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.055e-05/0.1203, allocations: 16.08 kB / 491.1 MB, free: 12.41 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.172e-05/0.1204, allocations: 38.55 kB / 491.2 MB, free: 12.36 MB / 366.1 MB Notification: Performance of pre-optimization done (n=26): time 1.763e-06/0.1204, allocations: 0 / 491.2 MB, free: 12.36 MB / 366.1 MB Notification: Performance of matching and sorting (n=32): time 0.002789/0.1232, allocations: 1.635 MB / 492.8 MB, free: 10.52 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.27e-05/0.1233, allocations: 136.5 kB / 492.9 MB, free: 10.36 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002368/0.1235, allocations: 225 kB / 493.2 MB, free: 10.13 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.797e-05/0.1236, allocations: 29.7 kB / 493.2 MB, free: 10.09 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001278/0.1237, allocations: 184.2 kB / 493.4 MB, free: 9.91 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.418e-05/0.1238, allocations: 110.3 kB / 493.5 MB, free: 9.801 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.162e-05/0.1239, allocations: 37.89 kB / 493.5 MB, free: 9.758 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001257/0.124, allocations: 338.8 kB / 493.8 MB, free: 9.418 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00026/0.1243, allocations: 120.7 kB / 494 MB, free: 9.301 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003467/0.1246, allocations: 249.5 kB / 494.2 MB, free: 8.992 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006328/0.1253, allocations: 388.8 kB / 494.6 MB, free: 8.551 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.837e-06/0.1253, allocations: 0 / 494.6 MB, free: 8.551 MB / 366.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0007937/0.1261, allocations: 429.7 kB / 495 MB, free: 8.125 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.003e-05/0.1261, allocations: 10.19 kB / 495 MB, free: 8.117 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.011e-05/0.1261, allocations: 4 kB / 495 MB, free: 8.113 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.845e-05/0.1261, allocations: 8.375 kB / 495 MB, free: 8.105 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003843/0.1265, allocations: 111.8 kB / 495.1 MB, free: 7.996 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.477e-05/0.1266, allocations: 7.984 kB / 495.1 MB, free: 7.988 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000234/0.1268, allocations: 31.98 kB / 495.2 MB, free: 7.957 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.788e-05/0.1268, allocations: 19.94 kB / 495.2 MB, free: 7.938 MB / 366.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.0001712/0.127, allocations: 157.7 kB / 495.3 MB, free: 7.773 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001066/0.1271, allocations: 35.56 kB / 495.4 MB, free: 7.738 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.688e-05/0.1272, allocations: 29.7 kB / 495.4 MB, free: 7.711 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.681e-06/0.1272, allocations: 4 kB / 495.4 MB, free: 7.707 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.495e-06/0.1273, allocations: 4 kB / 495.4 MB, free: 7.703 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.882e-06/0.1273, allocations: 3.984 kB / 495.4 MB, free: 7.699 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001552/0.1288, allocations: 1.013 MB / 496.4 MB, free: 6.621 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.38e-06/0.1288, allocations: 7.938 kB / 496.4 MB, free: 6.613 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003415/0.1292, allocations: 75.94 kB / 496.5 MB, free: 6.539 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.121e-06/0.1292, allocations: 4 kB / 496.5 MB, free: 6.535 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.535e-05/0.1292, allocations: 11.94 kB / 496.5 MB, free: 6.523 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.819e-06/0.1292, allocations: 8.016 kB / 496.5 MB, free: 6.516 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.178e-06/0.1293, allocations: 4.422 kB / 496.5 MB, free: 6.512 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001044/0.1303, allocations: 0.7725 MB / 497.3 MB, free: 5.715 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.759e-05/0.1304, allocations: 100.8 kB / 497.4 MB, free: 5.598 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.928e-05/0.1304, allocations: 12 kB / 497.4 MB, free: 5.586 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002857/0.1307, allocations: 31.97 kB / 497.5 MB, free: 5.555 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.776e-05/0.1308, allocations: 23.97 kB / 497.5 MB, free: 5.531 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.635e-05/0.1308, allocations: 8 kB / 497.5 MB, free: 5.523 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001405/0.131, allocations: 160.5 kB / 497.6 MB, free: 5.371 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.131, allocations: 0 / 497.6 MB, free: 5.371 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004798/0.1315, allocations: 68 kB / 497.7 MB, free: 5.305 MB / 366.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.0001186/0.1316, allocations: 99.19 kB / 497.8 MB, free: 5.199 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006668/0.1323, allocations: 312.1 kB / 498.1 MB, free: 4.895 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.604e-06/0.1323, allocations: 0 / 498.1 MB, free: 4.895 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003022/0.1326, allocations: 140.1 kB / 498.3 MB, free: 4.758 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006922/0.1333, allocations: 47.72 kB / 498.3 MB, free: 4.715 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001524/0.1348, allocations: 1.147 MB / 499.4 MB, free: 3.52 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003534/0.1352, allocations: 0.7683 MB / 0.4885 GB, free: 2.719 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.307e-05/0.1353, allocations: 31.42 kB / 0.4885 GB, free: 2.688 MB / 366.1 MB Notification: Performance of SimCode: time 3.91e-07/0.1353, allocations: 0 / 0.4885 GB, free: 2.688 MB / 366.1 MB Notification: Performance of Templates: time 0.005758/0.1411, allocations: 3.301 MB / 0.4917 GB, free: 15.39 MB / 382.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Rotational.TestSpeed.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Rotational.TestSpeed.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Rotational.TestSpeed.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Rotational.TestSpeed.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Rotational.TestSpeed.sim & ./ModelicaTest_trunk_ModelicaTest.Rotational.TestSpeed -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Rotational.TestSpeed.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Rotational.TestSpeed_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/TestSpeed/TestSpeed.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Rotational.TestSpeed.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches