Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001304/0.001304, allocations: 113.8 kB / 19.18 MB, free: 3.762 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001385/0.001385, allocations: 208.9 kB / 22.13 MB, free: 0.8125 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.43/1.43, allocations: 230.4 MB / 255.4 MB, free: 15 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-beta.om/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=500,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_4.1.0-beta.om_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-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.00192/0.00192, allocations: 55.91 kB / 374.7 MB, free: 9.746 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1079/0.1099, allocations: 53.31 MB / 428 MB, free: 4.344 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.004281/0.1141, allocations: 2.56 MB / 430.6 MB, free: 1.77 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002041/0.1162, allocations: 1.139 MB / 431.7 MB, free: 0.6211 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001328/0.1163, allocations: 7.938 kB / 431.7 MB, free: 0.6133 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003141/0.1166, allocations: 63.48 kB / 431.8 MB, free: 0.5508 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004941/0.1171, allocations: 171.8 kB / 432 MB, free: 392 kB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004005/0.1175, allocations: 175.7 kB / 432.1 MB, free: 216 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.2191/0.3366, allocations: 0.5152 MB / 432.7 MB, free: 8.219 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002182/0.3368, allocations: 66.08 kB / 432.7 MB, free: 8.207 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004684/0.3373, allocations: 243 kB / 433 MB, free: 8.195 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003318/0.3376, allocations: 275.2 kB / 433.2 MB, free: 8.16 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.728e-05/0.3377, allocations: 43.81 kB / 433.3 MB, free: 8.16 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003187/0.338, allocations: 139.3 kB / 433.4 MB, free: 8.16 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001303/0.3381, allocations: 119 kB / 433.5 MB, free: 8.148 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001544/0.3383, allocations: 198.9 kB / 433.7 MB, free: 8.098 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005716/0.3389, allocations: 0.546 MB / 434.3 MB, free: 8.027 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.3389, allocations: 3.781 kB / 434.3 MB, free: 8.027 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.3389, allocations: 0.5625 kB / 434.3 MB, free: 8.027 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.943e-06/0.3389, allocations: 3.281 kB / 434.3 MB, free: 8.027 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.001192/0.3401, allocations: 0.7093 MB / 435 MB, free: 7.547 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.589e-05/0.3401, allocations: 14.22 kB / 435 MB, free: 7.543 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004016/0.3405, allocations: 63.11 kB / 435.1 MB, free: 7.523 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004275/0.3409, allocations: 321.4 kB / 435.4 MB, free: 7.301 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001128/0.341, allocations: 88.19 kB / 435.5 MB, free: 7.238 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.613e-05/0.3411, allocations: 36.53 kB / 435.5 MB, free: 7.234 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007904/0.3419, allocations: 422.7 kB / 435.9 MB, free: 7.176 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.983e-05/0.3419, allocations: 1.906 kB / 435.9 MB, free: 7.176 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.934e-05/0.342, allocations: 13.84 kB / 435.9 MB, free: 7.176 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.927e-06/0.342, allocations: 8.094 kB / 435.9 MB, free: 7.176 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001032/0.343, allocations: 473.4 kB / 436.4 MB, free: 7.176 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001651/0.3446, allocations: 0.9882 MB / 437.4 MB, free: 6.836 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008279/0.3455, allocations: 371.8 kB / 437.7 MB, free: 6.805 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000463/0.3459, allocations: 205.9 kB / 437.9 MB, free: 6.797 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.067e-05/0.346, allocations: 5.062 kB / 438 MB, free: 6.797 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.761e-05/0.346, allocations: 46 kB / 438 MB, free: 6.758 MB / 350.1 MB Notification: Performance of pre-optimization done (n=49): time 2.043e-06/0.346, allocations: 0 / 438 MB, free: 6.758 MB / 350.1 MB Notification: Performance of matching and sorting (n=55): time 0.005211/0.3512, allocations: 2.145 MB / 440.1 MB, free: 5.73 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.061e-05/0.3513, allocations: 84.45 kB / 440.2 MB, free: 5.637 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000326/0.3516, allocations: 274.2 kB / 440.5 MB, free: 5.48 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.85e-05/0.3516, allocations: 36.8 kB / 440.5 MB, free: 5.441 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.664e-05/0.3517, allocations: 142.6 kB / 440.7 MB, free: 5.316 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001095/0.3518, allocations: 190.1 kB / 440.9 MB, free: 5.172 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001551/0.352, allocations: 93.19 kB / 440.9 MB, free: 5.125 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.89e-05/0.352, allocations: 343.3 kB / 441.3 MB, free: 4.797 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004457/0.3525, allocations: 200.8 kB / 441.5 MB, free: 4.73 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004701/0.3529, allocations: 240.2 kB / 441.7 MB, free: 4.629 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008341/0.3538, allocations: 379.6 kB / 442.1 MB, free: 4.473 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.3538, allocations: 7.781 kB / 442.1 MB, free: 4.469 MB / 350.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001356/0.3551, allocations: 0.5993 MB / 442.7 MB, free: 4.223 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.754e-05/0.3551, allocations: 6.625 kB / 442.7 MB, free: 4.223 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.895e-06/0.3552, allocations: 5.203 kB / 442.7 MB, free: 4.219 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008333/0.356, allocations: 301.8 kB / 443 MB, free: 4.141 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003265/0.3563, allocations: 71.89 kB / 443.1 MB, free: 4.137 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00347/0.3598, allocations: 2.943 MB / 446 MB, free: 1.938 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003345/0.3601, allocations: 29.19 kB / 446 MB, free: 1.93 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.045e-05/0.3602, allocations: 20.12 kB / 446.1 MB, free: 1.926 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.0001931/0.3604, allocations: 153.9 kB / 446.2 MB, free: 1.789 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.229e-05/0.3605, allocations: 41.06 kB / 446.2 MB, free: 1.766 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001051/0.3606, allocations: 51.81 kB / 446.3 MB, free: 1.723 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.041e-06/0.3606, allocations: 5.875 kB / 446.3 MB, free: 1.723 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.392e-06/0.3606, allocations: 0.5625 kB / 446.3 MB, free: 1.723 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.576e-06/0.3606, allocations: 3.891 kB / 446.3 MB, free: 1.723 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002211/0.3628, allocations: 1.284 MB / 447.6 MB, free: 1.039 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.306e-06/0.3628, allocations: 1.062 kB / 447.6 MB, free: 1.039 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003331/0.3631, allocations: 71.52 kB / 447.7 MB, free: 1.035 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007254/0.3639, allocations: 286.1 kB / 447.9 MB, free: 0.9648 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.252e-05/0.3639, allocations: 20.77 kB / 448 MB, free: 0.9531 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003786/0.3677, allocations: 2.855 MB / 450.8 MB, free: 14.81 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.775e-06/0.3677, allocations: 1.062 kB / 450.8 MB, free: 14.81 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002043/0.3697, allocations: 0.9376 MB / 451.8 MB, free: 14.34 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002311/0.37, allocations: 158.8 kB / 451.9 MB, free: 14.21 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.932e-05/0.37, allocations: 13.53 kB / 451.9 MB, free: 14.2 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003226/0.3704, allocations: 35.92 kB / 452 MB, free: 14.18 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002027/0.3706, allocations: 73.27 kB / 452 MB, free: 14.17 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.44e-05/0.3706, allocations: 21.02 kB / 452.1 MB, free: 14.17 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002836/0.3709, allocations: 204.2 kB / 452.3 MB, free: 14.05 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3709, allocations: 0 / 452.3 MB, free: 14.05 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007144/0.3716, allocations: 150.9 kB / 452.4 MB, free: 14.03 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.001345/0.3729, allocations: 385.9 kB / 452.8 MB, free: 13.89 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001622/0.3746, allocations: 0.6663 MB / 453.4 MB, free: 13.58 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.3746, allocations: 1.375 kB / 453.4 MB, free: 13.58 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008945/0.3755, allocations: 466.6 kB / 453.9 MB, free: 13.34 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004672/0.3759, allocations: 46.53 kB / 453.9 MB, free: 13.31 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001989/0.3779, allocations: 0.847 MB / 454.8 MB, free: 12.81 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000509/0.3784, allocations: 0.7914 MB / 455.6 MB, free: 12.11 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001899/0.3786, allocations: 51.2 kB / 455.6 MB, free: 12.09 MB / 366.1 MB Notification: Performance of SimCode: time 7.81e-07/0.3786, allocations: 0 / 455.6 MB, free: 12.09 MB / 366.1 MB Notification: Performance of Templates: time 0.01122/0.3898, allocations: 6.745 MB / 462.4 MB, free: 9.59 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.sim & ./Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo1/LossyGearDemo1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_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: 7.8266219408251345]