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.001164/0.001164, allocations: 113.9 kB / 17.33 MB, free: 6.008 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001527/0.001526, allocations: 205.8 kB / 18.27 MB, free: 5.09 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.568/1.568, allocations: 227.4 MB / 246.4 MB, free: 10.8 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2178/0.2178, allocations: 46.11 MB / 343.8 MB, free: 11.77 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001466/0.001466, allocations: 73.06 kB / 417 MB, free: 20.11 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1098/0.1113, allocations: 62.44 MB / 479.5 MB, free: 5.641 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestSpeed): time 0.004087/0.1154, allocations: 2.681 MB / 482.2 MB, free: 2.941 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00153/0.117, allocations: 0.7168 MB / 482.9 MB, free: 2.219 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002614/0.1173, allocations: 7.938 kB / 482.9 MB, free: 2.211 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002025/0.1175, allocations: 35.7 kB / 482.9 MB, free: 2.176 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002406/0.1177, allocations: 75.34 kB / 483 MB, free: 2.102 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003603/0.1181, allocations: 83.91 kB / 483.1 MB, free: 2.02 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004728/0.1186, allocations: 338.6 kB / 483.4 MB, free: 1.688 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001897/0.1188, allocations: 85.86 kB / 483.5 MB, free: 1.602 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002546/0.1191, allocations: 123.6 kB / 483.6 MB, free: 1.48 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000182/0.1193, allocations: 135.3 kB / 483.7 MB, free: 1.348 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.085e-05/0.1193, allocations: 23.98 kB / 483.8 MB, free: 1.324 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.482e-05/0.1194, allocations: 24 kB / 483.8 MB, free: 1.301 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.856e-05/0.1194, allocations: 59.77 kB / 483.8 MB, free: 1.242 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001431/0.1196, allocations: 147.2 kB / 484 MB, free: 1.098 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003462/0.12, allocations: 303.1 kB / 484.3 MB, free: 0.8008 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.12, allocations: 4 kB / 484.3 MB, free: 0.7969 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.12, allocations: 0 / 484.3 MB, free: 0.7969 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.083e-05/0.12, allocations: 4 kB / 484.3 MB, free: 0.793 MB / 350.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.0009045/0.1209, allocations: 0.5846 MB / 484.9 MB, free: 164 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.666e-05/0.121, allocations: 12.03 kB / 484.9 MB, free: 152 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002725/0.1212, allocations: 52.55 kB / 484.9 MB, free: 100 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003817/0.1216, allocations: 276.6 kB / 485.2 MB, free: 15.79 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.093e-05/0.1217, allocations: 16.94 kB / 485.2 MB, free: 15.77 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.333e-05/0.1217, allocations: 24.38 kB / 485.2 MB, free: 15.75 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004921/0.1222, allocations: 286.2 kB / 485.5 MB, free: 15.45 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.423e-05/0.1223, allocations: 11.89 kB / 485.5 MB, free: 15.44 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.486e-05/0.1223, allocations: 8 kB / 485.5 MB, free: 15.43 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.777e-06/0.1223, allocations: 8 kB / 485.6 MB, free: 15.42 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004071/0.1227, allocations: 183.8 kB / 485.7 MB, free: 15.24 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001952/0.1247, allocations: 1.317 MB / 487.1 MB, free: 13.82 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004625/0.1252, allocations: 242.4 kB / 487.3 MB, free: 13.54 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002253/0.1254, allocations: 99.58 kB / 487.4 MB, free: 13.43 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.636e-05/0.1254, allocations: 11.94 kB / 487.4 MB, free: 13.42 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.878e-05/0.1255, allocations: 30.56 kB / 487.4 MB, free: 13.38 MB / 366.1 MB Notification: Performance of pre-optimization done (n=26): time 2.124e-06/0.1255, allocations: 4 kB / 487.4 MB, free: 13.38 MB / 366.1 MB Notification: Performance of matching and sorting (n=32): time 0.002929/0.1284, allocations: 1.568 MB / 489 MB, free: 11.6 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.976e-05/0.1285, allocations: 132.5 kB / 489.1 MB, free: 11.44 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002508/0.1288, allocations: 230.1 kB / 489.4 MB, free: 11.21 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.286e-05/0.1288, allocations: 37.69 kB / 489.4 MB, free: 11.17 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001152/0.1289, allocations: 168.3 kB / 489.6 MB, free: 11 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.454e-05/0.129, allocations: 126.3 kB / 489.7 MB, free: 10.88 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00011/0.1292, allocations: 70.12 kB / 489.7 MB, free: 10.8 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001223/0.1293, allocations: 338.8 kB / 490.1 MB, free: 10.46 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002312/0.1295, allocations: 101.1 kB / 490.2 MB, free: 10.36 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003036/0.1298, allocations: 233.5 kB / 490.4 MB, free: 10.07 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005592/0.1304, allocations: 373.4 kB / 490.8 MB, free: 9.645 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.799e-06/0.1304, allocations: 8 kB / 490.8 MB, free: 9.637 MB / 366.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0007471/0.1312, allocations: 393 kB / 491.2 MB, free: 9.246 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.415e-05/0.1312, allocations: 8 kB / 491.2 MB, free: 9.238 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.145e-05/0.1312, allocations: 4.078 kB / 491.2 MB, free: 9.234 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.589e-05/0.1313, allocations: 11.98 kB / 491.2 MB, free: 9.223 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004168/0.1317, allocations: 99.81 kB / 491.3 MB, free: 9.125 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.575e-05/0.1317, allocations: 8.328 kB / 491.3 MB, free: 9.117 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002102/0.1319, allocations: 31.98 kB / 491.3 MB, free: 9.086 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.86e-05/0.132, allocations: 16 kB / 491.3 MB, free: 9.07 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.0001703/0.1321, allocations: 153.7 kB / 491.5 MB, free: 8.91 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001196/0.1323, allocations: 39.55 kB / 491.5 MB, free: 8.871 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.288e-05/0.1323, allocations: 29.72 kB / 491.6 MB, free: 8.844 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.283e-06/0.1324, allocations: 4 kB / 491.6 MB, free: 8.84 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.464e-05/0.1324, allocations: 11.92 kB / 491.6 MB, free: 8.828 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.202e-06/0.1324, allocations: 0 / 491.6 MB, free: 8.828 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001458/0.1338, allocations: 0.9778 MB / 492.5 MB, free: 7.785 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.845e-06/0.1339, allocations: 3.938 kB / 492.6 MB, free: 7.781 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003504/0.1342, allocations: 79.94 kB / 492.6 MB, free: 7.703 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.268e-06/0.1342, allocations: 288 / 492.6 MB, free: 7.703 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.618e-05/0.1343, allocations: 11.94 kB / 492.6 MB, free: 7.691 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.308e-06/0.1343, allocations: 12 kB / 492.7 MB, free: 7.68 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.1343, allocations: 3.938 kB / 492.7 MB, free: 7.676 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009407/0.1352, allocations: 0.7255 MB / 493.4 MB, free: 6.926 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.095e-05/0.1353, allocations: 100.8 kB / 493.5 MB, free: 6.809 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.638e-05/0.1354, allocations: 15.98 kB / 493.5 MB, free: 6.793 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002952/0.1357, allocations: 20.23 kB / 493.5 MB, free: 6.773 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.437e-05/0.1358, allocations: 27.97 kB / 493.5 MB, free: 6.746 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.829e-05/0.1358, allocations: 12 kB / 493.6 MB, free: 6.734 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001255/0.1359, allocations: 160.5 kB / 493.7 MB, free: 6.582 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.1359, allocations: 0 / 493.7 MB, free: 6.582 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004678/0.1364, allocations: 64 kB / 493.8 MB, free: 6.52 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.0001216/0.1365, allocations: 103.2 kB / 493.9 MB, free: 6.41 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006174/0.1371, allocations: 295.8 kB / 494.2 MB, free: 6.121 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.1371, allocations: 0 / 494.2 MB, free: 6.121 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002656/0.1374, allocations: 136.7 kB / 494.3 MB, free: 5.988 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006771/0.1381, allocations: 40.48 kB / 494.3 MB, free: 5.945 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001377/0.1395, allocations: 0.9934 MB / 495.3 MB, free: 4.91 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00034/0.1398, allocations: 0.772 MB / 496.1 MB, free: 4.105 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001407/0.14, allocations: 30.95 kB / 496.1 MB, free: 4.074 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.042e-05/0.1401, allocations: 31.42 kB / 496.2 MB, free: 4.043 MB / 366.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1401, allocations: 0 / 496.2 MB, free: 4.043 MB / 366.1 MB Notification: Performance of Templates: time 0.005242/0.1453, allocations: 2.304 MB / 498.5 MB, free: 1.754 MB / 366.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/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_trunk_ModelicaTest.Rotational.TestSpeed.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches