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.001058/0.001058, allocations: 93.45 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001322/0.001322, allocations: 205.2 kB / 18.28 MB, free: 5.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.352/1.352, allocations: 227.7 MB / 246.8 MB, free: 9.598 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000197/0.000197, allocations: 4 kB / 307.7 MB, free: 0.6367 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09266/0.09288, allocations: 51.52 MB / 359.2 MB, free: 13.12 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.002668/0.09558, allocations: 2.217 MB / 361.4 MB, free: 10.89 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001677/0.09728, allocations: 1.112 MB / 362.6 MB, free: 9.77 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001056/0.0974, allocations: 7.938 kB / 362.6 MB, free: 9.762 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002358/0.09765, allocations: 55.62 kB / 362.6 MB, free: 9.707 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003856/0.09804, allocations: 166.7 kB / 362.8 MB, free: 9.543 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003322/0.09839, allocations: 155.7 kB / 362.9 MB, free: 9.391 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004551/0.09885, allocations: 0.4945 MB / 363.4 MB, free: 8.895 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001706/0.09903, allocations: 81.34 kB / 363.5 MB, free: 8.809 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002948/0.09933, allocations: 203.3 kB / 363.7 MB, free: 8.609 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002918/0.09963, allocations: 247.2 kB / 363.9 MB, free: 8.367 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.147e-05/0.09969, allocations: 24 kB / 364 MB, free: 8.344 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002107/0.09991, allocations: 111.9 kB / 364.1 MB, free: 8.234 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001201/0.1, allocations: 99.69 kB / 364.2 MB, free: 8.137 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000178/0.1002, allocations: 204.7 kB / 364.4 MB, free: 7.93 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000491/0.1007, allocations: 0.5142 MB / 364.9 MB, free: 7.414 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.475e-06/0.1007, allocations: 0 / 364.9 MB, free: 7.414 MB / 302.1 MB Notification: Performance of FrontEnd: time 9.92e-07/0.1007, allocations: 0 / 364.9 MB, free: 7.414 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.029e-06/0.1008, allocations: 0 / 364.9 MB, free: 7.414 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.001145/0.1019, allocations: 0.651 MB / 365.5 MB, free: 6.715 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.383e-05/0.1019, allocations: 8.031 kB / 365.6 MB, free: 6.707 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003894/0.1023, allocations: 64.44 kB / 365.6 MB, free: 6.645 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004164/0.1028, allocations: 315.4 kB / 365.9 MB, free: 6.297 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000137/0.1029, allocations: 96.59 kB / 366 MB, free: 6.188 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.509e-05/0.103, allocations: 28.38 kB / 366 MB, free: 6.16 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008135/0.1038, allocations: 433 kB / 366.5 MB, free: 5.73 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.749e-05/0.1038, allocations: 3.906 kB / 366.5 MB, free: 5.727 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.209e-05/0.1039, allocations: 12 kB / 366.5 MB, free: 5.715 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.047e-06/0.1039, allocations: 8 kB / 366.5 MB, free: 5.707 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001016/0.1049, allocations: 490.2 kB / 367 MB, free: 5.227 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001751/0.1067, allocations: 1.005 MB / 368 MB, free: 4.168 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008583/0.1075, allocations: 396.4 kB / 368.4 MB, free: 3.773 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004954/0.1081, allocations: 238.3 kB / 368.6 MB, free: 3.539 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.912e-05/0.1081, allocations: 12.38 kB / 368.6 MB, free: 3.527 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.16e-05/0.1081, allocations: 38.92 kB / 368.6 MB, free: 3.48 MB / 302.1 MB Notification: Performance of pre-optimization done (n=49): time 2.184e-06/0.1082, allocations: 4 kB / 368.6 MB, free: 3.477 MB / 302.1 MB Notification: Performance of matching and sorting (n=55): time 0.005395/0.1136, allocations: 2.214 MB / 370.9 MB, free: 1.148 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.814e-05/0.1137, allocations: 85.67 kB / 370.9 MB, free: 1.047 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003915/0.1141, allocations: 272.9 kB / 371.2 MB, free: 0.7773 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.215e-05/0.1141, allocations: 41.7 kB / 371.3 MB, free: 0.7305 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001357/0.1143, allocations: 145 kB / 371.4 MB, free: 0.582 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001738/0.1144, allocations: 173.5 kB / 371.6 MB, free: 420 kB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.113e-05/0.1145, allocations: 49.69 kB / 371.6 MB, free: 364 kB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001694/0.1147, allocations: 338.8 kB / 371.9 MB, free: 16 kB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.1847/0.2994, allocations: 195 kB / 372.1 MB, free: 19.22 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005601/0.3, allocations: 252.5 kB / 372.4 MB, free: 19.2 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009167/0.301, allocations: 397 kB / 372.8 MB, free: 19.17 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.275e-06/0.301, allocations: 3.719 kB / 372.8 MB, free: 19.17 MB / 302.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001432/0.3024, allocations: 0.6217 MB / 373.4 MB, free: 19.12 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.03e-05/0.3024, allocations: 11.8 kB / 373.4 MB, free: 19.12 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.893e-06/0.3025, allocations: 0 / 373.4 MB, free: 19.12 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009158/0.3034, allocations: 296.6 kB / 373.7 MB, free: 19.11 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000343/0.3037, allocations: 72.59 kB / 373.8 MB, free: 19.11 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003713/0.3075, allocations: 2.706 MB / 376.5 MB, free: 17.51 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003416/0.3078, allocations: 39.08 kB / 376.5 MB, free: 17.5 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.776e-05/0.3079, allocations: 20.61 kB / 376.5 MB, free: 17.5 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.0001755/0.3081, allocations: 168.5 kB / 376.7 MB, free: 17.35 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.777e-05/0.3081, allocations: 36.59 kB / 376.7 MB, free: 17.33 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001118/0.3083, allocations: 52.36 kB / 376.8 MB, free: 17.29 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.003e-06/0.3083, allocations: 6.625 kB / 376.8 MB, free: 17.29 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.026e-06/0.3083, allocations: 0 / 376.8 MB, free: 17.29 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.472e-06/0.3083, allocations: 3.484 kB / 376.8 MB, free: 17.29 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002251/0.3105, allocations: 1.316 MB / 378.1 MB, free: 16.59 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.368e-06/0.3106, allocations: 0.875 kB / 378.1 MB, free: 16.59 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003414/0.3109, allocations: 67.62 kB / 378.2 MB, free: 16.59 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007607/0.3117, allocations: 294.5 kB / 378.5 MB, free: 16.51 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.205e-05/0.3117, allocations: 20.31 kB / 378.5 MB, free: 16.5 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003323/0.3151, allocations: 2.611 MB / 381.1 MB, free: 14.55 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.3151, allocations: 1.438 kB / 381.1 MB, free: 14.55 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001845/0.3169, allocations: 0.9803 MB / 382.1 MB, free: 14.07 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001765/0.3171, allocations: 164.9 kB / 382.2 MB, free: 13.93 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.185e-05/0.3172, allocations: 13.39 kB / 382.2 MB, free: 13.93 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003232/0.3175, allocations: 36.11 kB / 382.3 MB, free: 13.92 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002182/0.3178, allocations: 74.83 kB / 382.4 MB, free: 13.9 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.089e-05/0.3178, allocations: 20.14 kB / 382.4 MB, free: 13.9 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000254/0.3181, allocations: 204.9 kB / 382.6 MB, free: 13.79 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.3181, allocations: 0 / 382.6 MB, free: 13.79 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007048/0.3188, allocations: 149.2 kB / 382.7 MB, free: 13.77 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.0008533/0.3196, allocations: 385.4 kB / 383.1 MB, free: 13.59 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001497/0.3212, allocations: 0.7098 MB / 383.8 MB, free: 13.25 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.145e-06/0.3212, allocations: 1.562 kB / 383.8 MB, free: 13.25 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009753/0.3221, allocations: 482.6 kB / 384.3 MB, free: 13 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005528/0.3227, allocations: 53.33 kB / 384.3 MB, free: 12.98 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002002/0.3247, allocations: 0.9861 MB / 385.3 MB, free: 12.36 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003919/0.3251, allocations: 0.7992 MB / 386.1 MB, free: 11.64 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003286/0.3255, allocations: 85.69 kB / 386.2 MB, free: 11.62 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001461/0.3256, allocations: 36.3 kB / 386.2 MB, free: 11.61 MB / 302.1 MB Notification: Performance of SimCode: time 1.593e-06/0.3256, allocations: 0 / 386.2 MB, free: 11.61 MB / 302.1 MB Notification: Performance of Templates: time 0.01599/0.3416, allocations: 7.645 MB / 393.9 MB, free: 8.906 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