Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain") translateModel(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|J2.phi|J2.w",fileNamePrefix="ModelicaTest_3.2.3_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.001241/0.001241, allocations: 104.8 kB / 16.64 MB, free: 6.82 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.001267/0.001267, allocations: 194.5 kB / 17.56 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.437/1.437, allocations: 205.1 MB / 223.4 MB, free: 12.46 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2066/0.2066, allocations: 43.52 MB / 314.3 MB, free: 0.7227 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001469/0.001469, allocations: 66.83 kB / 382.9 MB, free: 57 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1148/0.1163, allocations: 57.8 MB / 440.7 MB, free: 7.395 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.003211/0.1195, allocations: 1.965 MB / 442.6 MB, free: 5.41 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009486/0.1205, allocations: 0.523 MB / 443.1 MB, free: 4.879 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001477/0.1207, allocations: 4 kB / 443.1 MB, free: 4.875 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001448/0.1209, allocations: 15.84 kB / 443.2 MB, free: 4.859 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001445/0.121, allocations: 31.77 kB / 443.2 MB, free: 4.828 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002026/0.1212, allocations: 35.89 kB / 443.2 MB, free: 4.793 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002387/0.1215, allocations: 147.3 kB / 443.4 MB, free: 4.648 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001898/0.1217, allocations: 65.89 kB / 443.4 MB, free: 4.582 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001523/0.1218, allocations: 55.8 kB / 443.5 MB, free: 4.527 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001202/0.122, allocations: 63.7 kB / 443.6 MB, free: 4.465 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.009e-05/0.122, allocations: 16 kB / 443.6 MB, free: 4.449 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.772e-05/0.122, allocations: 15.94 kB / 443.6 MB, free: 4.434 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.824e-05/0.1221, allocations: 19.92 kB / 443.6 MB, free: 4.414 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 7.697e-05/0.1222, allocations: 79.64 kB / 443.7 MB, free: 4.336 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001611/0.1223, allocations: 111.7 kB / 443.8 MB, free: 4.227 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.356e-06/0.1223, allocations: 3.938 kB / 443.8 MB, free: 4.223 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.1223, allocations: 0 / 443.8 MB, free: 4.223 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.137e-05/0.1224, allocations: 0 / 443.8 MB, free: 4.223 MB / 318.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.0005002/0.1229, allocations: 438.2 kB / 444.2 MB, free: 3.75 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.683e-05/0.1229, allocations: 23.81 kB / 444.2 MB, free: 3.727 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.086e-05/0.123, allocations: 16.75 kB / 444.3 MB, free: 3.711 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001701/0.1231, allocations: 202.3 kB / 444.5 MB, free: 3.477 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.001e-05/0.1232, allocations: 8.375 kB / 444.5 MB, free: 3.469 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.566e-05/0.1232, allocations: 16.38 kB / 444.5 MB, free: 3.453 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002294/0.1234, allocations: 125.8 kB / 444.6 MB, free: 3.324 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.289e-05/0.1235, allocations: 0 / 444.6 MB, free: 3.324 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.483e-05/0.1235, allocations: 11.98 kB / 444.6 MB, free: 3.312 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.058e-06/0.1235, allocations: 0 / 444.6 MB, free: 3.312 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001521/0.1236, allocations: 87.89 kB / 444.7 MB, free: 3.227 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000588/0.1242, allocations: 468.2 kB / 445.2 MB, free: 2.719 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001782/0.1244, allocations: 130.4 kB / 445.3 MB, free: 2.582 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.89e-05/0.1245, allocations: 52.84 kB / 445.3 MB, free: 2.527 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.474e-05/0.1246, allocations: 0 / 445.3 MB, free: 2.527 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.592e-05/0.1246, allocations: 34.56 kB / 445.4 MB, free: 2.484 MB / 318.1 MB Notification: Performance of pre-optimization done (n=13): time 7.61e-07/0.1246, allocations: 0 / 445.4 MB, free: 2.484 MB / 318.1 MB Notification: Performance of matching and sorting (n=19): time 0.001168/0.1258, allocations: 0.8096 MB / 446.2 MB, free: 1.582 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.929e-05/0.1258, allocations: 55.41 kB / 446.2 MB, free: 1.516 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.824e-05/0.1259, allocations: 137.6 kB / 446.4 MB, free: 1.375 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.154e-05/0.1259, allocations: 29.7 kB / 446.4 MB, free: 1.34 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.589e-05/0.1259, allocations: 116.3 kB / 446.5 MB, free: 1.223 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.442e-05/0.126, allocations: 63 kB / 446.6 MB, free: 1.16 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.945e-05/0.126, allocations: 37.7 kB / 446.6 MB, free: 1.117 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.352e-05/0.1261, allocations: 326.8 kB / 446.9 MB, free: 0.7891 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.134e-05/0.1262, allocations: 43.97 kB / 447 MB, free: 0.7461 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.548e-05/0.1263, allocations: 75.34 kB / 447 MB, free: 0.6602 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001653/0.1265, allocations: 143.3 kB / 447.2 MB, free: 0.5078 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.242e-06/0.1265, allocations: 0 / 447.2 MB, free: 0.5078 MB / 318.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003169/0.1268, allocations: 210.1 kB / 447.4 MB, free: 300 kB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.689e-05/0.1268, allocations: 7.938 kB / 447.4 MB, free: 292 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.821e-06/0.1268, allocations: 4.031 kB / 447.4 MB, free: 288 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000155/0.127, allocations: 44.83 kB / 447.4 MB, free: 240 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001484/0.1271, allocations: 31.98 kB / 447.5 MB, free: 208 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001389/0.1285, allocations: 1.736 MB / 449.2 MB, free: 14.33 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.002e-05/0.1286, allocations: 12.02 kB / 449.2 MB, free: 14.32 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.194e-05/0.1287, allocations: 4 kB / 449.2 MB, free: 14.31 MB / 334.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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001096/0.1288, allocations: 133.8 kB / 449.4 MB, free: 14.17 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.655e-05/0.1288, allocations: 11.91 kB / 449.4 MB, free: 14.16 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.885e-05/0.1289, allocations: 17.19 kB / 449.4 MB, free: 14.14 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.08e-06/0.1289, allocations: 7.938 kB / 449.4 MB, free: 14.14 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.27e-06/0.1289, allocations: 0 / 449.4 MB, free: 14.14 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.281e-06/0.1289, allocations: 3.984 kB / 449.4 MB, free: 14.13 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007544/0.1297, allocations: 0.5513 MB / 450 MB, free: 13.52 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.405e-06/0.1297, allocations: 3.938 kB / 450 MB, free: 13.52 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001673/0.1298, allocations: 39.91 kB / 450 MB, free: 13.48 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001012/0.13, allocations: 28.84 kB / 450 MB, free: 13.45 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.462e-05/0.13, allocations: 8.219 kB / 450 MB, free: 13.44 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001109/0.1311, allocations: 1.485 MB / 451.5 MB, free: 11.81 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.1311, allocations: 0 / 451.5 MB, free: 11.81 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004435/0.1316, allocations: 345.8 kB / 451.9 MB, free: 11.45 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.106e-05/0.1316, allocations: 97.08 kB / 451.9 MB, free: 11.34 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.103e-05/0.1316, allocations: 7.984 kB / 452 MB, free: 11.33 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.132e-05/0.1317, allocations: 4 kB / 452 MB, free: 11.32 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.32e-05/0.1318, allocations: 15.92 kB / 452 MB, free: 11.31 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.075e-05/0.1318, allocations: 8 kB / 452 MB, free: 11.3 MB / 334.1 MB Notification: Performance of sorting global known variables: time 6.659e-05/0.1319, allocations: 111.2 kB / 452.1 MB, free: 11.19 MB / 334.1 MB Notification: Performance of sort global known variables: time 3.2e-07/0.1319, allocations: 0 / 452.1 MB, free: 11.19 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003296/0.1322, allocations: 40 kB / 452.1 MB, free: 11.15 MB / 334.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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001141/0.1324, allocations: 103.2 kB / 452.2 MB, free: 11.04 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000487/0.1329, allocations: 261.4 kB / 452.5 MB, free: 10.77 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.973e-06/0.1329, allocations: 0 / 452.5 MB, free: 10.77 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002408/0.1331, allocations: 198.5 kB / 452.7 MB, free: 10.57 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003872/0.1335, allocations: 24.11 kB / 452.7 MB, free: 10.54 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008594/0.1344, allocations: 0.5105 MB / 453.2 MB, free: 10 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003018/0.1347, allocations: 0.7204 MB / 453.9 MB, free: 9.258 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.217e-05/0.1347, allocations: 23.42 kB / 454 MB, free: 9.234 MB / 334.1 MB Notification: Performance of SimCode: time 3.81e-07/0.1348, allocations: 0 / 454 MB, free: 9.234 MB / 334.1 MB Notification: Performance of Templates: time 0.004705/0.1395, allocations: 2.405 MB / 456.4 MB, free: 6.828 MB / 334.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.sim & ./ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Rotational/ForUsersGuide/SimpleDriveTrain/SimpleDriveTrain.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches