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.0009507/0.0009507, allocations: 114.5 kB / 18.41 MB, free: 4.695 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.0009775/0.0009775, allocations: 186.2 kB / 19.34 MB, free: 3.777 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.34/1.34, allocations: 205.1 MB / 225.2 MB, free: 12.23 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.001198/0.001198, allocations: 55.92 kB / 329.2 MB, free: 3.32 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07145/0.07266, allocations: 46.62 MB / 375.8 MB, free: 4.594 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.003258/0.07596, allocations: 2.423 MB / 378.2 MB, free: 2.156 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001459/0.07743, allocations: 1.011 MB / 379.2 MB, free: 1.137 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001162/0.07756, allocations: 4 kB / 379.3 MB, free: 1.133 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001974/0.07777, allocations: 47.52 kB / 379.3 MB, free: 1.086 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004644/0.07825, allocations: 159.1 kB / 379.5 MB, free: 0.9297 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003134/0.07857, allocations: 187.6 kB / 379.6 MB, free: 0.7461 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004011/0.07898, allocations: 474.4 kB / 380.1 MB, free: 288 kB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001631/0.07915, allocations: 92.91 kB / 380.2 MB, free: 192 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1453/0.2244, allocations: 201.1 kB / 380.4 MB, free: 9.871 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004008/0.2249, allocations: 243 kB / 380.6 MB, free: 9.867 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 9.601e-05/0.225, allocations: 37.72 kB / 380.7 MB, free: 9.867 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00025/0.2252, allocations: 130.9 kB / 380.8 MB, free: 9.867 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001363/0.2254, allocations: 105.4 kB / 380.9 MB, free: 9.855 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001679/0.2256, allocations: 185.5 kB / 381.1 MB, free: 9.809 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005312/0.2261, allocations: 0.4964 MB / 381.6 MB, free: 9.762 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.2261, allocations: 0.6094 kB / 381.6 MB, free: 9.762 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.2261, allocations: 1.375 kB / 381.6 MB, free: 9.762 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.117e-05/0.2261, allocations: 0 / 381.6 MB, free: 9.762 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.001145/0.2273, allocations: 0.6675 MB / 382.2 MB, free: 9.309 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.386e-05/0.2273, allocations: 8.25 kB / 382.2 MB, free: 9.309 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003089/0.2276, allocations: 52.58 kB / 382.3 MB, free: 9.293 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004492/0.2281, allocations: 321.7 kB / 382.6 MB, free: 9.062 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001037/0.2282, allocations: 92.42 kB / 382.7 MB, free: 9 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.776e-05/0.2283, allocations: 31.62 kB / 382.7 MB, free: 9 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008584/0.2292, allocations: 420.7 kB / 383.1 MB, free: 8.938 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.849e-05/0.2292, allocations: 4.938 kB / 383.2 MB, free: 8.934 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.292e-05/0.2292, allocations: 12.91 kB / 383.2 MB, free: 8.934 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.649e-05/0.2293, allocations: 10.22 kB / 383.2 MB, free: 8.934 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001041/0.2303, allocations: 475.8 kB / 383.6 MB, free: 8.926 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001589/0.2319, allocations: 0.9694 MB / 384.6 MB, free: 8.586 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007975/0.2327, allocations: 411.4 kB / 385 MB, free: 8.559 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004541/0.2332, allocations: 231.7 kB / 385.2 MB, free: 8.551 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.395e-05/0.2332, allocations: 11.48 kB / 385.2 MB, free: 8.551 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.649e-05/0.2332, allocations: 37.89 kB / 385.3 MB, free: 8.508 MB / 318.1 MB Notification: Performance of pre-optimization done (n=49): time 1.704e-06/0.2333, allocations: 0 / 385.3 MB, free: 8.508 MB / 318.1 MB Notification: Performance of matching and sorting (n=55): time 0.005038/0.2383, allocations: 2.159 MB / 387.4 MB, free: 7.488 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.3e-05/0.2383, allocations: 87.2 kB / 387.5 MB, free: 7.395 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002936/0.2386, allocations: 267.3 kB / 387.8 MB, free: 7.246 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.108e-05/0.2387, allocations: 36.08 kB / 387.8 MB, free: 7.207 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.233e-05/0.2388, allocations: 130.3 kB / 388 MB, free: 7.09 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001113/0.2389, allocations: 188.8 kB / 388.1 MB, free: 6.949 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000147/0.239, allocations: 89.86 kB / 388.2 MB, free: 6.902 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.942e-05/0.2391, allocations: 339 kB / 388.6 MB, free: 6.578 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000455/0.2396, allocations: 197.3 kB / 388.7 MB, free: 6.516 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000486/0.2401, allocations: 245.9 kB / 389 MB, free: 6.414 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008111/0.2409, allocations: 395.8 kB / 389.4 MB, free: 6.254 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.2409, allocations: 0 / 389.4 MB, free: 6.254 MB / 318.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001216/0.2421, allocations: 0.6169 MB / 390 MB, free: 6 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.724e-05/0.2421, allocations: 5.625 kB / 390 MB, free: 6 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.763e-06/0.2422, allocations: 5.969 kB / 390 MB, free: 5.996 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007483/0.2429, allocations: 261.1 kB / 390.3 MB, free: 5.918 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003203/0.2432, allocations: 62.94 kB / 390.3 MB, free: 5.918 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003463/0.2467, allocations: 2.929 MB / 393.2 MB, free: 3.734 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003123/0.247, allocations: 33.91 kB / 393.3 MB, free: 3.723 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.454e-05/0.2471, allocations: 18.83 kB / 393.3 MB, free: 3.719 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.0001612/0.2473, allocations: 158.8 kB / 393.5 MB, free: 3.578 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.042e-05/0.2474, allocations: 35.06 kB / 393.5 MB, free: 3.559 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001019/0.2475, allocations: 47.19 kB / 393.5 MB, free: 3.523 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.803e-06/0.2475, allocations: 3.094 kB / 393.5 MB, free: 3.523 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/0.2475, allocations: 0.875 kB / 393.5 MB, free: 3.523 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001436/0.2476, allocations: 154.5 kB / 393.7 MB, free: 3.391 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.566e-05/0.2477, allocations: 12.47 kB / 393.7 MB, free: 3.383 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003278/0.248, allocations: 29.41 kB / 393.7 MB, free: 3.375 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001135/0.2482, allocations: 46.36 kB / 393.8 MB, free: 3.367 MB / 318.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.002002/0.2502, allocations: 0.7745 MB / 394.6 MB, free: 3.055 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001551/0.2517, allocations: 0.9298 MB / 395.5 MB, free: 2.59 MB / 318.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0004726/0.2522, allocations: 222.9 kB / 395.7 MB, free: 2.52 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002/0.2524, allocations: 200.1 kB / 395.9 MB, free: 2.41 MB / 318.1 MB Notification: Performance of Backend: time 5.61e-07/0.2524, allocations: 0 / 395.9 MB, free: 2.41 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001342/0.2538, allocations: 0.632 MB / 396.5 MB, free: 2.047 MB / 318.1 MB Notification: Performance of SimCode: time 0.001117/0.2549, allocations: 1.273 MB / 397.8 MB, free: 1.117 MB / 318.1 MB Notification: Performance of Templates: time 0.01209/0.267, allocations: 7.573 MB / 405.4 MB, free: 14.57 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