Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001548/0.001548, allocations: 106.5 kB / 21.2 MB, free: 0.6406 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00175/0.00175, allocations: 213.6 kB / 24.49 MB, free: 3.934 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.472/1.472, allocations: 230.6 MB / 258.3 MB, free: 7.781 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001539/0.001539, allocations: 51.92 kB / 379 MB, free: 2.465 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.205/0.2066, allocations: 53.37 MB / 432.3 MB, free: 6.707 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.00409/0.2106, allocations: 2.407 MB / 434.7 MB, free: 4.297 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001922/0.2126, allocations: 1.088 MB / 435.8 MB, free: 3.203 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001135/0.2127, allocations: 4 kB / 435.8 MB, free: 3.199 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002652/0.2129, allocations: 71.42 kB / 435.9 MB, free: 3.129 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004614/0.2134, allocations: 175.2 kB / 436.1 MB, free: 2.961 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004203/0.2138, allocations: 183.6 kB / 436.2 MB, free: 2.781 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005601/0.2144, allocations: 0.5218 MB / 436.8 MB, free: 2.258 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001624/0.2145, allocations: 64.8 kB / 436.8 MB, free: 2.191 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000357/0.2149, allocations: 247.3 kB / 437.1 MB, free: 1.949 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003519/0.2153, allocations: 279.1 kB / 437.3 MB, free: 1.676 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.477e-05/0.2153, allocations: 40 kB / 437.4 MB, free: 1.637 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002465/0.2156, allocations: 135.9 kB / 437.5 MB, free: 1.504 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001488/0.2157, allocations: 127.6 kB / 437.6 MB, free: 1.379 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001772/0.2159, allocations: 167.3 kB / 437.8 MB, free: 1.215 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006456/0.2165, allocations: 0.5479 MB / 438.4 MB, free: 0.668 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.387e-06/0.2166, allocations: 0 / 438.4 MB, free: 0.668 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.2166, allocations: 4 kB / 438.4 MB, free: 0.6641 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.62e-06/0.2166, allocations: 0 / 438.4 MB, free: 0.6641 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.001425/0.218, allocations: 0.6375 MB / 439 MB, free: 15.99 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.639e-05/0.218, allocations: 11.97 kB / 439 MB, free: 15.98 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004406/0.2185, allocations: 64.67 kB / 439.1 MB, free: 15.92 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000536/0.219, allocations: 259.1 kB / 439.3 MB, free: 15.64 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001778/0.2192, allocations: 148 kB / 439.5 MB, free: 15.48 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.698e-05/0.2193, allocations: 36.33 kB / 439.5 MB, free: 15.44 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009298/0.2202, allocations: 446.8 kB / 439.9 MB, free: 14.99 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.745e-05/0.2202, allocations: 0 / 439.9 MB, free: 14.99 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.618e-05/0.2202, allocations: 8 kB / 439.9 MB, free: 14.98 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.945e-06/0.2203, allocations: 8 kB / 440 MB, free: 14.97 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001098/0.2213, allocations: 470.2 kB / 440.4 MB, free: 14.52 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001749/0.2231, allocations: 0.7923 MB / 441.2 MB, free: 13.69 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009049/0.224, allocations: 370.5 kB / 441.6 MB, free: 13.32 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005099/0.2245, allocations: 210.1 kB / 441.8 MB, free: 13.11 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.824e-05/0.2246, allocations: 8.438 kB / 441.8 MB, free: 13.11 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.458e-05/0.2246, allocations: 43 kB / 441.8 MB, free: 13.05 MB / 350.1 MB Notification: Performance of pre-optimization done (n=49): time 2.184e-06/0.2246, allocations: 0 / 441.8 MB, free: 13.05 MB / 350.1 MB Notification: Performance of matching and sorting (n=55): time 0.005781/0.2304, allocations: 1.91 MB / 443.7 MB, free: 11.09 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.206e-05/0.2304, allocations: 93.48 kB / 443.8 MB, free: 10.98 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003338/0.2308, allocations: 247.8 kB / 444.1 MB, free: 10.73 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.603e-05/0.2308, allocations: 33.7 kB / 444.1 MB, free: 10.69 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001094/0.2309, allocations: 145.1 kB / 444.2 MB, free: 10.54 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001803/0.2311, allocations: 194.3 kB / 444.4 MB, free: 10.35 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001842/0.2313, allocations: 94.17 kB / 444.5 MB, free: 10.25 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001715/0.2315, allocations: 342.8 kB / 444.9 MB, free: 9.906 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004957/0.232, allocations: 188.9 kB / 445 MB, free: 9.723 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005483/0.2325, allocations: 269.7 kB / 445.3 MB, free: 9.449 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009352/0.2334, allocations: 379.4 kB / 445.7 MB, free: 9.074 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.2334, allocations: 0 / 445.7 MB, free: 9.074 MB / 350.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001388/0.2348, allocations: 0.6003 MB / 446.3 MB, free: 8.465 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.536e-05/0.2349, allocations: 4 kB / 446.3 MB, free: 8.461 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.32e-06/0.2349, allocations: 4.031 kB / 446.3 MB, free: 8.457 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008785/0.2357, allocations: 310.5 kB / 446.6 MB, free: 8.152 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003408/0.2361, allocations: 71.88 kB / 446.7 MB, free: 8.082 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004258/0.2403, allocations: 2.763 MB / 449.4 MB, free: 5.207 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003135/0.2406, allocations: 32.03 kB / 449.5 MB, free: 5.176 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.809e-05/0.2407, allocations: 20 kB / 449.5 MB, free: 5.156 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.0001992/0.2409, allocations: 157.8 kB / 449.6 MB, free: 4.992 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.57e-05/0.241, allocations: 31.77 kB / 449.7 MB, free: 4.961 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001235/0.2411, allocations: 59.23 kB / 449.7 MB, free: 4.906 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.649e-06/0.2411, allocations: 0 / 449.7 MB, free: 4.906 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.783e-06/0.2411, allocations: 0 / 449.7 MB, free: 4.906 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001981/0.2413, allocations: 79.72 kB / 449.8 MB, free: 4.828 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.954e-05/0.2414, allocations: 19.98 kB / 449.8 MB, free: 4.809 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003325/0.2417, allocations: 27.97 kB / 449.8 MB, free: 4.781 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001355/0.2419, allocations: 56.39 kB / 449.9 MB, free: 4.727 MB / 350.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.002184/0.244, allocations: 0.7595 MB / 450.7 MB, free: 3.957 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001837/0.2459, allocations: 0.9142 MB / 451.6 MB, free: 3.023 MB / 350.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0005005/0.2464, allocations: 199.9 kB / 451.8 MB, free: 2.832 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002353/0.2466, allocations: 189.4 kB / 452 MB, free: 2.648 MB / 350.1 MB Notification: Performance of Backend: time 4.61e-07/0.2466, allocations: 4 kB / 452 MB, free: 2.645 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003448/0.2501, allocations: 1.041 MB / 453 MB, free: 1.828 MB / 350.1 MB Notification: Performance of SimCode: time 0.001535/0.2516, allocations: 1.304 MB / 454.3 MB, free: 492 kB / 350.1 MB Notification: Performance of Templates: time 0.01503/0.2666, allocations: 8.732 MB / 463 MB, free: 7.789 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.sim & ./Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo1/LossyGearDemo1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.4651716759981355]