Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.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.0008863/0.0008863, allocations: 88.28 kB / 21.44 MB, free: 3.129 MB / 18.57 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.003952/0.003952, allocations: 156 kB / 24.7 MB, free: 9.434 MB / 18.57 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 0.8419/0.8419, allocations: 177 MB / 204.8 MB, free: 5.738 MB / 186.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.LossyGearDemo3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.282e-06/1.282e-06, allocations: 0 / 325.8 MB, free: 15.27 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.557e-05/1.685e-05, allocations: 2.281 kB / 325.8 MB, free: 15.26 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.002317/0.002334, allocations: 2.342 MB / 328.1 MB, free: 12.9 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001091/0.003425, allocations: 1.002 MB / 329.1 MB, free: 11.89 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.066e-05/0.003516, allocations: 4 kB / 329.1 MB, free: 11.89 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002298/0.003745, allocations: 67.36 kB / 329.2 MB, free: 11.82 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003075/0.004053, allocations: 160 kB / 329.3 MB, free: 11.67 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002298/0.004283, allocations: 159.6 kB / 329.5 MB, free: 11.51 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.000326/0.004609, allocations: 490.4 kB / 330 MB, free: 11.03 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001157/0.004724, allocations: 44.86 kB / 330 MB, free: 10.99 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002088/0.004933, allocations: 275.5 kB / 330.3 MB, free: 10.72 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002097/0.005143, allocations: 207.5 kB / 330.5 MB, free: 10.52 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.476e-05/0.005188, allocations: 40 kB / 330.5 MB, free: 10.48 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001514/0.005339, allocations: 123.9 kB / 330.6 MB, free: 10.36 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 9.31e-05/0.005432, allocations: 111.6 kB / 330.8 MB, free: 10.25 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 8.507e-05/0.005517, allocations: 135.7 kB / 330.9 MB, free: 10.11 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004181/0.005935, allocations: 0.5296 MB / 331.4 MB, free: 9.582 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.024e-06/0.005937, allocations: 0 / 331.4 MB, free: 9.582 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.383e-06/0.005939, allocations: 8 kB / 331.4 MB, free: 9.574 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.208e-06/0.005943, allocations: 0 / 331.4 MB, free: 9.574 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.0007986/0.006741, allocations: 0.5829 MB / 332 MB, free: 8.961 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.893e-05/0.00678, allocations: 15.98 kB / 332 MB, free: 8.945 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001967/0.006977, allocations: 64.67 kB / 332.1 MB, free: 8.883 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003241/0.007301, allocations: 242.6 kB / 332.3 MB, free: 8.617 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.961e-05/0.007401, allocations: 144 kB / 332.5 MB, free: 8.453 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.124e-05/0.007442, allocations: 24.38 kB / 332.5 MB, free: 8.43 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004626/0.007905, allocations: 412.9 kB / 332.9 MB, free: 8.004 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.562e-05/0.00792, allocations: 4.125 kB / 332.9 MB, free: 8 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.643e-05/0.007947, allocations: 16.12 kB / 332.9 MB, free: 7.984 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.625e-06/0.007954, allocations: 8 kB / 332.9 MB, free: 7.977 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005037/0.008458, allocations: 414.3 kB / 333.3 MB, free: 7.57 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001237/0.009695, allocations: 1.076 MB / 334.4 MB, free: 6.445 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004491/0.01014, allocations: 322.4 kB / 334.7 MB, free: 6.121 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002206/0.01036, allocations: 168.8 kB / 334.9 MB, free: 5.953 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.339e-05/0.01039, allocations: 4.719 kB / 334.9 MB, free: 5.949 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.407e-05/0.01041, allocations: 38.56 kB / 334.9 MB, free: 5.902 MB / 298.7 MB Notification: Performance of pre-optimization done (n=43): time 1.453e-06/0.01041, allocations: 0 / 334.9 MB, free: 5.902 MB / 298.7 MB Notification: Performance of matching and sorting (n=45): time 0.002763/0.01318, allocations: 1.664 MB / 336.6 MB, free: 4.18 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.108e-05/0.01322, allocations: 88.8 kB / 336.7 MB, free: 4.074 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001916/0.01341, allocations: 257.9 kB / 336.9 MB, free: 3.812 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.418e-05/0.01343, allocations: 33.64 kB / 337 MB, free: 3.773 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.932e-05/0.0135, allocations: 144.8 kB / 337.1 MB, free: 3.625 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001394/0.01364, allocations: 150.9 kB / 337.2 MB, free: 3.477 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.575e-05/0.01374, allocations: 90.12 kB / 337.3 MB, free: 3.379 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.774e-05/0.01382, allocations: 338.8 kB / 337.7 MB, free: 3.039 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002183/0.01403, allocations: 160.9 kB / 337.8 MB, free: 2.883 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002482/0.01428, allocations: 256.2 kB / 338.1 MB, free: 2.609 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004088/0.01469, allocations: 340.1 kB / 338.4 MB, free: 2.262 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.423e-06/0.01469, allocations: 0 / 338.4 MB, free: 2.262 MB / 298.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0007727/0.01546, allocations: 0.5334 MB / 338.9 MB, free: 1.723 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.561e-05/0.01548, allocations: 11.94 kB / 338.9 MB, free: 1.711 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.029e-06/0.01548, allocations: 3.938 kB / 339 MB, free: 1.707 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004629/0.01595, allocations: 296.7 kB / 339.2 MB, free: 1.414 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001323/0.01608, allocations: 51.95 kB / 339.3 MB, free: 1.363 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002336/0.01842, allocations: 2.731 MB / 342 MB, free: 14.53 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000123/0.01854, allocations: 23.98 kB / 342 MB, free: 14.5 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.867e-05/0.01857, allocations: 23.92 kB / 342.1 MB, free: 14.48 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (27): * Single equations (assignments): 26 * 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,24)} Notification: Performance of prepare postOptimizeDAE: time 0.0001228/0.01869, allocations: 153.8 kB / 342.2 MB, free: 14.32 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.826e-05/0.01874, allocations: 31.81 kB / 342.3 MB, free: 14.29 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.567e-05/0.01878, allocations: 47 kB / 342.3 MB, free: 14.24 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.156e-06/0.01879, allocations: 7.984 kB / 342.3 MB, free: 14.23 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.422e-06/0.01879, allocations: 0 / 342.3 MB, free: 14.23 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.208e-06/0.01879, allocations: 7.984 kB / 342.3 MB, free: 14.23 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001365/0.02016, allocations: 0.9724 MB / 343.3 MB, free: 13.21 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.745e-06/0.02016, allocations: 0 / 343.3 MB, free: 13.21 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001306/0.02029, allocations: 43.95 kB / 343.3 MB, free: 13.17 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005091/0.0208, allocations: 284.6 kB / 343.6 MB, free: 12.89 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.329e-05/0.02082, allocations: 11.98 kB / 343.6 MB, free: 12.88 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002161/0.02298, allocations: 2.672 MB / 346.3 MB, free: 10.11 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.823e-06/0.02299, allocations: 3.984 kB / 346.3 MB, free: 10.11 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001003/0.02399, allocations: 0.8082 MB / 347.1 MB, free: 9.277 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001021/0.02409, allocations: 67.81 kB / 347.2 MB, free: 9.211 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.348e-05/0.02412, allocations: 12 kB / 347.2 MB, free: 9.199 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001334/0.02426, allocations: 27.97 kB / 347.2 MB, free: 9.172 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001011/0.02436, allocations: 59.88 kB / 347.3 MB, free: 9.113 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.203e-05/0.02438, allocations: 19.98 kB / 347.3 MB, free: 9.094 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001286/0.02451, allocations: 184.2 kB / 347.5 MB, free: 8.914 MB / 314.7 MB Notification: Performance of sort global known variables: time 6e-08/0.02451, allocations: 0 / 347.5 MB, free: 8.914 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0003805/0.02489, allocations: 139.9 kB / 347.6 MB, free: 8.777 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (21): * Single equations (assignments): 20 * 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.0006354/0.02553, allocations: 410.2 kB / 348 MB, free: 8.496 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0007838/0.02631, allocations: 0.602 MB / 348.6 MB, free: 7.883 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.02631, allocations: 0 / 348.6 MB, free: 7.883 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003996/0.02671, allocations: 409.9 kB / 349 MB, free: 7.469 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002614/0.02697, allocations: 40.09 kB / 349 MB, free: 7.43 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008203/0.02779, allocations: 0.6731 MB / 349.7 MB, free: 6.723 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001028/0.0279, allocations: 167.8 kB / 349.9 MB, free: 6.543 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.949e-05/0.02798, allocations: 44.47 kB / 349.9 MB, free: 6.5 MB / 314.7 MB Notification: Performance of SimCode: time 5.71e-07/0.02799, allocations: 0 / 349.9 MB, free: 6.5 MB / 314.7 MB Notification: Performance of Templates: time 0.005264/0.03325, allocations: 6.047 MB / 356 MB, free: 460 kB / 314.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.sim & ./Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo3/LossyGearDemo3.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.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.757701816037297]