Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_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.001096/0.001096, allocations: 80.11 kB / 9.934 MB, free: 0.7539 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001533/0.00263, allocations: 449.7 kB / 10.37 MB, free: 324 kB / 10.45 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.00107/0.00107, allocations: 165.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001339/0.00241, allocations: 463.6 kB / 11.72 MB, free: 2.453 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.003/1.003, allocations: 177.4 MB / 189.9 MB, free: 4.824 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.093/1.096, allocations: 53.86 MB / 243.7 MB, free: 14.9 MB / 250.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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_trunk_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_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.783e-06/1.783e-06, allocations: 0 / 245 MB, free: 13.65 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.764e-05/1.943e-05, allocations: 2.312 kB / 245 MB, free: 13.65 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.003014/0.003033, allocations: 2.601 MB / 247.6 MB, free: 11.04 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001744/0.004777, allocations: 1.134 MB / 248.7 MB, free: 9.895 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001647/0.004942, allocations: 7.938 kB / 248.7 MB, free: 9.887 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002204/0.005163, allocations: 67.44 kB / 248.8 MB, free: 9.82 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003844/0.005547, allocations: 187.2 kB / 249 MB, free: 9.641 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003374/0.005884, allocations: 191.5 kB / 249.2 MB, free: 9.453 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005277/0.006412, allocations: 0.514 MB / 249.7 MB, free: 8.938 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001612/0.006573, allocations: 63.08 kB / 249.8 MB, free: 8.871 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004003/0.006973, allocations: 348 kB / 250.1 MB, free: 8.531 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000226/0.007199, allocations: 223.5 kB / 250.3 MB, free: 8.312 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.478e-05/0.007244, allocations: 40 kB / 250.4 MB, free: 8.273 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002237/0.007468, allocations: 147.8 kB / 250.5 MB, free: 8.129 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 8.827e-05/0.007556, allocations: 71.81 kB / 250.6 MB, free: 8.059 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 9.095e-05/0.007647, allocations: 115.8 kB / 250.7 MB, free: 7.945 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003925/0.00804, allocations: 394.6 kB / 251.1 MB, free: 7.559 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.635e-05/0.008056, allocations: 0 / 251.1 MB, free: 7.559 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.212e-06/0.008057, allocations: 0 / 251.1 MB, free: 7.559 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.762e-05/0.008075, allocations: 0 / 251.1 MB, free: 7.559 MB / 250.7 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.0009777/0.009053, allocations: 0.6787 MB / 251.7 MB, free: 6.855 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.187e-05/0.009084, allocations: 8.625 kB / 251.8 MB, free: 6.848 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002713/0.009356, allocations: 162 kB / 251.9 MB, free: 6.672 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002943/0.00965, allocations: 229.9 kB / 252.1 MB, free: 6.418 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001038/0.009754, allocations: 144 kB / 252.3 MB, free: 6.254 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.571e-05/0.009799, allocations: 40.33 kB / 252.3 MB, free: 6.215 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003761/0.01018, allocations: 337.5 kB / 252.6 MB, free: 5.863 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.221e-05/0.01019, allocations: 0 / 252.6 MB, free: 5.863 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.407e-05/0.01021, allocations: 19.94 kB / 252.7 MB, free: 5.844 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.943e-06/0.01022, allocations: 4 kB / 252.7 MB, free: 5.84 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000516/0.01073, allocations: 195.2 kB / 252.9 MB, free: 5.648 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008388/0.01157, allocations: 0.5868 MB / 253.4 MB, free: 5.043 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002963/0.01187, allocations: 193.2 kB / 253.6 MB, free: 4.844 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001074/0.01198, allocations: 94.33 kB / 253.7 MB, free: 4.75 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.787e-05/0.01201, allocations: 8.5 kB / 253.7 MB, free: 4.742 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.669e-05/0.01203, allocations: 39.06 kB / 253.8 MB, free: 4.695 MB / 250.7 MB Notification: Performance of pre-optimization done (n=49): time 1.713e-06/0.01203, allocations: 0 / 253.8 MB, free: 4.695 MB / 250.7 MB Notification: Performance of matching and sorting (n=55): time 0.001966/0.014, allocations: 1.29 MB / 255.1 MB, free: 3.355 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.886e-05/0.01403, allocations: 59.84 kB / 255.1 MB, free: 3.281 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000141/0.01417, allocations: 213.1 kB / 255.3 MB, free: 3.055 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 2.871e-05/0.0142, allocations: 41.7 kB / 255.4 MB, free: 3.008 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 5e-05/0.01425, allocations: 129.1 kB / 255.5 MB, free: 2.879 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.972e-05/0.01435, allocations: 198.3 kB / 255.7 MB, free: 2.684 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.023e-05/0.01444, allocations: 82.14 kB / 255.8 MB, free: 2.598 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 8.9e-05/0.01453, allocations: 342.8 kB / 256.1 MB, free: 2.254 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.843e-05/0.01463, allocations: 75.73 kB / 256.2 MB, free: 2.18 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001175/0.01474, allocations: 137.7 kB / 256.3 MB, free: 2.027 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002023/0.01495, allocations: 205.1 kB / 256.5 MB, free: 1.82 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.493e-06/0.01495, allocations: 4.031 kB / 256.5 MB, free: 1.816 MB / 250.7 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.0003537/0.0153, allocations: 302.8 kB / 256.8 MB, free: 1.516 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.759e-05/0.01532, allocations: 8 kB / 256.8 MB, free: 1.508 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.362e-06/0.01532, allocations: 0 / 256.8 MB, free: 1.508 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003715/0.0157, allocations: 214.6 kB / 257 MB, free: 1.297 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001772/0.01587, allocations: 83.88 kB / 257.1 MB, free: 1.215 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001722/0.0176, allocations: 2.06 MB / 259.2 MB, free: 15.07 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001209/0.01772, allocations: 23.98 kB / 259.2 MB, free: 15.05 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.846e-05/0.01774, allocations: 15.98 kB / 259.2 MB, free: 15.03 MB / 266.7 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.0001071/0.01785, allocations: 140.6 kB / 259.3 MB, free: 14.88 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.292e-05/0.0179, allocations: 39.97 kB / 259.4 MB, free: 14.84 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.837e-05/0.01795, allocations: 47.3 kB / 259.4 MB, free: 14.8 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.717e-06/0.01796, allocations: 7.938 kB / 259.4 MB, free: 14.79 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.505e-06/0.01796, allocations: 0 / 259.4 MB, free: 14.79 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.96e-06/0.01796, allocations: 3.984 kB / 259.4 MB, free: 14.79 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001081/0.01905, allocations: 0.6714 MB / 260.1 MB, free: 14.08 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.897e-06/0.01905, allocations: 8.031 kB / 260.1 MB, free: 14.07 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001838/0.01923, allocations: 79.88 kB / 260.2 MB, free: 14 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.47e-05/0.01932, allocations: 51.75 kB / 260.3 MB, free: 13.95 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003202/0.01964, allocations: 208.1 kB / 260.5 MB, free: 13.74 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.273e-05/0.01966, allocations: 15.98 kB / 260.5 MB, free: 13.72 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001532/0.02119, allocations: 2.033 MB / 262.5 MB, free: 11.61 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.514e-06/0.0212, allocations: 4 kB / 262.5 MB, free: 11.61 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005054/0.0217, allocations: 0.4947 MB / 263 MB, free: 11.09 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.103e-05/0.02174, allocations: 15.94 kB / 263 MB, free: 11.07 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000121/0.02186, allocations: 19.98 kB / 263 MB, free: 11.05 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001055/0.02197, allocations: 76.34 kB / 263.1 MB, free: 10.97 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.148e-05/0.02199, allocations: 19.98 kB / 263.1 MB, free: 10.95 MB / 266.7 MB Notification: Performance of sorting global known variables: time 6.43e-05/0.02205, allocations: 75.02 kB / 263.2 MB, free: 10.88 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.02205, allocations: 0 / 263.2 MB, free: 10.88 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003783/0.02243, allocations: 147.9 kB / 263.4 MB, free: 10.73 MB / 266.7 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.001044/0.02348, allocations: 0.494 MB / 263.8 MB, free: 10.42 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.000582/0.02406, allocations: 473.5 kB / 264.3 MB, free: 9.945 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.253e-05/0.02407, allocations: 8 kB / 264.3 MB, free: 9.938 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003138/0.02438, allocations: 374 kB / 264.7 MB, free: 9.555 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002541/0.02464, allocations: 114.8 kB / 264.8 MB, free: 9.445 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003022/0.02766, allocations: 0.6717 MB / 265.5 MB, free: 8.738 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001128/0.02777, allocations: 118.3 kB / 265.6 MB, free: 8.602 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001418/0.02791, allocations: 59.03 kB / 265.6 MB, free: 8.547 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001494/0.02806, allocations: 107.3 kB / 265.7 MB, free: 8.441 MB / 266.7 MB Notification: Performance of SimCode: time 1.152e-06/0.02807, allocations: 0 / 265.7 MB, free: 8.441 MB / 266.7 MB Notification: Performance of Templates: time 0.01111/0.03918, allocations: 8.316 MB / 274.1 MB, free: 176 kB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.sim & ./Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1 -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo1/LossyGearDemo1.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.79145700763911]