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.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.001343/0.001343, allocations: 84.88 kB / 22 MB, free: 4.754 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.001401/0.001401, allocations: 153.8 kB / 25.24 MB, free: 2.746 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.335/1.335, allocations: 158.6 MB / 187 MB, free: 6.305 MB / 174.1 MB " [Timeout remaining time 179] 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.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_3.2.3_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_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.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.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001985/0.001985, allocations: 55.92 kB / 299.4 MB, free: 6.879 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1986/0.2006, allocations: 49.14 MB / 348.5 MB, free: 15.55 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.004011/0.2046, allocations: 2.29 MB / 350.8 MB, free: 13.25 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001767/0.2064, allocations: 0.9761 MB / 351.8 MB, free: 12.26 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001225/0.2065, allocations: 7.938 kB / 351.8 MB, free: 12.25 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002141/0.2067, allocations: 51.52 kB / 351.8 MB, free: 12.2 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005085/0.2072, allocations: 155.1 kB / 352 MB, free: 12.05 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003734/0.2076, allocations: 187.6 kB / 352.2 MB, free: 11.87 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005374/0.2081, allocations: 470.5 kB / 352.6 MB, free: 11.41 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001804/0.2083, allocations: 68.91 kB / 352.7 MB, free: 11.34 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002919/0.2086, allocations: 215.3 kB / 352.9 MB, free: 11.13 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003388/0.2089, allocations: 235.2 kB / 353.1 MB, free: 10.9 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.494e-05/0.209, allocations: 36 kB / 353.2 MB, free: 10.87 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002209/0.2092, allocations: 119.9 kB / 353.3 MB, free: 10.75 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001534/0.2094, allocations: 111.7 kB / 353.4 MB, free: 10.64 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001731/0.2096, allocations: 155.3 kB / 353.5 MB, free: 10.49 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005962/0.2102, allocations: 0.4966 MB / 354 MB, free: 9.996 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.396e-06/0.2102, allocations: 0 / 354 MB, free: 9.996 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.2102, allocations: 0 / 354 MB, free: 9.996 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.823e-06/0.2102, allocations: 0 / 354 MB, free: 9.996 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.001275/0.2114, allocations: 0.6143 MB / 354.6 MB, free: 9.352 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.347e-05/0.2115, allocations: 11.98 kB / 354.7 MB, free: 9.34 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000314/0.2118, allocations: 56.62 kB / 354.7 MB, free: 9.285 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004891/0.2123, allocations: 257.7 kB / 355 MB, free: 9.008 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001699/0.2125, allocations: 144 kB / 355.1 MB, free: 8.84 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.193e-05/0.2125, allocations: 32.38 kB / 355.1 MB, free: 8.809 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008411/0.2134, allocations: 442.8 kB / 355.6 MB, free: 8.359 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.957e-05/0.2134, allocations: 7.953 kB / 355.6 MB, free: 8.352 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.632e-05/0.2134, allocations: 15.94 kB / 355.6 MB, free: 8.336 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.071e-05/0.2134, allocations: 8 kB / 355.6 MB, free: 8.328 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001028/0.2145, allocations: 462.3 kB / 356 MB, free: 7.875 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001694/0.2161, allocations: 0.7807 MB / 356.8 MB, free: 7.066 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008676/0.217, allocations: 377.2 kB / 357.2 MB, free: 6.688 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004856/0.2175, allocations: 206.3 kB / 357.4 MB, free: 6.48 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.995e-05/0.2175, allocations: 12.48 kB / 357.4 MB, free: 6.469 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.864e-05/0.2176, allocations: 39.19 kB / 357.5 MB, free: 6.422 MB / 318.1 MB Notification: Performance of pre-optimization done (n=49): time 1.883e-06/0.2176, allocations: 4 kB / 357.5 MB, free: 6.418 MB / 318.1 MB Notification: Performance of matching and sorting (n=55): time 0.005355/0.2229, allocations: 1.929 MB / 359.4 MB, free: 4.438 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.249e-05/0.223, allocations: 85.61 kB / 359.5 MB, free: 4.336 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003081/0.2233, allocations: 239.1 kB / 359.7 MB, free: 4.09 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.165e-05/0.2233, allocations: 37.7 kB / 359.7 MB, free: 4.047 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.82e-05/0.2234, allocations: 137.2 kB / 359.9 MB, free: 3.91 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001651/0.2236, allocations: 198.3 kB / 360.1 MB, free: 3.715 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001491/0.2238, allocations: 90.17 kB / 360.2 MB, free: 3.621 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.000148/0.2239, allocations: 334.8 kB / 360.5 MB, free: 3.285 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000459/0.2244, allocations: 200.9 kB / 360.7 MB, free: 3.09 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005228/0.2249, allocations: 269.7 kB / 360.9 MB, free: 2.809 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008681/0.2258, allocations: 403.5 kB / 361.3 MB, free: 2.41 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.2258, allocations: 0 / 361.3 MB, free: 2.41 MB / 318.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001297/0.2271, allocations: 0.5965 MB / 361.9 MB, free: 1.805 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.76e-05/0.2271, allocations: 4 kB / 361.9 MB, free: 1.801 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.292e-06/0.2271, allocations: 0 / 361.9 MB, free: 1.801 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007839/0.2279, allocations: 266.5 kB / 362.2 MB, free: 1.539 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003154/0.2282, allocations: 63.89 kB / 362.3 MB, free: 1.477 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004062/0.2322, allocations: 2.759 MB / 365 MB, free: 14.61 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000312/0.2326, allocations: 24 kB / 365 MB, free: 14.59 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.664e-05/0.2326, allocations: 27.94 kB / 365.1 MB, free: 14.56 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.0002078/0.2328, allocations: 161.8 kB / 365.2 MB, free: 14.39 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.313e-05/0.2329, allocations: 35.75 kB / 365.3 MB, free: 14.36 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001008/0.233, allocations: 43.31 kB / 365.3 MB, free: 14.32 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.603e-06/0.233, allocations: 8 kB / 365.3 MB, free: 14.31 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.966e-06/0.233, allocations: 0 / 365.3 MB, free: 14.31 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.883e-06/0.233, allocations: 3.984 kB / 365.3 MB, free: 14.3 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002223/0.2352, allocations: 1.115 MB / 366.4 MB, free: 13.14 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.976e-06/0.2352, allocations: 0 / 366.4 MB, free: 13.14 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000336/0.2356, allocations: 67.89 kB / 366.5 MB, free: 13.08 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000678/0.2363, allocations: 236.7 kB / 366.7 MB, free: 12.84 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.928e-05/0.2363, allocations: 15.98 kB / 366.7 MB, free: 12.83 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003813/0.2401, allocations: 2.681 MB / 369.4 MB, free: 10.05 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.292e-06/0.2401, allocations: 0 / 369.4 MB, free: 10.05 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001876/0.242, allocations: 0.9449 MB / 370.4 MB, free: 9.082 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001672/0.2422, allocations: 63.83 kB / 370.4 MB, free: 9.02 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.784e-05/0.2422, allocations: 15.98 kB / 370.4 MB, free: 9.004 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003134/0.2425, allocations: 32.11 kB / 370.5 MB, free: 8.973 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001619/0.2427, allocations: 68.36 kB / 370.5 MB, free: 8.906 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.172e-05/0.2427, allocations: 23.92 kB / 370.6 MB, free: 8.883 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002289/0.243, allocations: 180.2 kB / 370.7 MB, free: 8.707 MB / 334.1 MB Notification: Performance of sort global known variables: time 9e-08/0.243, allocations: 0 / 370.7 MB, free: 8.707 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0006543/0.2436, allocations: 155.9 kB / 370.9 MB, free: 8.555 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (Inertia2.phi,Inertia2.w) * Number of discrete variables: 5 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,gear.mode) * Number of discrete states: 1 (gear.mode) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 30 * 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,23)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002273/0.2438, allocations: 143 kB / 371 MB, free: 8.402 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001457/0.2453, allocations: 0.6678 MB / 371.7 MB, free: 7.719 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.911e-06/0.2453, allocations: 4 kB / 371.7 MB, free: 7.715 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000844/0.2461, allocations: 464.6 kB / 372.2 MB, free: 7.254 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004194/0.2466, allocations: 35.97 kB / 372.2 MB, free: 7.219 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001536/0.2481, allocations: 0.809 MB / 373 MB, free: 6.375 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002038/0.2483, allocations: 190.8 kB / 373.2 MB, free: 6.168 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001985/0.2485, allocations: 62.89 kB / 373.3 MB, free: 6.109 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000102/0.2486, allocations: 40.42 kB / 373.3 MB, free: 6.07 MB / 334.1 MB Notification: Performance of SimCode: time 6.31e-07/0.2486, allocations: 3.938 kB / 373.3 MB, free: 6.066 MB / 334.1 MB Notification: Performance of Templates: time 0.01376/0.2624, allocations: 7.033 MB / 380.3 MB, free: 15.02 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.makefile [Timeout 660] (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 -s ida -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe 2>&1) [Timeout 480] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.416455375030637]