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.001822/0.001822, allocations: 112.5 kB / 18.45 MB, free: 4.605 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.002138/0.002138, allocations: 207.3 kB / 21.41 MB, free: 1.648 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.53/1.53, allocations: 230.6 MB / 254.8 MB, free: 15.09 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.001661/0.001661, allocations: 39.94 kB / 374.1 MB, free: 9.715 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1108/0.1124, allocations: 53.34 MB / 427.5 MB, free: 4.281 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.004504/0.117, allocations: 2.551 MB / 430 MB, free: 1.715 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002189/0.1191, allocations: 1.139 MB / 431.2 MB, free: 0.5664 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002634/0.1194, allocations: 4 kB / 431.2 MB, free: 0.5625 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000355/0.1198, allocations: 67.42 kB / 431.2 MB, free: 0.4961 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006338/0.1204, allocations: 178.4 kB / 431.4 MB, free: 332 kB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005171/0.1209, allocations: 175.6 kB / 431.6 MB, free: 156 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.2175/0.3384, allocations: 0.5104 MB / 432.1 MB, free: 8.18 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000237/0.3386, allocations: 65.34 kB / 432.2 MB, free: 8.172 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004921/0.3391, allocations: 241.8 kB / 432.4 MB, free: 8.16 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003623/0.3395, allocations: 282.7 kB / 432.7 MB, free: 8.125 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.241e-05/0.3396, allocations: 45.97 kB / 432.7 MB, free: 8.121 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003375/0.3399, allocations: 138.6 kB / 432.8 MB, free: 8.121 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001289/0.34, allocations: 123.1 kB / 433 MB, free: 8.109 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001558/0.3402, allocations: 194.9 kB / 433.2 MB, free: 8.059 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000568/0.3408, allocations: 0.5456 MB / 433.7 MB, free: 7.988 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.3408, allocations: 0 / 433.7 MB, free: 7.988 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.695e-06/0.3408, allocations: 0 / 433.7 MB, free: 7.988 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.293e-06/0.3408, allocations: 0 / 433.7 MB, free: 7.988 MB / 350.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.001285/0.3421, allocations: 0.7184 MB / 434.4 MB, free: 7.508 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.121e-05/0.3421, allocations: 8.875 kB / 434.4 MB, free: 7.508 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004001/0.3425, allocations: 63.88 kB / 434.5 MB, free: 7.488 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004866/0.343, allocations: 317.8 kB / 434.8 MB, free: 7.266 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001171/0.3431, allocations: 96.09 kB / 434.9 MB, free: 7.203 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.173e-05/0.3432, allocations: 35.39 kB / 434.9 MB, free: 7.199 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008296/0.344, allocations: 427.4 kB / 435.3 MB, free: 7.137 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.901e-05/0.344, allocations: 1.219 kB / 435.3 MB, free: 7.137 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.41e-05/0.3441, allocations: 11.97 kB / 435.4 MB, free: 7.137 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.346e-05/0.3441, allocations: 11.55 kB / 435.4 MB, free: 7.137 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001037/0.3451, allocations: 470.7 kB / 435.8 MB, free: 7.137 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00174/0.3469, allocations: 0.9837 MB / 436.8 MB, free: 6.797 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008834/0.3477, allocations: 372.7 kB / 437.2 MB, free: 6.77 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004667/0.3482, allocations: 204.2 kB / 437.4 MB, free: 6.762 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.185e-05/0.3482, allocations: 12.36 kB / 437.4 MB, free: 6.762 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.934e-05/0.3483, allocations: 34.02 kB / 437.4 MB, free: 6.723 MB / 350.1 MB Notification: Performance of pre-optimization done (n=49): time 2.134e-06/0.3483, allocations: 0.5 kB / 437.4 MB, free: 6.723 MB / 350.1 MB Notification: Performance of matching and sorting (n=55): time 0.005559/0.3538, allocations: 2.147 MB / 439.6 MB, free: 5.668 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.565e-05/0.3539, allocations: 83.11 kB / 439.7 MB, free: 5.574 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003358/0.3542, allocations: 271 kB / 439.9 MB, free: 5.422 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.995e-05/0.3543, allocations: 37.64 kB / 440 MB, free: 5.383 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.117e-05/0.3543, allocations: 144.7 kB / 440.1 MB, free: 5.258 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001292/0.3545, allocations: 192.9 kB / 440.3 MB, free: 5.109 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001634/0.3546, allocations: 96.25 kB / 440.4 MB, free: 5.059 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.619e-05/0.3547, allocations: 346.9 kB / 440.7 MB, free: 4.73 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004571/0.3552, allocations: 190.3 kB / 440.9 MB, free: 4.668 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005012/0.3557, allocations: 240.8 kB / 441.1 MB, free: 4.566 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000877/0.3565, allocations: 385.9 kB / 441.5 MB, free: 4.406 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.3565, allocations: 0.5312 kB / 441.5 MB, free: 4.406 MB / 350.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001388/0.3579, allocations: 0.6041 MB / 442.1 MB, free: 4.16 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.051e-05/0.3579, allocations: 5.969 kB / 442.1 MB, free: 4.16 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.416e-06/0.358, allocations: 3.938 kB / 442.1 MB, free: 4.156 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008404/0.3588, allocations: 302.4 kB / 442.4 MB, free: 4.078 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003302/0.3591, allocations: 71.92 kB / 442.5 MB, free: 4.074 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003674/0.3628, allocations: 2.942 MB / 445.4 MB, free: 1.875 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000356/0.3632, allocations: 28.7 kB / 445.5 MB, free: 1.867 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.249e-05/0.3632, allocations: 20.59 kB / 445.5 MB, free: 1.863 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.0001999/0.3634, allocations: 154.7 kB / 445.6 MB, free: 1.727 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.643e-05/0.3635, allocations: 41.41 kB / 445.7 MB, free: 1.703 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001136/0.3636, allocations: 51.5 kB / 445.7 MB, free: 1.66 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.803e-06/0.3636, allocations: 5.734 kB / 445.7 MB, free: 1.66 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.063e-06/0.3636, allocations: 3.75 kB / 445.7 MB, free: 1.66 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.518e-06/0.3636, allocations: 2.766 kB / 445.7 MB, free: 1.66 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002644/0.3663, allocations: 1.282 MB / 447 MB, free: 0.9766 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.561e-06/0.3663, allocations: 1.734 kB / 447 MB, free: 0.9766 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003573/0.3666, allocations: 71.44 kB / 447.1 MB, free: 0.9727 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007944/0.3674, allocations: 281.8 kB / 447.4 MB, free: 0.9023 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.689e-05/0.3675, allocations: 16.75 kB / 447.4 MB, free: 0.8945 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003879/0.3714, allocations: 2.858 MB / 450.2 MB, free: 14.75 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.3714, allocations: 1.469 kB / 450.2 MB, free: 14.75 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00213/0.3735, allocations: 0.94 MB / 451.2 MB, free: 14.28 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002533/0.3737, allocations: 159.2 kB / 451.3 MB, free: 14.15 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.723e-05/0.3738, allocations: 22.11 kB / 451.4 MB, free: 14.14 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000334/0.3742, allocations: 32.27 kB / 451.4 MB, free: 14.12 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002102/0.3744, allocations: 70.22 kB / 451.5 MB, free: 14.11 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.803e-05/0.3744, allocations: 19.77 kB / 451.5 MB, free: 14.11 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003115/0.3747, allocations: 204.6 kB / 451.7 MB, free: 13.99 MB / 366.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3747, allocations: 0 / 451.7 MB, free: 13.99 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007572/0.3755, allocations: 150.4 kB / 451.8 MB, free: 13.97 MB / 366.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.001457/0.3769, allocations: 384.2 kB / 452.2 MB, free: 13.83 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001734/0.3787, allocations: 0.6681 MB / 452.9 MB, free: 13.51 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.3787, allocations: 3.938 kB / 452.9 MB, free: 13.51 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009404/0.3796, allocations: 465.5 kB / 453.3 MB, free: 13.27 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005237/0.3801, allocations: 51.69 kB / 453.4 MB, free: 13.24 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001778/0.3819, allocations: 0.8501 MB / 454.2 MB, free: 12.73 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000504/0.3824, allocations: 0.7952 MB / 455 MB, free: 12.03 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001917/0.3826, allocations: 46.94 kB / 455.1 MB, free: 12.02 MB / 366.1 MB Notification: Performance of SimCode: time 7.81e-07/0.3826, allocations: 0 / 455.1 MB, free: 12.02 MB / 366.1 MB Notification: Performance of Templates: time 0.01159/0.3942, allocations: 6.742 MB / 461.8 MB, free: 9.508 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: 8.444195406977087]