Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001271/0.001271, allocations: 110.8 kB / 18.46 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001369/0.001369, allocations: 208 kB / 19.41 MB, free: 3.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.316/1.316, allocations: 227.4 MB / 247.6 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001175/0.001175, allocations: 55.91 kB / 359.4 MB, free: 12.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2006/0.2017, allocations: 50.54 MB / 409.9 MB, free: 1.605 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.003624/0.2054, allocations: 2.536 MB / 412.5 MB, free: 15.06 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001819/0.2072, allocations: 1.127 MB / 413.6 MB, free: 13.92 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001477/0.2074, allocations: 7.938 kB / 413.6 MB, free: 13.91 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002678/0.2077, allocations: 63.44 kB / 413.7 MB, free: 13.85 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004556/0.2082, allocations: 182.2 kB / 413.8 MB, free: 13.67 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004207/0.2086, allocations: 175.6 kB / 414 MB, free: 13.5 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005183/0.2091, allocations: 0.5219 MB / 414.5 MB, free: 12.98 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001807/0.2093, allocations: 88.91 kB / 414.6 MB, free: 12.89 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003448/0.2097, allocations: 243.3 kB / 414.9 MB, free: 12.65 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003368/0.21, allocations: 267.2 kB / 415.1 MB, free: 12.39 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.288e-05/0.2101, allocations: 44 kB / 415.2 MB, free: 12.34 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002535/0.2104, allocations: 143.9 kB / 415.3 MB, free: 12.2 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001348/0.2105, allocations: 119.7 kB / 415.4 MB, free: 12.09 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001915/0.2107, allocations: 191.1 kB / 415.6 MB, free: 11.9 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005788/0.2113, allocations: 0.5502 MB / 416.2 MB, free: 11.35 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.096e-06/0.2113, allocations: 0 / 416.2 MB, free: 11.35 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.2113, allocations: 0 / 416.2 MB, free: 11.35 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.596e-06/0.2113, allocations: 0 / 416.2 MB, free: 11.35 MB / 334.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.001321/0.2126, allocations: 0.7056 MB / 416.9 MB, free: 10.6 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.548e-05/0.2127, allocations: 12.03 kB / 416.9 MB, free: 10.59 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000419/0.2131, allocations: 60.44 kB / 416.9 MB, free: 10.53 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000498/0.2136, allocations: 323.6 kB / 417.2 MB, free: 10.17 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001205/0.2138, allocations: 92.61 kB / 417.3 MB, free: 10.07 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.189e-05/0.2138, allocations: 32.38 kB / 417.4 MB, free: 10.04 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008038/0.2146, allocations: 425 kB / 417.8 MB, free: 9.613 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.912e-05/0.2147, allocations: 7.906 kB / 417.8 MB, free: 9.605 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.101e-05/0.2147, allocations: 8 kB / 417.8 MB, free: 9.598 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.526e-06/0.2147, allocations: 8 kB / 417.8 MB, free: 9.59 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001024/0.2158, allocations: 478.2 kB / 418.3 MB, free: 9.125 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001717/0.2175, allocations: 0.989 MB / 419.3 MB, free: 8.078 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008624/0.2184, allocations: 392.7 kB / 419.6 MB, free: 7.684 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004825/0.2189, allocations: 234 kB / 419.9 MB, free: 7.453 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.55e-05/0.2189, allocations: 8.438 kB / 419.9 MB, free: 7.445 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.317e-05/0.2189, allocations: 43 kB / 419.9 MB, free: 7.395 MB / 334.1 MB Notification: Performance of pre-optimization done (n=49): time 1.814e-06/0.2189, allocations: 0 / 419.9 MB, free: 7.395 MB / 334.1 MB Notification: Performance of matching and sorting (n=55): time 0.005297/0.2242, allocations: 2.148 MB / 422.1 MB, free: 5.137 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.274e-05/0.2243, allocations: 85.67 kB / 422.2 MB, free: 5.035 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003186/0.2246, allocations: 269 kB / 422.4 MB, free: 4.762 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.38e-05/0.2247, allocations: 37.7 kB / 422.5 MB, free: 4.719 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.501e-05/0.2248, allocations: 141 kB / 422.6 MB, free: 4.578 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001394/0.2249, allocations: 181.5 kB / 422.8 MB, free: 4.398 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001534/0.2251, allocations: 94.14 kB / 422.9 MB, free: 4.301 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.00012/0.2252, allocations: 346.8 kB / 423.2 MB, free: 3.953 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004525/0.2257, allocations: 189 kB / 423.4 MB, free: 3.77 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004953/0.2262, allocations: 240.6 kB / 423.6 MB, free: 3.523 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008534/0.227, allocations: 392.3 kB / 424 MB, free: 3.137 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.227, allocations: 0 / 424 MB, free: 3.137 MB / 334.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001284/0.2283, allocations: 0.6095 MB / 424.6 MB, free: 2.516 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.39e-05/0.2284, allocations: 4 kB / 424.6 MB, free: 2.512 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.841e-06/0.2284, allocations: 3.938 kB / 424.6 MB, free: 2.508 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008063/0.2292, allocations: 306.5 kB / 424.9 MB, free: 2.207 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003349/0.2295, allocations: 71.88 kB / 425 MB, free: 2.137 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003893/0.2334, allocations: 2.94 MB / 427.9 MB, free: 15.05 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003035/0.2338, allocations: 27.97 kB / 428 MB, free: 15.02 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.528e-05/0.2338, allocations: 19.98 kB / 428 MB, free: 15 MB / 350.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.0001847/0.234, allocations: 165.8 kB / 428.1 MB, free: 14.83 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.678e-05/0.2341, allocations: 35.56 kB / 428.2 MB, free: 14.8 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001121/0.2342, allocations: 51.61 kB / 428.2 MB, free: 14.75 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.562e-06/0.2342, allocations: 3.984 kB / 428.2 MB, free: 14.75 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.176e-06/0.2342, allocations: 0 / 428.2 MB, free: 14.75 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001861/0.2344, allocations: 160.6 kB / 428.4 MB, free: 14.57 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.314e-05/0.2345, allocations: 12 kB / 428.4 MB, free: 14.56 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003308/0.2348, allocations: 27.97 kB / 428.4 MB, free: 14.53 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001215/0.235, allocations: 52.48 kB / 428.5 MB, free: 14.48 MB / 350.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.002087/0.2371, allocations: 0.7685 MB / 429.2 MB, free: 13.7 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.00166/0.2387, allocations: 0.9276 MB / 430.2 MB, free: 12.76 MB / 350.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.000473/0.2392, allocations: 212.4 kB / 430.4 MB, free: 12.55 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002304/0.2395, allocations: 208.4 kB / 430.6 MB, free: 12.35 MB / 350.1 MB Notification: Performance of Backend: time 4.4e-07/0.2395, allocations: 0 / 430.6 MB, free: 12.35 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002348/0.2418, allocations: 1.03 MB / 431.6 MB, free: 11.49 MB / 350.1 MB Notification: Performance of SimCode: time 0.001291/0.2431, allocations: 1.286 MB / 432.9 MB, free: 10.16 MB / 350.1 MB Notification: Performance of Templates: time 0.01289/0.256, allocations: 8.433 MB / 441.3 MB, free: 1.742 MB / 350.1 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.makefile (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.sim & ./Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo1/LossyGearDemo1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches