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.001192/0.001192, allocations: 111 kB / 18.46 MB, free: 4.633 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001217/0.001217, allocations: 211.9 kB / 19.42 MB, free: 3.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.329/1.329, allocations: 227.4 MB / 247.6 MB, free: 10.53 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001193/0.001193, allocations: 63.89 kB / 359.4 MB, free: 12.98 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2046/0.2058, allocations: 50.54 MB / 409.9 MB, free: 1.652 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.003682/0.2096, allocations: 2.535 MB / 412.5 MB, free: 15.11 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001806/0.2114, allocations: 1.131 MB / 413.6 MB, free: 13.96 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001383/0.2115, allocations: 7.938 kB / 413.6 MB, free: 13.96 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002564/0.2118, allocations: 59.5 kB / 413.7 MB, free: 13.9 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004352/0.2123, allocations: 189.9 kB / 413.8 MB, free: 13.71 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003705/0.2126, allocations: 179.6 kB / 414 MB, free: 13.54 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004792/0.2131, allocations: 0.5141 MB / 414.5 MB, free: 13.02 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001774/0.2133, allocations: 92.91 kB / 414.6 MB, free: 12.93 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003037/0.2136, allocations: 247.3 kB / 414.9 MB, free: 12.69 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003084/0.214, allocations: 267.2 kB / 415.1 MB, free: 12.43 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.979e-05/0.214, allocations: 40 kB / 415.2 MB, free: 12.39 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002337/0.2143, allocations: 143.9 kB / 415.3 MB, free: 12.25 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001362/0.2144, allocations: 119.7 kB / 415.4 MB, free: 12.13 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001762/0.2146, allocations: 191.1 kB / 415.6 MB, free: 11.94 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005794/0.2152, allocations: 0.5486 MB / 416.2 MB, free: 11.39 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.517e-06/0.2152, allocations: 4 kB / 416.2 MB, free: 11.39 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.2152, allocations: 0 / 416.2 MB, free: 11.39 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.981e-06/0.2152, allocations: 0 / 416.2 MB, free: 11.39 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.001245/0.2165, allocations: 0.7166 MB / 416.9 MB, free: 10.62 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.193e-05/0.2165, allocations: 8.031 kB / 416.9 MB, free: 10.62 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003984/0.2169, allocations: 68.67 kB / 417 MB, free: 10.55 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004524/0.2174, allocations: 311.7 kB / 417.3 MB, free: 10.21 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001238/0.2175, allocations: 92.61 kB / 417.3 MB, free: 10.11 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.862e-05/0.2176, allocations: 40.31 kB / 417.4 MB, free: 10.07 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007939/0.2184, allocations: 417 kB / 417.8 MB, free: 9.648 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.767e-05/0.2184, allocations: 11.92 kB / 417.8 MB, free: 9.637 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.767e-05/0.2185, allocations: 12 kB / 417.8 MB, free: 9.625 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.365e-06/0.2185, allocations: 8 kB / 417.8 MB, free: 9.617 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001025/0.2195, allocations: 474.2 kB / 418.3 MB, free: 9.156 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001668/0.2212, allocations: 0.9931 MB / 419.3 MB, free: 8.105 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008515/0.2221, allocations: 396.4 kB / 419.7 MB, free: 7.707 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004932/0.2226, allocations: 230.1 kB / 419.9 MB, free: 7.48 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.421e-05/0.2226, allocations: 8.625 kB / 419.9 MB, free: 7.473 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.41e-05/0.2227, allocations: 42.94 kB / 419.9 MB, free: 7.422 MB / 334.1 MB Notification: Performance of pre-optimization done (n=49): time 1.783e-06/0.2227, allocations: 0 / 419.9 MB, free: 7.422 MB / 334.1 MB Notification: Performance of matching and sorting (n=55): time 0.005323/0.228, allocations: 2.156 MB / 422.1 MB, free: 5.156 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.788e-05/0.2281, allocations: 81.67 kB / 422.2 MB, free: 5.059 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003217/0.2284, allocations: 273 kB / 422.4 MB, free: 4.781 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.39e-05/0.2284, allocations: 37.7 kB / 422.5 MB, free: 4.738 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.925e-05/0.2285, allocations: 145.2 kB / 422.6 MB, free: 4.594 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001463/0.2287, allocations: 194.4 kB / 422.8 MB, free: 4.402 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001537/0.2289, allocations: 86.23 kB / 422.9 MB, free: 4.312 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001269/0.229, allocations: 346.8 kB / 423.2 MB, free: 3.965 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004537/0.2294, allocations: 189 kB / 423.4 MB, free: 3.781 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004919/0.2299, allocations: 244.6 kB / 423.7 MB, free: 3.531 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008644/0.2308, allocations: 384.3 kB / 424 MB, free: 3.152 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.563e-06/0.2308, allocations: 0 / 424 MB, free: 3.152 MB / 334.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001324/0.2322, allocations: 0.6136 MB / 424.7 MB, free: 2.527 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.313e-05/0.2322, allocations: 8.031 kB / 424.7 MB, free: 2.52 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.394e-06/0.2322, allocations: 7.922 kB / 424.7 MB, free: 2.512 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007972/0.233, allocations: 294.5 kB / 425 MB, free: 2.223 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003307/0.2333, allocations: 71.88 kB / 425 MB, free: 2.152 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003879/0.2372, allocations: 2.95 MB / 428 MB, free: 15.06 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002975/0.2375, allocations: 36.06 kB / 428 MB, free: 15.03 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.125e-05/0.2376, allocations: 19.98 kB / 428 MB, free: 15.01 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.0001812/0.2378, allocations: 157.8 kB / 428.2 MB, free: 14.84 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.229e-05/0.2379, allocations: 35.75 kB / 428.2 MB, free: 14.81 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001131/0.238, allocations: 51.59 kB / 428.3 MB, free: 14.76 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.721e-06/0.238, allocations: 7.922 kB / 428.3 MB, free: 14.75 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.238, allocations: 0 / 428.3 MB, free: 14.75 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000174/0.2382, allocations: 160.8 kB / 428.4 MB, free: 14.58 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.831e-05/0.2383, allocations: 16 kB / 428.4 MB, free: 14.56 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003223/0.2386, allocations: 27.97 kB / 428.5 MB, free: 14.54 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001264/0.2387, allocations: 48.48 kB / 428.5 MB, free: 14.49 MB / 350.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.002106/0.2409, allocations: 0.7764 MB / 429.3 MB, free: 13.7 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.00166/0.2425, allocations: 0.92 MB / 430.2 MB, free: 12.77 MB / 350.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0004894/0.243, allocations: 220.4 kB / 430.4 MB, free: 12.55 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002352/0.2433, allocations: 200.5 kB / 430.6 MB, free: 12.36 MB / 350.1 MB Notification: Performance of Backend: time 2.7e-07/0.2433, allocations: 0 / 430.6 MB, free: 12.36 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00236/0.2457, allocations: 1.045 MB / 431.7 MB, free: 11.48 MB / 350.1 MB Notification: Performance of SimCode: time 0.00132/0.247, allocations: 1.297 MB / 433 MB, free: 10.14 MB / 350.1 MB Notification: Performance of Templates: time 0.01361/0.2606, allocations: 8.429 MB / 441.4 MB, free: 1.723 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