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.001672/0.001672, allocations: 109.1 kB / 21.19 MB, free: 0.7617 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.002197/0.002197, allocations: 217 kB / 24.5 MB, free: 4.133 MB / 14.72 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.712/1.712, allocations: 230.5 MB / 258.1 MB, free: 8.02 MB / 206.1 MB " [Timeout remaining time 178] 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 0.002258/0.002258, allocations: 63.91 kB / 379 MB, free: 2.52 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3072/0.3095, allocations: 53.42 MB / 432.4 MB, free: 6.773 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.005108/0.3146, allocations: 2.56 MB / 435 MB, free: 4.207 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002553/0.3171, allocations: 1.154 MB / 436.1 MB, free: 3.047 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003421/0.3175, allocations: 7.938 kB / 436.2 MB, free: 3.039 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004011/0.3179, allocations: 67.38 kB / 436.2 MB, free: 2.973 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008251/0.3187, allocations: 178.5 kB / 436.4 MB, free: 2.801 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006356/0.3193, allocations: 187.6 kB / 436.6 MB, free: 2.617 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008329/0.3202, allocations: 0.5219 MB / 437.1 MB, free: 2.094 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002384/0.3204, allocations: 57.16 kB / 437.2 MB, free: 2.031 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005693/0.321, allocations: 247.3 kB / 437.4 MB, free: 1.789 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005462/0.3215, allocations: 279.1 kB / 437.7 MB, free: 1.516 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001711/0.3217, allocations: 44 kB / 437.7 MB, free: 1.473 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004291/0.3221, allocations: 131.9 kB / 437.8 MB, free: 1.344 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002045/0.3223, allocations: 123.6 kB / 438 MB, free: 1.223 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003631/0.3227, allocations: 203.1 kB / 438.2 MB, free: 1.023 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009733/0.3237, allocations: 0.5383 MB / 438.7 MB, free: 500 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.437e-05/0.3237, allocations: 4 kB / 438.7 MB, free: 496 kB / 334.1 MB Notification: Performance of FrontEnd: time 1.973e-06/0.3237, allocations: 7.938 kB / 438.7 MB, free: 488 kB / 334.1 MB Notification: Performance of Transformations before backend: time 1.997e-05/0.3237, allocations: 0 / 438.7 MB, free: 488 kB / 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.001893/0.3256, allocations: 0.6453 MB / 439.4 MB, free: 15.8 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.427e-05/0.3257, allocations: 8.031 kB / 439.4 MB, free: 15.79 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005356/0.3262, allocations: 64.67 kB / 439.4 MB, free: 15.73 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000831/0.327, allocations: 254.6 kB / 439.7 MB, free: 15.46 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002153/0.3272, allocations: 148 kB / 439.8 MB, free: 15.29 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001046/0.3273, allocations: 36.33 kB / 439.9 MB, free: 15.25 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001018/0.3284, allocations: 421 kB / 440.3 MB, free: 14.83 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.472e-05/0.3284, allocations: 4 kB / 440.3 MB, free: 14.83 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.62e-05/0.3284, allocations: 15.98 kB / 440.3 MB, free: 14.81 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.277e-05/0.3284, allocations: 8 kB / 440.3 MB, free: 14.8 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001106/0.3296, allocations: 466.3 kB / 440.7 MB, free: 14.35 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002161/0.3317, allocations: 0.9359 MB / 441.7 MB, free: 13.37 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009447/0.3327, allocations: 375.5 kB / 442.1 MB, free: 13 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005045/0.3332, allocations: 210 kB / 442.3 MB, free: 12.79 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.081e-05/0.3332, allocations: 12.42 kB / 442.3 MB, free: 12.78 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.57e-05/0.3332, allocations: 35 kB / 442.3 MB, free: 12.73 MB / 350.1 MB Notification: Performance of pre-optimization done (n=49): time 3.016e-06/0.3333, allocations: 0 / 442.3 MB, free: 12.73 MB / 350.1 MB Notification: Performance of matching and sorting (n=55): time 0.005787/0.339, allocations: 1.913 MB / 444.2 MB, free: 10.77 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.094e-05/0.3391, allocations: 85.61 kB / 444.3 MB, free: 10.67 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000409/0.3395, allocations: 280.8 kB / 444.6 MB, free: 10.38 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.123e-05/0.3396, allocations: 37.7 kB / 444.6 MB, free: 10.33 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001169/0.3397, allocations: 137.2 kB / 444.7 MB, free: 10.2 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001768/0.3399, allocations: 190.4 kB / 444.9 MB, free: 10.01 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001646/0.34, allocations: 94.16 kB / 445 MB, free: 9.91 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001806/0.3402, allocations: 342.8 kB / 445.4 MB, free: 9.566 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004653/0.3407, allocations: 188.9 kB / 445.5 MB, free: 9.383 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005178/0.3412, allocations: 244 kB / 445.8 MB, free: 9.137 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009102/0.3421, allocations: 383.3 kB / 446.2 MB, free: 8.762 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.3421, allocations: 0 / 446.2 MB, free: 8.762 MB / 350.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001396/0.3435, allocations: 0.6043 MB / 446.8 MB, free: 8.145 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.624e-05/0.3435, allocations: 7.938 kB / 446.8 MB, free: 8.137 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.107e-05/0.3435, allocations: 4 kB / 446.8 MB, free: 8.133 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009023/0.3444, allocations: 298.5 kB / 447.1 MB, free: 7.84 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003347/0.3448, allocations: 67.89 kB / 447.1 MB, free: 7.773 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004471/0.3493, allocations: 2.853 MB / 450 MB, free: 4.809 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003919/0.3496, allocations: 27.97 kB / 450 MB, free: 4.781 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.875e-05/0.3497, allocations: 23.98 kB / 450 MB, free: 4.758 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.0002818/0.35, allocations: 157.7 kB / 450.2 MB, free: 4.594 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.681e-05/0.3501, allocations: 35.75 kB / 450.2 MB, free: 4.559 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001192/0.3502, allocations: 51.61 kB / 450.3 MB, free: 4.512 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.149e-05/0.3502, allocations: 4 kB / 450.3 MB, free: 4.508 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.577e-06/0.3502, allocations: 4.062 kB / 450.3 MB, free: 4.504 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.177e-06/0.3502, allocations: 7.984 kB / 450.3 MB, free: 4.496 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002528/0.3528, allocations: 1.242 MB / 451.5 MB, free: 3.199 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.073e-06/0.3528, allocations: 4 kB / 451.5 MB, free: 3.195 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000356/0.3531, allocations: 75.91 kB / 451.6 MB, free: 3.121 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008174/0.3539, allocations: 281.3 kB / 451.9 MB, free: 2.844 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.45e-05/0.354, allocations: 15.98 kB / 451.9 MB, free: 2.828 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004197/0.3582, allocations: 2.75 MB / 454.6 MB, free: 15.96 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.023e-06/0.3582, allocations: 0 / 454.6 MB, free: 15.96 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002078/0.3603, allocations: 0.9371 MB / 455.6 MB, free: 15 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002268/0.3605, allocations: 83.75 kB / 455.7 MB, free: 14.92 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.44e-05/0.3606, allocations: 15.94 kB / 455.7 MB, free: 14.9 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003191/0.3609, allocations: 27.97 kB / 455.7 MB, free: 14.88 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001934/0.3611, allocations: 76.36 kB / 455.8 MB, free: 14.8 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.251e-05/0.3611, allocations: 23.92 kB / 455.8 MB, free: 14.77 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002911/0.3614, allocations: 208.4 kB / 456 MB, free: 14.57 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3614, allocations: 0 / 456 MB, free: 14.57 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007372/0.3621, allocations: 151.9 kB / 456.2 MB, free: 14.42 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.001475/0.3636, allocations: 375.9 kB / 456.5 MB, free: 14.17 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001637/0.3653, allocations: 0.6596 MB / 457.2 MB, free: 13.49 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.3653, allocations: 0 / 457.2 MB, free: 13.49 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000947/0.3662, allocations: 468 kB / 457.6 MB, free: 13.02 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005057/0.3667, allocations: 44.42 kB / 457.7 MB, free: 12.98 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001797/0.3685, allocations: 0.8417 MB / 458.5 MB, free: 12.1 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004757/0.369, allocations: 0.8007 MB / 459.3 MB, free: 11.27 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001876/0.3692, allocations: 43.41 kB / 459.4 MB, free: 11.23 MB / 366.1 MB Notification: Performance of SimCode: time 8.32e-07/0.3692, allocations: 7.938 kB / 459.4 MB, free: 11.22 MB / 366.1 MB Notification: Performance of Templates: time 0.01141/0.3806, allocations: 6.744 MB / 466.1 MB, free: 4.484 MB / 366.1 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=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_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_trunk_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.503283543977886]