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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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=1000,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=1000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001432/0.001432, allocations: 104.8 kB / 17.2 MB, free: 6.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001737/0.001737, allocations: 209.8 kB / 18.14 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.374/1.374, allocations: 227.4 MB / 246.3 MB, free: 10.76 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001243/0.001243, allocations: 59.44 kB / 306.3 MB, free: 1.039 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09022/0.09148, allocations: 50.53 MB / 356.8 MB, free: 14.52 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.003598/0.09511, allocations: 2.575 MB / 359.4 MB, free: 11.93 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001752/0.09689, allocations: 1.135 MB / 360.5 MB, free: 10.79 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001495/0.09706, allocations: 7.938 kB / 360.5 MB, free: 10.78 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002722/0.09735, allocations: 63.61 kB / 360.6 MB, free: 10.71 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003984/0.09776, allocations: 151.4 kB / 360.7 MB, free: 10.57 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003566/0.09812, allocations: 163.8 kB / 360.9 MB, free: 10.41 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004476/0.09858, allocations: 494.4 kB / 361.4 MB, free: 9.922 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001682/0.09876, allocations: 77.34 kB / 361.4 MB, free: 9.84 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003056/0.09907, allocations: 207.3 kB / 361.6 MB, free: 9.637 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002863/0.09937, allocations: 263.1 kB / 361.9 MB, free: 9.379 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.111e-05/0.09945, allocations: 24 kB / 361.9 MB, free: 9.355 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00022/0.09967, allocations: 115.9 kB / 362 MB, free: 9.242 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001261/0.09981, allocations: 99.69 kB / 362.1 MB, free: 9.145 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001803/0.09999, allocations: 191 kB / 362.3 MB, free: 8.957 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005111/0.1005, allocations: 0.5143 MB / 362.8 MB, free: 8.441 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.25e-06/0.1005, allocations: 7.938 kB / 362.8 MB, free: 8.434 MB / 302.1 MB Notification: Performance of FrontEnd: time 7.52e-07/0.1005, allocations: 0 / 362.8 MB, free: 8.434 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.228e-06/0.1006, allocations: 0 / 362.8 MB, free: 8.434 MB / 302.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.001295/0.1019, allocations: 0.7172 MB / 363.6 MB, free: 7.668 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.127e-05/0.1019, allocations: 8.031 kB / 363.6 MB, free: 7.66 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004035/0.1023, allocations: 64.53 kB / 363.6 MB, free: 7.598 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004246/0.1027, allocations: 319.3 kB / 363.9 MB, free: 7.246 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001167/0.1029, allocations: 88.61 kB / 364 MB, free: 7.145 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.174e-05/0.1029, allocations: 32.38 kB / 364.1 MB, free: 7.113 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008008/0.1038, allocations: 425 kB / 364.5 MB, free: 6.691 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.562e-05/0.1038, allocations: 0 / 364.5 MB, free: 6.691 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.226e-05/0.1038, allocations: 16 kB / 364.5 MB, free: 6.676 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.011e-05/0.1038, allocations: 8 kB / 364.5 MB, free: 6.668 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001081/0.1049, allocations: 470.3 kB / 365 MB, free: 6.207 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001664/0.1066, allocations: 0.9929 MB / 365.9 MB, free: 5.16 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008691/0.1075, allocations: 393.2 kB / 366.3 MB, free: 4.77 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004897/0.108, allocations: 226.3 kB / 366.6 MB, free: 4.547 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.38e-05/0.108, allocations: 12.36 kB / 366.6 MB, free: 4.535 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.334e-05/0.1081, allocations: 42.94 kB / 366.6 MB, free: 4.484 MB / 302.1 MB Notification: Performance of pre-optimization done (n=49): time 1.934e-06/0.1081, allocations: 0 / 366.6 MB, free: 4.484 MB / 302.1 MB Notification: Performance of matching and sorting (n=55): time 0.005423/0.1135, allocations: 2.144 MB / 368.7 MB, free: 2.227 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.748e-05/0.1136, allocations: 81.67 kB / 368.8 MB, free: 2.129 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003368/0.1139, allocations: 280.9 kB / 369.1 MB, free: 1.852 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.887e-05/0.114, allocations: 37.7 kB / 369.1 MB, free: 1.809 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.991e-05/0.1141, allocations: 137.1 kB / 369.3 MB, free: 1.668 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001547/0.1143, allocations: 185.4 kB / 369.5 MB, free: 1.484 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001629/0.1144, allocations: 90.23 kB / 369.5 MB, free: 1.391 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000134/0.1146, allocations: 342.8 kB / 369.9 MB, free: 1.047 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004734/0.1151, allocations: 189 kB / 370.1 MB, free: 0.8633 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000488/0.1156, allocations: 244.6 kB / 370.3 MB, free: 0.6172 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000873/0.1164, allocations: 388.3 kB / 370.7 MB, free: 232 kB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.1165, allocations: 0 / 370.7 MB, free: 232 kB / 302.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.1458/0.2623, allocations: 0.6073 MB / 371.3 MB, free: 20.31 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.781e-05/0.2625, allocations: 7.344 kB / 371.3 MB, free: 20.31 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.16e-05/0.2625, allocations: 1.234 kB / 371.3 MB, free: 20.31 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009527/0.2635, allocations: 296.8 kB / 371.6 MB, free: 20.3 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003569/0.2638, allocations: 71.84 kB / 371.7 MB, free: 20.3 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003809/0.2676, allocations: 2.692 MB / 374.3 MB, free: 18.73 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003481/0.268, allocations: 29.22 kB / 374.4 MB, free: 18.72 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.771e-05/0.2681, allocations: 19.83 kB / 374.4 MB, free: 18.72 MB / 302.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.00019/0.2683, allocations: 163.6 kB / 374.6 MB, free: 18.58 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.659e-05/0.2684, allocations: 37.22 kB / 374.6 MB, free: 18.56 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.827e-05/0.2685, allocations: 52.22 kB / 374.6 MB, free: 18.52 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.442e-06/0.2685, allocations: 8.594 kB / 374.7 MB, free: 18.52 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.166e-06/0.2685, allocations: 0.8438 kB / 374.7 MB, free: 18.52 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.232e-06/0.2685, allocations: 3.297 kB / 374.7 MB, free: 18.52 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002271/0.2708, allocations: 1.295 MB / 376 MB, free: 17.82 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.517e-06/0.2708, allocations: 1.375 kB / 376 MB, free: 17.82 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00035/0.2712, allocations: 69.48 kB / 376 MB, free: 17.82 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007715/0.272, allocations: 283.2 kB / 376.3 MB, free: 17.75 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.471e-05/0.272, allocations: 21.61 kB / 376.3 MB, free: 17.74 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003178/0.2752, allocations: 2.605 MB / 378.9 MB, free: 15.8 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.715e-06/0.2752, allocations: 1.641 kB / 378.9 MB, free: 15.8 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001821/0.2771, allocations: 0.9541 MB / 379.9 MB, free: 15.34 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001537/0.2772, allocations: 154.6 kB / 380 MB, free: 15.21 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.672e-05/0.2773, allocations: 17.19 kB / 380 MB, free: 15.2 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003132/0.2776, allocations: 28.08 kB / 380.1 MB, free: 15.2 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001914/0.2778, allocations: 79.97 kB / 380.2 MB, free: 15.18 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.025e-05/0.2779, allocations: 19.55 kB / 380.2 MB, free: 15.18 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002332/0.2781, allocations: 204.4 kB / 380.4 MB, free: 15.06 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.2781, allocations: 0 / 380.4 MB, free: 15.06 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006123/0.2787, allocations: 149 kB / 380.5 MB, free: 15.04 MB / 302.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.0007809/0.2795, allocations: 387.1 kB / 380.9 MB, free: 14.89 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001309/0.2808, allocations: 0.6901 MB / 381.6 MB, free: 14.57 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.2808, allocations: 0 / 381.6 MB, free: 14.57 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007649/0.2816, allocations: 476.7 kB / 382.1 MB, free: 14.31 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004355/0.2821, allocations: 53.97 kB / 382.1 MB, free: 14.29 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001419/0.2835, allocations: 0.9433 MB / 383 MB, free: 13.68 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000249/0.2838, allocations: 0.7967 MB / 383.8 MB, free: 12.98 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002633/0.284, allocations: 84.33 kB / 383.9 MB, free: 12.95 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001546/0.2842, allocations: 35.73 kB / 384 MB, free: 12.95 MB / 302.1 MB Notification: Performance of SimCode: time 4.01e-07/0.2842, allocations: 0 / 384 MB, free: 12.95 MB / 302.1 MB Notification: Performance of Templates: time 0.01238/0.2966, allocations: 7.759 MB / 391.7 MB, free: 10.38 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.makefile (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) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo1/LossyGearDemo1.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches