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.001105/0.001105, allocations: 107.6 kB / 17.21 MB, free: 6.293 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.0014/0.0014, allocations: 194 kB / 18.12 MB, free: 5.383 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.395/1.395, allocations: 222.9 MB / 241.8 MB, free: 15.44 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.218/0.218, allocations: 44.18 MB / 336.1 MB, free: 2.984 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001291/0.001291, allocations: 65.06 kB / 407.7 MB, free: 27.71 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1122/0.1135, allocations: 60.83 MB / 468.5 MB, free: 14.85 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestSpeed): time 0.003669/0.1172, allocations: 2.645 MB / 471.2 MB, free: 12.18 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001068/0.1183, allocations: 0.6428 MB / 471.8 MB, free: 11.54 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001491/0.1185, allocations: 11.94 kB / 471.8 MB, free: 11.52 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001644/0.1186, allocations: 35.7 kB / 471.8 MB, free: 11.49 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001594/0.1188, allocations: 75.39 kB / 471.9 MB, free: 11.41 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000225/0.1191, allocations: 67.92 kB / 472 MB, free: 11.35 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003299/0.1194, allocations: 318.6 kB / 472.3 MB, free: 11.04 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001792/0.1196, allocations: 65.81 kB / 472.4 MB, free: 10.96 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001919/0.1198, allocations: 119.4 kB / 472.5 MB, free: 10.85 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001611/0.12, allocations: 127.4 kB / 472.6 MB, free: 10.72 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.839e-05/0.12, allocations: 12 kB / 472.6 MB, free: 10.71 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.35e-05/0.1201, allocations: 16 kB / 472.6 MB, free: 10.7 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.095e-05/0.1201, allocations: 51.75 kB / 472.7 MB, free: 10.64 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001411/0.1203, allocations: 135.2 kB / 472.8 MB, free: 10.51 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000314/0.1206, allocations: 283.2 kB / 473.1 MB, free: 10.23 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.1206, allocations: 0 / 473.1 MB, free: 10.23 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.1206, allocations: 0 / 473.1 MB, free: 10.23 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.033e-06/0.1206, allocations: 0 / 473.1 MB, free: 10.23 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.001033/0.1217, allocations: 0.5885 MB / 473.7 MB, free: 9.598 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.124e-05/0.1217, allocations: 12.03 kB / 473.7 MB, free: 9.586 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.616e-05/0.1218, allocations: 32.56 kB / 473.7 MB, free: 9.555 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004197/0.1222, allocations: 264.7 kB / 474 MB, free: 9.258 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.057e-05/0.1223, allocations: 20.94 kB / 474 MB, free: 9.238 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00011/0.1224, allocations: 32.28 kB / 474 MB, free: 9.207 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006519/0.123, allocations: 286.2 kB / 474.3 MB, free: 8.902 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.738e-05/0.1231, allocations: 3.984 kB / 474.3 MB, free: 8.898 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.508e-05/0.1231, allocations: 12 kB / 474.3 MB, free: 8.887 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.499e-05/0.1232, allocations: 8 kB / 474.3 MB, free: 8.879 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004619/0.1236, allocations: 195.4 kB / 474.5 MB, free: 8.691 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002099/0.1257, allocations: 1.302 MB / 475.8 MB, free: 7.281 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004213/0.1262, allocations: 250.5 kB / 476.1 MB, free: 7 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001895/0.1264, allocations: 99.39 kB / 476.2 MB, free: 6.891 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.139e-05/0.1264, allocations: 4.141 kB / 476.2 MB, free: 6.887 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.708e-05/0.1265, allocations: 50.44 kB / 476.2 MB, free: 6.828 MB / 350.1 MB Notification: Performance of pre-optimization done (n=26): time 2.535e-06/0.1265, allocations: 0 / 476.2 MB, free: 6.828 MB / 350.1 MB Notification: Performance of matching and sorting (n=32): time 0.002718/0.1292, allocations: 1.56 MB / 477.8 MB, free: 5.059 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.303e-05/0.1293, allocations: 144.4 kB / 477.9 MB, free: 4.887 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002153/0.1295, allocations: 217 kB / 478.1 MB, free: 4.668 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.209e-05/0.1296, allocations: 29.7 kB / 478.2 MB, free: 4.633 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001967/0.1298, allocations: 188.1 kB / 478.3 MB, free: 4.445 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.083e-05/0.1299, allocations: 114.3 kB / 478.5 MB, free: 4.332 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.842e-05/0.13, allocations: 66.14 kB / 478.5 MB, free: 4.258 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001112/0.1301, allocations: 338.8 kB / 478.9 MB, free: 3.918 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002315/0.1303, allocations: 102 kB / 479 MB, free: 3.82 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003075/0.1306, allocations: 241.4 kB / 479.2 MB, free: 3.527 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005521/0.1312, allocations: 361.5 kB / 479.5 MB, free: 3.113 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.18e-06/0.1312, allocations: 7.922 kB / 479.5 MB, free: 3.105 MB / 350.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0007278/0.132, allocations: 401 kB / 479.9 MB, free: 2.707 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.581e-05/0.132, allocations: 8 kB / 479.9 MB, free: 2.699 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.097e-05/0.132, allocations: 4.406 kB / 480 MB, free: 2.695 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.412e-05/0.132, allocations: 12 kB / 480 MB, free: 2.684 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003866/0.1324, allocations: 99.81 kB / 480.1 MB, free: 2.586 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.537e-05/0.1325, allocations: 11.94 kB / 480.1 MB, free: 2.574 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002319/0.1327, allocations: 23.97 kB / 480.1 MB, free: 2.551 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.006e-05/0.1327, allocations: 20 kB / 480.1 MB, free: 2.531 MB / 350.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.1329, allocations: 150.2 kB / 480.3 MB, free: 2.375 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001202/0.133, allocations: 35.64 kB / 480.3 MB, free: 2.34 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.162e-05/0.1331, allocations: 37.7 kB / 480.3 MB, free: 2.309 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.082e-06/0.1331, allocations: 4 kB / 480.3 MB, free: 2.305 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.796e-06/0.1331, allocations: 0 / 480.3 MB, free: 2.305 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.889e-06/0.1332, allocations: 0 / 480.3 MB, free: 2.305 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001524/0.1347, allocations: 0.9897 MB / 481.3 MB, free: 1.25 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.545e-06/0.1347, allocations: 4.062 kB / 481.3 MB, free: 1.246 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003638/0.1351, allocations: 79.89 kB / 481.4 MB, free: 1.168 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.019e-06/0.1351, allocations: 4 kB / 481.4 MB, free: 1.164 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.516e-05/0.1351, allocations: 11.92 kB / 481.4 MB, free: 1.152 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.118e-06/0.1351, allocations: 4 kB / 481.4 MB, free: 1.148 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.619e-06/0.1351, allocations: 4 kB / 481.4 MB, free: 1.145 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001026/0.1362, allocations: 0.7254 MB / 482.2 MB, free: 404 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.535e-05/0.1363, allocations: 112.6 kB / 482.3 MB, free: 272 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.714e-05/0.1363, allocations: 12 kB / 482.3 MB, free: 260 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000284/0.1366, allocations: 19.92 kB / 482.3 MB, free: 240 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.891e-05/0.1367, allocations: 31.89 kB / 482.3 MB, free: 208 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.531e-05/0.1367, allocations: 8 kB / 482.3 MB, free: 200 kB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001368/0.1368, allocations: 156.5 kB / 482.5 MB, free: 40 kB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1369, allocations: 0 / 482.5 MB, free: 40 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004828/0.1373, allocations: 72.05 kB / 482.6 MB, free: 15.96 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.0001214/0.1375, allocations: 103.2 kB / 482.7 MB, free: 15.85 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005949/0.1381, allocations: 268.2 kB / 482.9 MB, free: 15.59 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.1381, allocations: 0 / 482.9 MB, free: 15.59 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002694/0.1384, allocations: 135.7 kB / 483.1 MB, free: 15.46 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007462/0.1391, allocations: 42.7 kB / 483.1 MB, free: 15.42 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001552/0.1407, allocations: 0.9871 MB / 484.1 MB, free: 14.39 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003451/0.141, allocations: 0.7683 MB / 484.9 MB, free: 13.59 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001428/0.1412, allocations: 34.95 kB / 484.9 MB, free: 13.55 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.191e-05/0.1413, allocations: 27.42 kB / 484.9 MB, free: 13.53 MB / 366.1 MB Notification: Performance of SimCode: time 1.543e-06/0.1413, allocations: 0 / 484.9 MB, free: 13.53 MB / 366.1 MB Notification: Performance of Templates: time 0.005081/0.1464, allocations: 2.191 MB / 487.1 MB, free: 11.35 MB / 366.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