Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4.0.0_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_4.0.0_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.001568/0.001568, allocations: 110.3 kB / 17.74 MB, free: 5.336 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.001834/0.001834, allocations: 185.4 kB / 18.67 MB, free: 4.414 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.325/1.325, allocations: 222.9 MB / 242.4 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009254/0.0009254, allocations: 43.92 kB / 352 MB, free: 3.254 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2105/0.2114, allocations: 49.44 MB / 401.4 MB, free: 8.73 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.003257/0.2147, allocations: 2.422 MB / 403.8 MB, free: 6.426 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001466/0.2162, allocations: 0.9636 MB / 404.8 MB, free: 5.453 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001115/0.2163, allocations: 4 kB / 404.8 MB, free: 5.449 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001927/0.2165, allocations: 55.5 kB / 404.8 MB, free: 5.395 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004408/0.217, allocations: 159.1 kB / 405 MB, free: 5.238 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003192/0.2173, allocations: 179.6 kB / 405.2 MB, free: 5.062 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004056/0.2177, allocations: 470.5 kB / 405.6 MB, free: 4.602 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001712/0.2179, allocations: 92.91 kB / 405.7 MB, free: 4.508 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002367/0.2182, allocations: 207.3 kB / 405.9 MB, free: 4.305 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002914/0.2185, allocations: 255.2 kB / 406.2 MB, free: 4.055 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.563e-05/0.2185, allocations: 39.94 kB / 406.2 MB, free: 4.016 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002109/0.2188, allocations: 127.9 kB / 406.3 MB, free: 3.891 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001325/0.2189, allocations: 107.7 kB / 406.4 MB, free: 3.785 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000175/0.2191, allocations: 183.1 kB / 406.6 MB, free: 3.605 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004903/0.2196, allocations: 0.4918 MB / 407.1 MB, free: 3.117 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.396e-06/0.2196, allocations: 3.938 kB / 407.1 MB, free: 3.113 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.2196, allocations: 0 / 407.1 MB, free: 3.113 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.506e-06/0.2196, allocations: 0 / 407.1 MB, free: 3.113 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.001208/0.2208, allocations: 0.6695 MB / 407.8 MB, free: 2.398 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.481e-05/0.2209, allocations: 12.03 kB / 407.8 MB, free: 2.387 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003123/0.2212, allocations: 48.55 kB / 407.8 MB, free: 2.34 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000454/0.2217, allocations: 327.5 kB / 408.2 MB, free: 1.98 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001129/0.2218, allocations: 88.61 kB / 408.3 MB, free: 1.883 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.349e-05/0.2219, allocations: 32.28 kB / 408.3 MB, free: 1.852 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007954/0.2227, allocations: 417 kB / 408.7 MB, free: 1.43 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.685e-05/0.2227, allocations: 7.938 kB / 408.7 MB, free: 1.422 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.062e-05/0.2227, allocations: 16 kB / 408.7 MB, free: 1.406 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.997e-06/0.2227, allocations: 8 kB / 408.7 MB, free: 1.398 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009904/0.2237, allocations: 470.3 kB / 409.2 MB, free: 0.9414 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001649/0.2254, allocations: 0.9697 MB / 410.2 MB, free: 15.91 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008195/0.2262, allocations: 404.8 kB / 410.5 MB, free: 15.51 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004817/0.2267, allocations: 234.1 kB / 410.8 MB, free: 15.28 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.562e-05/0.2268, allocations: 16.52 kB / 410.8 MB, free: 15.27 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.09e-05/0.2268, allocations: 46.88 kB / 410.8 MB, free: 15.21 MB / 334.1 MB Notification: Performance of pre-optimization done (n=49): time 1.753e-06/0.2268, allocations: 0 / 410.8 MB, free: 15.21 MB / 334.1 MB Notification: Performance of matching and sorting (n=55): time 0.005237/0.2321, allocations: 2.16 MB / 413 MB, free: 12.94 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.537e-05/0.2321, allocations: 81.67 kB / 413.1 MB, free: 12.84 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002895/0.2324, allocations: 263.1 kB / 413.3 MB, free: 12.57 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.822e-05/0.2325, allocations: 37.7 kB / 413.4 MB, free: 12.53 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.199e-05/0.2326, allocations: 137.1 kB / 413.5 MB, free: 12.39 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001411/0.2327, allocations: 181.4 kB / 413.7 MB, free: 12.21 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001461/0.2329, allocations: 98.14 kB / 413.8 MB, free: 12.11 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001239/0.233, allocations: 338.8 kB / 414.1 MB, free: 11.77 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004512/0.2335, allocations: 197 kB / 414.3 MB, free: 11.58 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004812/0.2339, allocations: 240.6 kB / 414.5 MB, free: 11.34 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008393/0.2348, allocations: 400.3 kB / 414.9 MB, free: 10.94 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.513e-06/0.2348, allocations: 0 / 414.9 MB, free: 10.94 MB / 334.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001249/0.2361, allocations: 0.6096 MB / 415.5 MB, free: 10.32 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.445e-05/0.2361, allocations: 4 kB / 415.5 MB, free: 10.32 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.121e-06/0.2361, allocations: 3.938 kB / 415.5 MB, free: 10.31 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007281/0.2368, allocations: 266.6 kB / 415.8 MB, free: 10.05 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003124/0.2372, allocations: 67.83 kB / 415.9 MB, free: 9.984 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003955/0.2411, allocations: 2.934 MB / 418.8 MB, free: 6.906 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003001/0.2414, allocations: 27.97 kB / 418.8 MB, free: 6.879 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.568e-05/0.2415, allocations: 19.98 kB / 418.9 MB, free: 6.859 MB / 334.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.0001819/0.2417, allocations: 161.8 kB / 419 MB, free: 6.691 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.763e-05/0.2418, allocations: 35.56 kB / 419 MB, free: 6.656 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001105/0.2419, allocations: 47.3 kB / 419.1 MB, free: 6.613 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.402e-06/0.2419, allocations: 3.984 kB / 419.1 MB, free: 6.609 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.794e-06/0.2419, allocations: 0 / 419.1 MB, free: 6.609 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001824/0.2421, allocations: 144.8 kB / 419.2 MB, free: 6.449 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.518e-05/0.2422, allocations: 12 kB / 419.2 MB, free: 6.438 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000324/0.2425, allocations: 31.97 kB / 419.3 MB, free: 6.406 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001175/0.2426, allocations: 52.48 kB / 419.3 MB, free: 6.355 MB / 334.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.002178/0.2448, allocations: 0.7802 MB / 420.1 MB, free: 5.562 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001652/0.2465, allocations: 0.9199 MB / 421 MB, free: 4.625 MB / 334.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0004802/0.247, allocations: 224.3 kB / 421.2 MB, free: 4.41 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002171/0.2472, allocations: 192.6 kB / 421.4 MB, free: 4.223 MB / 334.1 MB Notification: Performance of Backend: time 3.3e-07/0.2472, allocations: 4 kB / 421.4 MB, free: 4.219 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0014/0.2486, allocations: 0.6318 MB / 422.1 MB, free: 3.562 MB / 334.1 MB Notification: Performance of SimCode: time 0.001315/0.2499, allocations: 1.278 MB / 423.4 MB, free: 2.242 MB / 334.1 MB Notification: Performance of Templates: time 0.01197/0.2619, allocations: 7.586 MB / 430.9 MB, free: 10.68 MB / 350.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.sim & ./Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches