Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.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) 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(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009209/0.0009208, allocations: 94.14 kB / 16.3 MB, free: 5.996 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.001077/0.001077, allocations: 183.6 kB / 17.2 MB, free: 5.914 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.296/1.296, allocations: 223.2 MB / 241.1 MB, free: 5.43 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000231/0.0002311, allocations: 10.62 kB / 300.7 MB, free: 5.965 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09105/0.09129, allocations: 50.42 MB / 351.1 MB, free: 11.74 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.003167/0.09451, allocations: 1.876 MB / 353 MB, free: 9.852 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002025/0.09656, allocations: 0.8826 MB / 353.9 MB, free: 8.961 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000159/0.09675, allocations: 4 kB / 353.9 MB, free: 8.957 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001376/0.0969, allocations: 31.77 kB / 353.9 MB, free: 8.926 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005295/0.09744, allocations: 139.6 kB / 354.1 MB, free: 8.789 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003642/0.09782, allocations: 135.7 kB / 354.2 MB, free: 8.656 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004335/0.09826, allocations: 259.5 kB / 354.4 MB, free: 8.402 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001703/0.09844, allocations: 60.84 kB / 354.5 MB, free: 8.34 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002416/0.0987, allocations: 155.5 kB / 354.7 MB, free: 8.188 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003234/0.09903, allocations: 191.4 kB / 354.8 MB, free: 8 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.628e-05/0.0991, allocations: 16 kB / 354.9 MB, free: 7.984 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002126/0.09932, allocations: 75.94 kB / 354.9 MB, free: 7.91 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001516/0.09948, allocations: 87.7 kB / 355 MB, free: 7.824 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 8.237e-05/0.09958, allocations: 73.58 kB / 355.1 MB, free: 7.746 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004426/0.1, allocations: 315.2 kB / 355.4 MB, free: 7.438 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.554e-06/0.1, allocations: 0 / 355.4 MB, free: 7.438 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.954e-06/0.1001, allocations: 0 / 355.4 MB, free: 7.438 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.641e-06/0.1001, allocations: 0 / 355.4 MB, free: 7.438 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.001431/0.1015, allocations: 0.5886 MB / 356 MB, free: 6.801 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.14e-05/0.1016, allocations: 12.03 kB / 356 MB, free: 6.789 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004821/0.1021, allocations: 55.5 kB / 356.1 MB, free: 6.734 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000599/0.1027, allocations: 290.6 kB / 356.3 MB, free: 6.41 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001643/0.1028, allocations: 83.95 kB / 356.4 MB, free: 6.316 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.732e-05/0.103, allocations: 39.94 kB / 356.5 MB, free: 6.277 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001039/0.104, allocations: 373.2 kB / 356.8 MB, free: 5.898 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.606e-05/0.104, allocations: 7.906 kB / 356.8 MB, free: 5.891 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.192e-05/0.1041, allocations: 8 kB / 356.8 MB, free: 5.883 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.502e-05/0.1041, allocations: 11.95 kB / 356.9 MB, free: 5.871 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001349/0.1055, allocations: 429.9 kB / 357.3 MB, free: 5.449 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002884/0.1084, allocations: 1.249 MB / 358.5 MB, free: 4.129 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009802/0.1094, allocations: 359 kB / 358.9 MB, free: 3.77 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.345e-05/0.1094, allocations: 12.14 kB / 358.9 MB, free: 3.758 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.163e-05/0.1095, allocations: 38.56 kB / 358.9 MB, free: 3.711 MB / 286.1 MB Notification: Performance of pre-optimization done (n=43): time 2.725e-06/0.1095, allocations: 0 / 358.9 MB, free: 3.711 MB / 286.1 MB Notification: Performance of matching and sorting (n=45): time 0.006974/0.1165, allocations: 1.934 MB / 360.9 MB, free: 1.664 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.014e-05/0.1166, allocations: 84.86 kB / 360.9 MB, free: 1.562 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003856/0.117, allocations: 238.2 kB / 361.2 MB, free: 1.316 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 5.507e-05/0.1171, allocations: 37.7 kB / 361.2 MB, free: 1.273 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001111/0.1172, allocations: 136.6 kB / 361.3 MB, free: 1.137 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001576/0.1173, allocations: 153.8 kB / 361.5 MB, free: 0.9844 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.562e-05/0.1174, allocations: 12 kB / 361.5 MB, free: 0.9727 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001436/0.1175, allocations: 338.8 kB / 361.8 MB, free: 0.6328 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005341/0.1181, allocations: 172.7 kB / 362 MB, free: 476 kB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005873/0.1187, allocations: 229.9 kB / 362.2 MB, free: 228 kB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004997/0.1192, allocations: 164.8 kB / 362.4 MB, free: 64 kB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.235e-06/0.1192, allocations: 0 / 362.4 MB, free: 64 kB / 286.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.00163/0.1209, allocations: 0.5552 MB / 362.9 MB, free: 15.49 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.624e-05/0.1209, allocations: 8 kB / 362.9 MB, free: 15.48 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.284e-05/0.1209, allocations: 3.984 kB / 363 MB, free: 15.48 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001084/0.122, allocations: 248.8 kB / 363.2 MB, free: 15.23 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000344/0.1224, allocations: 51.91 kB / 363.2 MB, free: 15.18 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005019/0.1274, allocations: 2.71 MB / 366 MB, free: 12.35 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000284/0.1277, allocations: 31.97 kB / 366 MB, free: 12.32 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.297e-05/0.1278, allocations: 20.06 kB / 366 MB, free: 12.3 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 7 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,$PRE.gear.mode,gear.mode,gear.ideal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (27): * Single equations (assignments): 26 * 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: 0 * Non-linear torn systems: 1 {2 24} Notification: Performance of prepare postOptimizeDAE: time 0.0001794/0.128, allocations: 157.7 kB / 366.2 MB, free: 12.13 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.903e-05/0.128, allocations: 27.67 kB / 366.2 MB, free: 12.11 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.802e-05/0.1281, allocations: 42.98 kB / 366.2 MB, free: 12.06 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.029e-06/0.1281, allocations: 4 kB / 366.2 MB, free: 12.06 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.214e-06/0.1282, allocations: 0 / 366.2 MB, free: 12.06 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.238e-06/0.1282, allocations: 0 / 366.2 MB, free: 12.06 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001838/0.13, allocations: 1.097 MB / 367.3 MB, free: 10.9 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.388e-06/0.13, allocations: 0 / 367.3 MB, free: 10.9 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002238/0.1303, allocations: 55.84 kB / 367.4 MB, free: 10.85 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006566/0.1309, allocations: 236.7 kB / 367.6 MB, free: 10.61 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.432e-05/0.131, allocations: 15.98 kB / 367.6 MB, free: 10.6 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003533/0.1345, allocations: 2.671 MB / 370.3 MB, free: 7.793 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.1345, allocations: 0 / 370.3 MB, free: 7.793 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00152/0.1361, allocations: 0.8175 MB / 371.1 MB, free: 6.953 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001728/0.1362, allocations: 136.8 kB / 371.3 MB, free: 6.801 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.842e-05/0.1363, allocations: 12 kB / 371.3 MB, free: 6.789 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002665/0.1366, allocations: 35.98 kB / 371.3 MB, free: 6.754 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001618/0.1368, allocations: 71.81 kB / 371.4 MB, free: 6.684 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.109e-05/0.1368, allocations: 15.98 kB / 371.4 MB, free: 6.668 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002256/0.137, allocations: 180.3 kB / 371.6 MB, free: 6.492 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.137, allocations: 0 / 371.6 MB, free: 6.492 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001022/0.1381, allocations: 140 kB / 371.7 MB, free: 6.355 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (Inertia2.phi,Inertia2.w) * Number of discrete variables: 5 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,gear.mode) * Number of discrete states: 1 (gear.mode) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 20 * 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: 0 * Non-linear torn systems: 1 {2 23} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002739/0.1384, allocations: 131.2 kB / 371.8 MB, free: 6.219 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001375/0.1397, allocations: 0.6335 MB / 372.5 MB, free: 5.574 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.138e-06/0.1398, allocations: 4.25 kB / 372.5 MB, free: 5.57 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007436/0.1405, allocations: 433.1 kB / 372.9 MB, free: 5.137 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003034/0.1408, allocations: 27.98 kB / 372.9 MB, free: 5.109 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001303/0.1421, allocations: 0.8348 MB / 373.8 MB, free: 4.25 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003357/0.1425, allocations: 0.7803 MB / 374.5 MB, free: 3.438 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001872/0.1427, allocations: 58.95 kB / 374.6 MB, free: 3.379 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.584e-05/0.1428, allocations: 27.42 kB / 374.6 MB, free: 3.352 MB / 302.1 MB Notification: Performance of SimCode: time 6.31e-07/0.1428, allocations: 0 / 374.6 MB, free: 3.352 MB / 302.1 MB Notification: Performance of Templates: time 0.0111/0.1539, allocations: 6.367 MB / 381 MB, free: 13 MB / 318.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.sim & ./Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo3/LossyGearDemo3.csv","../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches