Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.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.ForUsersGuide.SimpleDriveTrain,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|J2.phi|J2.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain") translateModel(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|J2.phi|J2.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001002/0.001003, allocations: 99.28 kB / 16.99 MB, free: 5.941 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.0008822/0.0008824, allocations: 183.1 kB / 17.87 MB, free: 5.609 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.369/1.369, allocations: 223.2 MB / 241.8 MB, free: 14.61 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.2118/0.2118, allocations: 44.22 MB / 337.1 MB, free: 2.633 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003302/0.0003303, allocations: 8 kB / 409.5 MB, free: 27.67 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1207/0.121, allocations: 61.93 MB / 471.5 MB, free: 13.71 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.001813/0.1229, allocations: 1.516 MB / 473 MB, free: 12.18 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006165/0.1235, allocations: 483.2 kB / 473.4 MB, free: 11.71 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.8e-05/0.1236, allocations: 4 kB / 473.4 MB, free: 11.7 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.825e-05/0.1236, allocations: 11.86 kB / 473.5 MB, free: 11.69 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001087/0.1237, allocations: 39.91 kB / 473.5 MB, free: 11.65 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001386/0.1239, allocations: 31.97 kB / 473.5 MB, free: 11.62 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001506/0.124, allocations: 103.7 kB / 473.6 MB, free: 11.52 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001327/0.1242, allocations: 41.78 kB / 473.7 MB, free: 11.47 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.229e-05/0.1243, allocations: 47.84 kB / 473.7 MB, free: 11.42 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.068e-05/0.1244, allocations: 55.7 kB / 473.8 MB, free: 11.37 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.803e-05/0.1244, allocations: 12 kB / 473.8 MB, free: 11.36 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.16e-05/0.1244, allocations: 8 kB / 473.8 MB, free: 11.35 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.233e-05/0.1245, allocations: 19.92 kB / 473.8 MB, free: 11.33 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.692e-05/0.1245, allocations: 45.64 kB / 473.9 MB, free: 11.28 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000111/0.1246, allocations: 100 kB / 474 MB, free: 11.18 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.255e-06/0.1246, allocations: 3.938 kB / 474 MB, free: 11.18 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.864e-06/0.1246, allocations: 0 / 474 MB, free: 11.18 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.33e-06/0.1247, allocations: 0 / 474 MB, free: 11.18 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: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0004626/0.1251, allocations: 426.8 kB / 474.4 MB, free: 10.71 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.203e-05/0.1252, allocations: 8.562 kB / 474.4 MB, free: 10.7 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.91e-05/0.1252, allocations: 15.81 kB / 474.4 MB, free: 10.69 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001783/0.1254, allocations: 202.9 kB / 474.6 MB, free: 10.45 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.15e-05/0.1254, allocations: 8 kB / 474.6 MB, free: 10.44 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.114e-05/0.1254, allocations: 19.94 kB / 474.6 MB, free: 10.42 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002308/0.1257, allocations: 125.6 kB / 474.7 MB, free: 10.29 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.36e-05/0.1257, allocations: 11.84 kB / 474.8 MB, free: 10.28 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.398e-05/0.1257, allocations: 4 kB / 474.8 MB, free: 10.28 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.521e-06/0.1257, allocations: 8 kB / 474.8 MB, free: 10.27 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000172/0.1259, allocations: 91.88 kB / 474.9 MB, free: 10.18 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006147/0.1265, allocations: 472.2 kB / 475.3 MB, free: 9.668 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001948/0.1267, allocations: 118.5 kB / 475.4 MB, free: 9.543 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.625e-05/0.1268, allocations: 3.953 kB / 475.4 MB, free: 9.539 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.797e-05/0.1268, allocations: 38.55 kB / 475.5 MB, free: 9.492 MB / 350.1 MB Notification: Performance of pre-optimization done (n=13): time 1.182e-06/0.1268, allocations: 4 kB / 475.5 MB, free: 9.488 MB / 350.1 MB Notification: Performance of matching and sorting (n=19): time 0.001275/0.1281, allocations: 0.811 MB / 476.3 MB, free: 8.586 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.294e-05/0.1281, allocations: 59.36 kB / 476.3 MB, free: 8.516 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001002/0.1282, allocations: 140.7 kB / 476.5 MB, free: 8.371 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.527e-05/0.1283, allocations: 25.7 kB / 476.5 MB, free: 8.34 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.423e-05/0.1283, allocations: 116.3 kB / 476.6 MB, free: 8.223 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.319e-05/0.1284, allocations: 67 kB / 476.7 MB, free: 8.156 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.303e-06/0.1284, allocations: 4 kB / 476.7 MB, free: 8.152 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.603e-05/0.1285, allocations: 326.8 kB / 477 MB, free: 7.824 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.066e-05/0.1286, allocations: 44.36 kB / 477.1 MB, free: 7.781 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001136/0.1287, allocations: 72.16 kB / 477.1 MB, free: 7.699 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001059/0.1288, allocations: 63.98 kB / 477.2 MB, free: 7.637 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.122e-06/0.1288, allocations: 3.938 kB / 477.2 MB, free: 7.633 MB / 350.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003304/0.1291, allocations: 202.2 kB / 477.4 MB, free: 7.426 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.439e-05/0.1292, allocations: 4 kB / 477.4 MB, free: 7.422 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.109e-06/0.1292, allocations: 4 kB / 477.4 MB, free: 7.418 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001409/0.1293, allocations: 44.86 kB / 477.4 MB, free: 7.371 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001566/0.1295, allocations: 35.92 kB / 477.5 MB, free: 7.336 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001159/0.1307, allocations: 1.581 MB / 479.1 MB, free: 5.625 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.88e-05/0.1307, allocations: 8.469 kB / 479.1 MB, free: 5.617 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.087e-05/0.1308, allocations: 4 kB / 479.1 MB, free: 5.613 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (17): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.115e-05/0.1309, allocations: 129.8 kB / 479.2 MB, free: 5.477 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.206e-05/0.1309, allocations: 15.81 kB / 479.2 MB, free: 5.461 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.562e-05/0.1309, allocations: 21.23 kB / 479.2 MB, free: 5.441 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.009e-06/0.1309, allocations: 8 kB / 479.2 MB, free: 5.434 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.557e-06/0.131, allocations: 0 / 479.2 MB, free: 5.434 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.669e-06/0.131, allocations: 3.953 kB / 479.2 MB, free: 5.43 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006671/0.1316, allocations: 0.5529 MB / 479.8 MB, free: 4.816 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.975e-06/0.1317, allocations: 7.938 kB / 479.8 MB, free: 4.809 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001545/0.1318, allocations: 35.92 kB / 479.8 MB, free: 4.773 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.414e-05/0.1319, allocations: 32.83 kB / 479.9 MB, free: 4.738 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.136e-05/0.1319, allocations: 4 kB / 479.9 MB, free: 4.734 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008774/0.1328, allocations: 1.382 MB / 481.3 MB, free: 3.219 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.1328, allocations: 0 / 481.3 MB, free: 3.219 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004291/0.1333, allocations: 359.1 kB / 481.6 MB, free: 2.84 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.182e-05/0.1333, allocations: 92.94 kB / 481.7 MB, free: 2.73 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.884e-05/0.1333, allocations: 4 kB / 481.7 MB, free: 2.727 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.216e-05/0.1334, allocations: 8.016 kB / 481.7 MB, free: 2.719 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.15e-05/0.1335, allocations: 19.98 kB / 481.7 MB, free: 2.699 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.236e-06/0.1335, allocations: 4 kB / 481.7 MB, free: 2.695 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.863e-05/0.1336, allocations: 110 kB / 481.8 MB, free: 2.59 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1336, allocations: 3.938 kB / 481.8 MB, free: 2.586 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000305/0.1339, allocations: 40 kB / 481.9 MB, free: 2.547 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (J1.phi,J1.w) * 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 (16): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 8.229e-05/0.134, allocations: 99.25 kB / 482 MB, free: 2.438 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000403/0.1344, allocations: 254.5 kB / 482.2 MB, free: 2.176 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.627e-06/0.1344, allocations: 4 kB / 482.2 MB, free: 2.172 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002252/0.1346, allocations: 194.6 kB / 482.4 MB, free: 1.969 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002384/0.1349, allocations: 24.06 kB / 482.4 MB, free: 1.945 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006708/0.1356, allocations: 0.5136 MB / 483 MB, free: 1.402 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002151/0.1358, allocations: 0.7285 MB / 483.7 MB, free: 0.6445 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.249e-05/0.1358, allocations: 5.438 kB / 483.7 MB, free: 0.6367 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.959e-05/0.1359, allocations: 19.42 kB / 483.7 MB, free: 0.6211 MB / 350.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1359, allocations: 0 / 483.7 MB, free: 0.6211 MB / 350.1 MB Notification: Performance of Templates: time 0.003559/0.1394, allocations: 1.437 MB / 485.2 MB, free: 15.18 MB / 366.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.sim & ./ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/ForUsersGuide/SimpleDriveTrain/SimpleDriveTrain.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches