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.001213/0.001213, allocations: 105.4 kB / 18.4 MB, free: 4.57 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.001269/0.001269, allocations: 188 kB / 19.34 MB, free: 3.641 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.368/1.368, allocations: 222.9 MB / 243 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.2245/0.2245, allocations: 44.17 MB / 337.4 MB, free: 2.711 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001207/0.001207, allocations: 58.81 kB / 409.9 MB, free: 26.56 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1125/0.1137, allocations: 60.83 MB / 470.7 MB, free: 13.67 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestSpeed): time 0.003741/0.1175, allocations: 2.611 MB / 473.3 MB, free: 11.05 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009834/0.1185, allocations: 0.6428 MB / 474 MB, free: 10.4 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000123/0.1186, allocations: 8 kB / 474 MB, free: 10.39 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001395/0.1188, allocations: 43.52 kB / 474 MB, free: 10.35 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001422/0.1189, allocations: 83.2 kB / 474.1 MB, free: 10.27 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002303/0.1192, allocations: 91.83 kB / 474.2 MB, free: 10.18 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003331/0.1195, allocations: 338.5 kB / 474.5 MB, free: 9.844 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001726/0.1197, allocations: 73.95 kB / 474.6 MB, free: 9.766 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001511/0.1198, allocations: 131.5 kB / 474.7 MB, free: 9.637 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001572/0.12, allocations: 131.3 kB / 474.8 MB, free: 9.508 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.67e-05/0.1201, allocations: 24 kB / 474.9 MB, free: 9.484 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.529e-05/0.1201, allocations: 20 kB / 474.9 MB, free: 9.465 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.004e-05/0.1202, allocations: 55.78 kB / 474.9 MB, free: 9.41 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001301/0.1203, allocations: 147.2 kB / 475.1 MB, free: 9.266 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002758/0.1206, allocations: 298.8 kB / 475.4 MB, free: 8.973 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.386e-06/0.1206, allocations: 0 / 475.4 MB, free: 8.973 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.1206, allocations: 0 / 475.4 MB, free: 8.973 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.182e-06/0.1206, allocations: 4 kB / 475.4 MB, free: 8.969 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.0008485/0.1215, allocations: 0.5808 MB / 476 MB, free: 8.34 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.45e-05/0.1215, allocations: 8.031 kB / 476 MB, free: 8.332 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.808e-05/0.1216, allocations: 36.56 kB / 476 MB, free: 8.297 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003399/0.1219, allocations: 276.4 kB / 476.3 MB, free: 7.988 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.558e-05/0.1219, allocations: 20.94 kB / 476.3 MB, free: 7.969 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.09e-05/0.122, allocations: 32.28 kB / 476.3 MB, free: 7.938 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004447/0.1225, allocations: 282.2 kB / 476.6 MB, free: 7.637 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.839e-05/0.1225, allocations: 3.984 kB / 476.6 MB, free: 7.633 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.086e-05/0.1225, allocations: 12 kB / 476.6 MB, free: 7.621 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.588e-06/0.1225, allocations: 8 kB / 476.6 MB, free: 7.613 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003884/0.1229, allocations: 179.8 kB / 476.8 MB, free: 7.438 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001603/0.1245, allocations: 1.31 MB / 478.1 MB, free: 6.02 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000384/0.1249, allocations: 254.2 kB / 478.3 MB, free: 5.734 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001928/0.1251, allocations: 95.39 kB / 478.4 MB, free: 5.629 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.515e-05/0.1252, allocations: 8.125 kB / 478.4 MB, free: 5.621 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.453e-05/0.1252, allocations: 38.56 kB / 478.5 MB, free: 5.574 MB / 350.1 MB Notification: Performance of pre-optimization done (n=26): time 2.855e-06/0.1252, allocations: 4 kB / 478.5 MB, free: 5.57 MB / 350.1 MB Notification: Performance of matching and sorting (n=32): time 0.002357/0.1276, allocations: 1.56 MB / 480.1 MB, free: 3.801 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.151e-05/0.1277, allocations: 132.5 kB / 480.2 MB, free: 3.641 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002069/0.1279, allocations: 225 kB / 480.4 MB, free: 3.414 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.205e-05/0.1279, allocations: 30.92 kB / 480.4 MB, free: 3.379 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001027/0.128, allocations: 180.2 kB / 480.6 MB, free: 3.199 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.342e-05/0.1281, allocations: 122.3 kB / 480.7 MB, free: 3.078 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001239/0.1282, allocations: 62.14 kB / 480.8 MB, free: 3.012 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001166/0.1283, allocations: 342.8 kB / 481.1 MB, free: 2.668 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002332/0.1286, allocations: 96.81 kB / 481.2 MB, free: 2.57 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002978/0.1289, allocations: 245.4 kB / 481.5 MB, free: 2.273 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005436/0.1294, allocations: 366 kB / 481.8 MB, free: 1.855 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.899e-06/0.1295, allocations: 7.984 kB / 481.8 MB, free: 1.848 MB / 350.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0006837/0.1301, allocations: 396.7 kB / 482.2 MB, free: 1.453 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.731e-05/0.1302, allocations: 7.938 kB / 482.2 MB, free: 1.445 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.884e-06/0.1302, allocations: 4 kB / 482.2 MB, free: 1.441 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.767e-05/0.1302, allocations: 8.406 kB / 482.2 MB, free: 1.434 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003632/0.1306, allocations: 103.9 kB / 482.3 MB, free: 1.332 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.505e-05/0.1306, allocations: 16 kB / 482.3 MB, free: 1.316 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001939/0.1308, allocations: 23.97 kB / 482.4 MB, free: 1.293 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.661e-05/0.1308, allocations: 16 kB / 482.4 MB, free: 1.277 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.000136/0.131, allocations: 153.7 kB / 482.5 MB, free: 1.117 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.667e-05/0.1311, allocations: 31.66 kB / 482.6 MB, free: 1.086 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.732e-05/0.1311, allocations: 37.7 kB / 482.6 MB, free: 1.055 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.469e-06/0.1312, allocations: 4 kB / 482.6 MB, free: 1.051 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.783e-06/0.1312, allocations: 0 / 482.6 MB, free: 1.051 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.897e-06/0.1312, allocations: 4 kB / 482.6 MB, free: 1.047 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001388/0.1326, allocations: 0.9777 MB / 483.6 MB, free: 4 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.25e-06/0.1326, allocations: 4 kB / 483.6 MB, free: 0 / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003685/0.133, allocations: 76 kB / 483.7 MB, free: 15.92 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.591e-06/0.133, allocations: 4 kB / 483.7 MB, free: 15.92 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.918e-05/0.133, allocations: 16.2 kB / 483.7 MB, free: 15.9 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.159e-06/0.133, allocations: 3.938 kB / 483.7 MB, free: 15.9 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.218e-06/0.133, allocations: 8.062 kB / 483.7 MB, free: 15.89 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000986/0.134, allocations: 0.7212 MB / 484.4 MB, free: 15.14 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.373e-05/0.1341, allocations: 108.7 kB / 484.5 MB, free: 15.02 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.177e-05/0.1342, allocations: 11.94 kB / 484.5 MB, free: 15.01 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002711/0.1344, allocations: 15.98 kB / 484.6 MB, free: 14.99 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.082e-05/0.1345, allocations: 28.22 kB / 484.6 MB, free: 14.96 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.982e-05/0.1346, allocations: 11.98 kB / 484.6 MB, free: 14.95 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000144/0.1347, allocations: 160.5 kB / 484.7 MB, free: 14.79 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.1347, allocations: 0 / 484.7 MB, free: 14.79 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004647/0.1352, allocations: 64 kB / 484.8 MB, free: 14.73 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.0001322/0.1353, allocations: 103.2 kB / 484.9 MB, free: 14.62 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.000625/0.136, allocations: 284.3 kB / 485.2 MB, free: 14.34 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.428e-06/0.136, allocations: 0 / 485.2 MB, free: 14.34 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000256/0.1362, allocations: 132.6 kB / 485.3 MB, free: 14.21 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006333/0.1369, allocations: 51.62 kB / 485.4 MB, free: 14.17 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001289/0.1382, allocations: 0.8595 MB / 486.2 MB, free: 13.27 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003304/0.1385, allocations: 0.7725 MB / 487 MB, free: 12.46 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001131/0.1386, allocations: 34.95 kB / 487 MB, free: 12.43 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.876e-05/0.1387, allocations: 23.44 kB / 487.1 MB, free: 12.41 MB / 366.1 MB Notification: Performance of SimCode: time 2.01e-07/0.1387, allocations: 0 / 487.1 MB, free: 12.41 MB / 366.1 MB Notification: Performance of Templates: time 0.005543/0.1443, allocations: 2.402 MB / 489.5 MB, free: 10.01 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 -s cvode -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/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_4.0.0_ModelicaTest.Rotational.TestSpeed.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches