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.001805/0.001805, allocations: 110.8 kB / 19.17 MB, free: 3.871 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.002249/0.002249, allocations: 210.5 kB / 22.13 MB, free: 0.918 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.507/1.507, allocations: 230.2 MB / 255.1 MB, free: 15.26 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.002039/0.002039, allocations: 67.88 kB / 374.5 MB, free: 9.941 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1292/0.1312, allocations: 53.31 MB / 427.8 MB, free: 4.527 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.00491/0.1361, allocations: 2.561 MB / 430.4 MB, free: 1.953 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0025/0.1386, allocations: 1.139 MB / 431.5 MB, free: 0.8047 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002781/0.1389, allocations: 7.938 kB / 431.5 MB, free: 0.7969 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004099/0.1393, allocations: 59.44 kB / 431.6 MB, free: 0.7383 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006881/0.14, allocations: 174.3 kB / 431.8 MB, free: 0.5703 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005603/0.1406, allocations: 179.6 kB / 431.9 MB, free: 404 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.2148/0.3553, allocations: 0.5085 MB / 432.4 MB, free: 8.195 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002586/0.3556, allocations: 62.97 kB / 432.5 MB, free: 8.184 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006211/0.3562, allocations: 246.3 kB / 432.7 MB, free: 8.168 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000402/0.3566, allocations: 277 kB / 433 MB, free: 8.133 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001016/0.3567, allocations: 44.31 kB / 433.1 MB, free: 8.133 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003795/0.3571, allocations: 136.5 kB / 433.2 MB, free: 8.133 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00016/0.3572, allocations: 119.9 kB / 433.3 MB, free: 8.121 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002164/0.3575, allocations: 199.3 kB / 433.5 MB, free: 8.07 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000646/0.3581, allocations: 0.5499 MB / 434.1 MB, free: 8 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.939e-06/0.3581, allocations: 0 / 434.1 MB, free: 8 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.3581, allocations: 0 / 434.1 MB, free: 8 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.923e-06/0.3581, allocations: 2.75 kB / 434.1 MB, free: 8 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.001254/0.3594, allocations: 0.7076 MB / 434.8 MB, free: 7.52 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.097e-05/0.3594, allocations: 12.94 kB / 434.8 MB, free: 7.516 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004066/0.3598, allocations: 67.44 kB / 434.8 MB, free: 7.496 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000478/0.3603, allocations: 318.7 kB / 435.2 MB, free: 7.273 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001193/0.3604, allocations: 94.23 kB / 435.2 MB, free: 7.211 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.784e-05/0.3605, allocations: 34.52 kB / 435.3 MB, free: 7.207 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000814/0.3613, allocations: 423 kB / 435.7 MB, free: 7.148 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.021e-05/0.3613, allocations: 1.609 kB / 435.7 MB, free: 7.148 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.483e-05/0.3614, allocations: 17.22 kB / 435.7 MB, free: 7.148 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.224e-05/0.3614, allocations: 7.406 kB / 435.7 MB, free: 7.148 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001064/0.3624, allocations: 469.7 kB / 436.2 MB, free: 7.148 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001771/0.3642, allocations: 0.9916 MB / 437.2 MB, free: 6.809 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009079/0.3651, allocations: 371.8 kB / 437.5 MB, free: 6.777 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004803/0.3656, allocations: 205 kB / 437.7 MB, free: 6.77 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.333e-05/0.3656, allocations: 13.45 kB / 437.7 MB, free: 6.77 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.882e-05/0.3657, allocations: 37.72 kB / 437.8 MB, free: 6.73 MB / 350.1 MB Notification: Performance of pre-optimization done (n=49): time 1.864e-06/0.3657, allocations: 0.5 kB / 437.8 MB, free: 6.73 MB / 350.1 MB Notification: Performance of matching and sorting (n=55): time 0.005471/0.3711, allocations: 2.147 MB / 439.9 MB, free: 5.828 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.139e-05/0.3712, allocations: 85.3 kB / 440 MB, free: 5.734 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003433/0.3715, allocations: 275.5 kB / 440.3 MB, free: 5.582 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.963e-05/0.3716, allocations: 37.5 kB / 440.3 MB, free: 5.543 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.686e-05/0.3716, allocations: 142.9 kB / 440.5 MB, free: 5.418 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001198/0.3718, allocations: 192.9 kB / 440.6 MB, free: 5.27 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001627/0.3719, allocations: 96.12 kB / 440.7 MB, free: 5.219 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.16e-05/0.372, allocations: 339.1 kB / 441.1 MB, free: 4.895 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004785/0.3725, allocations: 192 kB / 441.3 MB, free: 4.832 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000526/0.373, allocations: 239.9 kB / 441.5 MB, free: 4.73 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000865/0.3739, allocations: 387.2 kB / 441.9 MB, free: 4.57 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.684e-06/0.3739, allocations: 0 / 441.9 MB, free: 4.57 MB / 350.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001461/0.3753, allocations: 0.5991 MB / 442.5 MB, free: 4.324 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.067e-05/0.3753, allocations: 5.312 kB / 442.5 MB, free: 4.324 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.267e-06/0.3754, allocations: 8.453 kB / 442.5 MB, free: 4.32 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008674/0.3762, allocations: 299 kB / 442.8 MB, free: 4.242 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003363/0.3766, allocations: 71.31 kB / 442.8 MB, free: 4.238 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003696/0.3803, allocations: 2.941 MB / 445.8 MB, free: 2.039 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003595/0.3806, allocations: 28.97 kB / 445.8 MB, free: 2.031 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.311e-05/0.3807, allocations: 21.64 kB / 445.8 MB, free: 2.027 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.0002096/0.3809, allocations: 160.1 kB / 446 MB, free: 1.887 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.651e-05/0.381, allocations: 35.88 kB / 446 MB, free: 1.867 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001151/0.3811, allocations: 52.38 kB / 446.1 MB, free: 1.824 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.123e-06/0.3811, allocations: 7.734 kB / 446.1 MB, free: 1.824 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.792e-06/0.3811, allocations: 0 / 446.1 MB, free: 1.824 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.725e-06/0.3811, allocations: 4.688 kB / 446.1 MB, free: 1.824 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002337/0.3834, allocations: 1.281 MB / 447.4 MB, free: 1.141 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.669e-06/0.3835, allocations: 1.969 kB / 447.4 MB, free: 1.141 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003452/0.3838, allocations: 71.78 kB / 447.4 MB, free: 1.137 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000761/0.3846, allocations: 283.9 kB / 447.7 MB, free: 1.066 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.255e-05/0.3846, allocations: 24.31 kB / 447.7 MB, free: 1.051 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003941/0.3885, allocations: 2.853 MB / 450.6 MB, free: 14.91 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.966e-06/0.3885, allocations: 0.875 kB / 450.6 MB, free: 14.91 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002113/0.3907, allocations: 0.9377 MB / 451.5 MB, free: 14.44 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002326/0.3909, allocations: 162.6 kB / 451.7 MB, free: 14.3 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.941e-05/0.391, allocations: 11.59 kB / 451.7 MB, free: 14.3 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003333/0.3913, allocations: 32.92 kB / 451.7 MB, free: 14.29 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002111/0.3915, allocations: 70.02 kB / 451.8 MB, free: 14.27 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.639e-05/0.3916, allocations: 19.52 kB / 451.8 MB, free: 14.27 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003089/0.3919, allocations: 205.1 kB / 452 MB, free: 14.15 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3919, allocations: 0 / 452 MB, free: 14.15 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007319/0.3926, allocations: 150.9 kB / 452.2 MB, free: 14.13 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.001391/0.394, allocations: 386 kB / 452.5 MB, free: 13.98 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001648/0.3956, allocations: 0.6712 MB / 453.2 MB, free: 13.66 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.404e-06/0.3956, allocations: 0 / 453.2 MB, free: 13.66 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009075/0.3965, allocations: 464.9 kB / 453.7 MB, free: 13.42 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004905/0.397, allocations: 53 kB / 453.7 MB, free: 13.4 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001812/0.3988, allocations: 0.8442 MB / 454.6 MB, free: 12.9 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000506/0.3994, allocations: 0.8024 MB / 455.4 MB, free: 12.19 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001845/0.3995, allocations: 47.11 kB / 455.4 MB, free: 12.18 MB / 366.1 MB Notification: Performance of SimCode: time 1.152e-06/0.3995, allocations: 0 / 455.4 MB, free: 12.18 MB / 366.1 MB Notification: Performance of Templates: time 0.01192/0.4115, allocations: 6.735 MB / 462.2 MB, free: 9.719 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_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_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.10687004798092]