Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.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) 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(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001115/0.001115, allocations: 110.7 kB / 18.4 MB, free: 4.656 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.001117/0.001117, allocations: 190 kB / 19.34 MB, free: 3.734 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.256/1.256, allocations: 205.1 MB / 225.2 MB, free: 12.21 MB / 190.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.001245/0.001245, allocations: 51.94 kB / 329.2 MB, free: 3.301 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06876/0.07001, allocations: 46.61 MB / 375.8 MB, free: 4.582 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.003272/0.07331, allocations: 2.427 MB / 378.2 MB, free: 2.141 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001676/0.07501, allocations: 1.011 MB / 379.2 MB, free: 1.121 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001489/0.07517, allocations: 4 kB / 379.3 MB, free: 1.117 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002021/0.0754, allocations: 51.52 kB / 379.3 MB, free: 1.066 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005046/0.07591, allocations: 163 kB / 379.5 MB, free: 0.9062 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003583/0.07628, allocations: 179.7 kB / 379.6 MB, free: 0.7305 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004395/0.07673, allocations: 470.5 kB / 380.1 MB, free: 276 kB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001727/0.07691, allocations: 96.89 kB / 380.2 MB, free: 176 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1444/0.2213, allocations: 203.2 kB / 380.4 MB, free: 10.49 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004042/0.2218, allocations: 239.8 kB / 380.6 MB, free: 10.49 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001218/0.2219, allocations: 41.06 kB / 380.7 MB, free: 10.49 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002974/0.2222, allocations: 130.9 kB / 380.8 MB, free: 10.49 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001431/0.2223, allocations: 105.9 kB / 380.9 MB, free: 10.48 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001997/0.2226, allocations: 184.1 kB / 381.1 MB, free: 10.43 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006439/0.2232, allocations: 0.4945 MB / 381.6 MB, free: 10.38 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.2232, allocations: 3.062 kB / 381.6 MB, free: 10.38 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.283e-06/0.2232, allocations: 0 / 381.6 MB, free: 10.38 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.196e-05/0.2232, allocations: 0 / 381.6 MB, free: 10.38 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: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.001305/0.2246, allocations: 0.6734 MB / 382.2 MB, free: 9.93 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.489e-05/0.2246, allocations: 8.219 kB / 382.3 MB, free: 9.93 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003318/0.2249, allocations: 52.14 kB / 382.3 MB, free: 9.914 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004801/0.2254, allocations: 319.5 kB / 382.6 MB, free: 9.684 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001122/0.2256, allocations: 91.72 kB / 382.7 MB, free: 9.621 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.076e-05/0.2256, allocations: 31.22 kB / 382.7 MB, free: 9.621 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008259/0.2265, allocations: 420.8 kB / 383.1 MB, free: 9.559 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.139e-05/0.2265, allocations: 5.281 kB / 383.2 MB, free: 9.555 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.044e-05/0.2266, allocations: 14 kB / 383.2 MB, free: 9.555 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.869e-06/0.2266, allocations: 6.406 kB / 383.2 MB, free: 9.555 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001048/0.2276, allocations: 472.1 kB / 383.6 MB, free: 9.551 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001664/0.2293, allocations: 0.9675 MB / 384.6 MB, free: 9.168 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007989/0.2301, allocations: 416.4 kB / 385 MB, free: 9.023 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004611/0.2306, allocations: 227.3 kB / 385.2 MB, free: 8.941 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.534e-05/0.2306, allocations: 10.41 kB / 385.2 MB, free: 8.938 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.541e-05/0.2307, allocations: 36.22 kB / 385.3 MB, free: 8.895 MB / 318.1 MB Notification: Performance of pre-optimization done (n=49): time 1.904e-06/0.2307, allocations: 0.5 kB / 385.3 MB, free: 8.895 MB / 318.1 MB Notification: Performance of matching and sorting (n=55): time 0.005083/0.2357, allocations: 2.172 MB / 387.4 MB, free: 7.77 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.836e-05/0.2358, allocations: 83.61 kB / 387.5 MB, free: 7.676 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002805/0.2361, allocations: 258.4 kB / 387.8 MB, free: 7.535 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.767e-05/0.2361, allocations: 40.86 kB / 387.8 MB, free: 7.492 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.281e-05/0.2362, allocations: 136.7 kB / 388 MB, free: 7.371 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001158/0.2363, allocations: 187.3 kB / 388.1 MB, free: 7.23 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001423/0.2365, allocations: 88.19 kB / 388.2 MB, free: 7.184 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.302e-05/0.2365, allocations: 339.7 kB / 388.6 MB, free: 6.859 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004378/0.237, allocations: 197.1 kB / 388.7 MB, free: 6.797 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004583/0.2374, allocations: 246.7 kB / 389 MB, free: 6.695 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000805/0.2383, allocations: 392.3 kB / 389.4 MB, free: 6.539 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.2383, allocations: 0 / 389.4 MB, free: 6.539 MB / 318.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001219/0.2395, allocations: 0.6159 MB / 390 MB, free: 6.285 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.587e-05/0.2395, allocations: 6.062 kB / 390 MB, free: 6.285 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.132e-06/0.2395, allocations: 0.5625 kB / 390 MB, free: 6.285 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007683/0.2403, allocations: 264.2 kB / 390.3 MB, free: 6.203 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003216/0.2406, allocations: 67.3 kB / 390.3 MB, free: 6.199 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003584/0.2442, allocations: 2.93 MB / 393.2 MB, free: 4.012 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003133/0.2446, allocations: 33.91 kB / 393.3 MB, free: 4 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.487e-05/0.2446, allocations: 17.81 kB / 393.3 MB, free: 3.996 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (33): * 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: 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,25)} Notification: Performance of prepare postOptimizeDAE: time 0.0001577/0.2448, allocations: 154.6 kB / 393.5 MB, free: 3.859 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.139e-05/0.2449, allocations: 36.77 kB / 393.5 MB, free: 3.84 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.476e-05/0.245, allocations: 51.42 kB / 393.5 MB, free: 3.801 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.043e-06/0.245, allocations: 5.484 kB / 393.5 MB, free: 3.801 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.234e-06/0.245, allocations: 1.281 kB / 393.5 MB, free: 3.801 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001575/0.2452, allocations: 150.9 kB / 393.7 MB, free: 3.672 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.923e-05/0.2452, allocations: 16.5 kB / 393.7 MB, free: 3.66 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003193/0.2455, allocations: 25.62 kB / 393.7 MB, free: 3.656 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001239/0.2457, allocations: 53.27 kB / 393.8 MB, free: 3.645 MB / 318.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.002005/0.2477, allocations: 0.7753 MB / 394.6 MB, free: 3.332 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001542/0.2492, allocations: 0.9256 MB / 395.5 MB, free: 2.875 MB / 318.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0004488/0.2497, allocations: 227.3 kB / 395.7 MB, free: 2.797 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001985/0.2499, allocations: 196 kB / 395.9 MB, free: 2.691 MB / 318.1 MB Notification: Performance of Backend: time 5.51e-07/0.2499, allocations: 0 / 395.9 MB, free: 2.691 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001374/0.2513, allocations: 0.6287 MB / 396.5 MB, free: 2.328 MB / 318.1 MB Notification: Performance of SimCode: time 0.001179/0.2525, allocations: 1.27 MB / 397.8 MB, free: 1.398 MB / 318.1 MB Notification: Performance of Templates: time 0.01324/0.2657, allocations: 7.582 MB / 405.4 MB, free: 14.8 MB / 334.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.sim & ./Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/LossyGearDemo1/LossyGearDemo1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches