Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001453/0.001453, allocations: 85.08 kB / 22.99 MB, free: 1.504 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001388/0.001388, allocations: 177.5 kB / 26.4 MB, free: 7.992 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9396/0.9396, allocations: 158.6 MB / 188.3 MB, free: 2.816 MB / 170.7 MB " [Timeout remaining time 179] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.663e-06/1.663e-06, allocations: 0 / 252.2 MB, free: 7.273 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.162e-05/3.328e-05, allocations: 10.25 kB / 252.2 MB, free: 7.262 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.00466/0.004693, allocations: 2.347 MB / 254.6 MB, free: 4.898 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.002065/0.006758, allocations: 0.9333 MB / 255.5 MB, free: 3.949 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002137/0.006972, allocations: 7.938 kB / 255.5 MB, free: 3.941 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000259/0.007231, allocations: 51.52 kB / 255.6 MB, free: 3.891 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005805/0.007811, allocations: 135.2 kB / 255.7 MB, free: 3.758 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004204/0.008231, allocations: 171.6 kB / 255.9 MB, free: 3.59 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005058/0.008737, allocations: 434.5 kB / 256.3 MB, free: 3.164 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001539/0.008891, allocations: 44.89 kB / 256.3 MB, free: 3.121 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003613/0.009252, allocations: 255.5 kB / 256.6 MB, free: 2.871 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003181/0.00957, allocations: 187.6 kB / 256.8 MB, free: 2.688 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 7.509e-05/0.009646, allocations: 35.94 kB / 256.8 MB, free: 2.652 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002345/0.00988, allocations: 119.8 kB / 256.9 MB, free: 2.535 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001448/0.01002, allocations: 99.69 kB / 257 MB, free: 2.438 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000143/0.01017, allocations: 119.7 kB / 257.1 MB, free: 2.32 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006011/0.01077, allocations: 366.8 kB / 257.5 MB, free: 1.961 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.931e-06/0.01077, allocations: 0 / 257.5 MB, free: 1.961 MB / 234.7 MB Notification: Performance of FrontEnd: time 2.224e-06/0.01078, allocations: 4 kB / 257.5 MB, free: 1.957 MB / 234.7 MB Notification: Performance of Transformations before backend: time 1.208e-05/0.01079, allocations: 0 / 257.5 MB, free: 1.957 MB / 234.7 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.001185/0.01197, allocations: 0.6596 MB / 258.2 MB, free: 1.258 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.288e-05/0.01202, allocations: 11.98 kB / 258.2 MB, free: 1.246 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003548/0.01237, allocations: 76.73 kB / 258.3 MB, free: 1.172 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003938/0.01277, allocations: 236.8 kB / 258.5 MB, free: 0.9102 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001392/0.0129, allocations: 136 kB / 258.6 MB, free: 0.7539 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.255e-05/0.01297, allocations: 36.34 kB / 258.7 MB, free: 0.7188 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005431/0.01351, allocations: 308.2 kB / 259 MB, free: 396 kB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.054e-05/0.01353, allocations: 4.188 kB / 259 MB, free: 392 kB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.379e-05/0.01356, allocations: 12.12 kB / 259 MB, free: 380 kB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.218e-05/0.01358, allocations: 8 kB / 259 MB, free: 372 kB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004065/0.01398, allocations: 196.3 kB / 259.2 MB, free: 176 kB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001767/0.01575, allocations: 1.089 MB / 260.3 MB, free: 15.04 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004063/0.01616, allocations: 202.9 kB / 260.5 MB, free: 14.83 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001704/0.01633, allocations: 92.36 kB / 260.6 MB, free: 14.73 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.096e-05/0.01636, allocations: 8 kB / 260.6 MB, free: 14.73 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.202e-05/0.01639, allocations: 41.34 kB / 260.6 MB, free: 14.68 MB / 250.7 MB Notification: Performance of pre-optimization done (n=43): time 2.354e-06/0.01639, allocations: 0 / 260.6 MB, free: 14.68 MB / 250.7 MB Notification: Performance of matching and sorting (n=45): time 0.003181/0.01957, allocations: 1.203 MB / 261.8 MB, free: 13.41 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.862e-05/0.01962, allocations: 88.84 kB / 261.9 MB, free: 13.3 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000232/0.01985, allocations: 257.6 kB / 262.1 MB, free: 13.03 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 3.883e-05/0.01989, allocations: 37.7 kB / 262.2 MB, free: 12.99 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001057/0.02, allocations: 187.5 kB / 262.4 MB, free: 12.8 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001168/0.02012, allocations: 158.7 kB / 262.5 MB, free: 12.64 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001434/0.02026, allocations: 87.77 kB / 262.6 MB, free: 12.55 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001555/0.02041, allocations: 0.5118 MB / 263.1 MB, free: 12.03 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001781/0.02059, allocations: 72.88 kB / 263.2 MB, free: 11.96 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002212/0.02081, allocations: 177.2 kB / 263.4 MB, free: 11.75 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003247/0.02114, allocations: 202.3 kB / 263.6 MB, free: 11.53 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/0.02114, allocations: 0 / 263.6 MB, free: 11.53 MB / 250.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0006792/0.02182, allocations: 365 kB / 263.9 MB, free: 11.16 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.045e-05/0.02184, allocations: 8 kB / 263.9 MB, free: 11.16 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.823e-06/0.02185, allocations: 0 / 263.9 MB, free: 11.16 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005577/0.0224, allocations: 215.4 kB / 264.1 MB, free: 10.94 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002038/0.02261, allocations: 51.89 kB / 264.2 MB, free: 10.89 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003059/0.02567, allocations: 2.788 MB / 267 MB, free: 7.988 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002019/0.02587, allocations: 15.98 kB / 267 MB, free: 7.973 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.885e-05/0.02591, allocations: 15.98 kB / 267 MB, free: 7.957 MB / 250.7 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.ideal,gear.mode,$PRE.gear.mode,gear.locked,gear.startBackward,gear.startForward,gear.tau_aPos) * 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 (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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,24)} Notification: Performance of prepare postOptimizeDAE: time 0.0001558/0.02606, allocations: 175.5 kB / 267.2 MB, free: 7.777 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.597e-05/0.02616, allocations: 47.84 kB / 267.2 MB, free: 7.73 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.17e-05/0.02623, allocations: 39 kB / 267.3 MB, free: 7.695 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.885e-06/0.02624, allocations: 15.88 kB / 267.3 MB, free: 7.68 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.625e-06/0.02624, allocations: 0 / 267.3 MB, free: 7.68 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.851e-06/0.02625, allocations: 3.984 kB / 267.3 MB, free: 7.676 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001305/0.02755, allocations: 0.741 MB / 268 MB, free: 6.895 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.747e-06/0.02756, allocations: 0 / 268 MB, free: 6.895 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001944/0.02775, allocations: 39.91 kB / 268.1 MB, free: 6.855 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005131/0.02826, allocations: 207.4 kB / 268.3 MB, free: 6.648 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.361e-05/0.0283, allocations: 15.98 kB / 268.3 MB, free: 6.633 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003001/0.0313, allocations: 2.774 MB / 271 MB, free: 3.754 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.0313, allocations: 0 / 271 MB, free: 3.754 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008752/0.03218, allocations: 0.5615 MB / 271.6 MB, free: 3.168 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001429/0.03232, allocations: 67.73 kB / 271.7 MB, free: 3.102 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.55e-05/0.03237, allocations: 15.94 kB / 271.7 MB, free: 3.086 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002135/0.03259, allocations: 15.98 kB / 271.7 MB, free: 3.07 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001444/0.03273, allocations: 63.81 kB / 271.8 MB, free: 3.008 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.175e-05/0.03276, allocations: 15.98 kB / 271.8 MB, free: 2.992 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0001385/0.0329, allocations: 184 kB / 272 MB, free: 2.812 MB / 250.7 MB Notification: Performance of sort global known variables: time 1.01e-07/0.0329, allocations: 0 / 272 MB, free: 2.812 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0006428/0.03355, allocations: 139.9 kB / 272.1 MB, free: 2.676 MB / 250.7 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 (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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,23)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002443/0.03379, allocations: 139.2 kB / 272.2 MB, free: 2.527 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0008917/0.03468, allocations: 0.5109 MB / 272.7 MB, free: 1.996 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/0.03468, allocations: 256 / 272.7 MB, free: 1.996 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005601/0.03524, allocations: 416.5 kB / 273.2 MB, free: 1.566 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004368/0.03568, allocations: 67.8 kB / 273.2 MB, free: 1.5 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001306/0.03699, allocations: 0.5699 MB / 273.8 MB, free: 0.8984 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001045/0.03709, allocations: 109.1 kB / 273.9 MB, free: 0.7734 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 0.0001393/0.03723, allocations: 34.97 kB / 273.9 MB, free: 0.7422 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001669/0.0374, allocations: 114.2 kB / 274 MB, free: 0.6289 MB / 250.7 MB Notification: Performance of SimCode: time 1.463e-06/0.0374, allocations: 0 / 274 MB, free: 0.6289 MB / 250.7 MB Notification: Performance of Templates: time 0.01232/0.04972, allocations: 7.296 MB / 281.3 MB, free: 9.355 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.sim & ./Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/LossyGearDemo3/LossyGearDemo3.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.9797448879107833]