Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_4.0.0_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_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00104/0.00104, allocations: 103.7 kB / 16.62 MB, free: 6.812 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001152/0.001152, allocations: 193.8 kB / 17.55 MB, free: 5.953 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.301/1.301, allocations: 222.9 MB / 241.2 MB, free: 15.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009383/0.0009385, allocations: 47.33 kB / 300.1 MB, free: 6.211 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0793/0.08026, allocations: 49.46 MB / 349.6 MB, free: 4.75 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.003407/0.08369, allocations: 2.465 MB / 352 MB, free: 2.266 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001672/0.08538, allocations: 0.9599 MB / 353 MB, free: 1.297 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000222/0.08562, allocations: 7.938 kB / 353 MB, free: 1.289 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002697/0.08594, allocations: 31.77 kB / 353 MB, free: 1.258 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000527/0.08648, allocations: 141 kB / 353.2 MB, free: 1.121 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003706/0.08686, allocations: 167.8 kB / 353.3 MB, free: 0.957 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004647/0.08734, allocations: 466.5 kB / 353.8 MB, free: 0.5 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001929/0.08754, allocations: 92.91 kB / 353.9 MB, free: 412 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002858/0.08783, allocations: 203.4 kB / 354.1 MB, free: 208 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003104/0.08815, allocations: 243.3 kB / 354.3 MB, free: 15.96 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.168e-05/0.08823, allocations: 40 kB / 354.4 MB, free: 15.92 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002019/0.08844, allocations: 115.8 kB / 354.5 MB, free: 15.81 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001345/0.08858, allocations: 107.7 kB / 354.6 MB, free: 15.71 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001876/0.08878, allocations: 191 kB / 354.8 MB, free: 15.52 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005031/0.08929, allocations: 490.8 kB / 355.2 MB, free: 15.04 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.527e-06/0.0893, allocations: 4 kB / 355.2 MB, free: 15.04 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.08931, allocations: 4 kB / 355.3 MB, free: 15.03 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.476e-06/0.08932, allocations: 0 / 355.3 MB, free: 15.03 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.001283/0.09061, allocations: 0.6743 MB / 355.9 MB, free: 14.31 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.296e-05/0.09065, allocations: 8.031 kB / 355.9 MB, free: 14.3 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003242/0.09098, allocations: 60.45 kB / 356 MB, free: 14.24 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004438/0.09144, allocations: 319.4 kB / 356.3 MB, free: 13.89 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001213/0.09157, allocations: 88.61 kB / 356.4 MB, free: 13.79 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.488e-05/0.09165, allocations: 32.38 kB / 356.4 MB, free: 13.76 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007894/0.09244, allocations: 421 kB / 356.8 MB, free: 13.34 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.812e-05/0.09247, allocations: 4 kB / 356.8 MB, free: 13.33 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.824e-05/0.09252, allocations: 8 kB / 356.8 MB, free: 13.32 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.07e-05/0.09253, allocations: 11.94 kB / 356.9 MB, free: 13.31 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009859/0.09352, allocations: 474.2 kB / 357.3 MB, free: 12.85 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001677/0.09521, allocations: 0.9735 MB / 358.3 MB, free: 11.82 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008186/0.09605, allocations: 412.6 kB / 358.7 MB, free: 11.41 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000468/0.09653, allocations: 234.1 kB / 358.9 MB, free: 11.18 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.133e-05/0.09658, allocations: 4.438 kB / 358.9 MB, free: 11.18 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.639e-05/0.09661, allocations: 43 kB / 359 MB, free: 11.12 MB / 302.1 MB Notification: Performance of pre-optimization done (n=49): time 1.543e-06/0.09662, allocations: 0 / 359 MB, free: 11.12 MB / 302.1 MB Notification: Performance of matching and sorting (n=55): time 0.005349/0.102, allocations: 2.167 MB / 361.1 MB, free: 8.848 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.216e-05/0.102, allocations: 81.67 kB / 361.2 MB, free: 8.75 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003067/0.1024, allocations: 267 kB / 361.5 MB, free: 8.48 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.432e-05/0.1024, allocations: 37.7 kB / 361.5 MB, free: 8.438 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.049e-05/0.1025, allocations: 133.2 kB / 361.6 MB, free: 8.305 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001469/0.1027, allocations: 185.3 kB / 361.8 MB, free: 8.121 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001501/0.1028, allocations: 90.23 kB / 361.9 MB, free: 8.027 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001252/0.1029, allocations: 342.8 kB / 362.3 MB, free: 7.684 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004654/0.1034, allocations: 201 kB / 362.4 MB, free: 7.488 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004968/0.1039, allocations: 244.6 kB / 362.7 MB, free: 7.238 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008549/0.1048, allocations: 388.4 kB / 363.1 MB, free: 6.852 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.1048, allocations: 0 / 363.1 MB, free: 6.852 MB / 302.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001253/0.1061, allocations: 0.6134 MB / 363.7 MB, free: 6.23 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.009e-05/0.1061, allocations: 11.94 kB / 363.7 MB, free: 6.219 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.253e-06/0.1061, allocations: 0 / 363.7 MB, free: 6.219 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007229/0.1068, allocations: 266.6 kB / 364 MB, free: 5.957 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003/0.1071, allocations: 67.88 kB / 364 MB, free: 5.891 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003802/0.111, allocations: 2.928 MB / 366.9 MB, free: 2.824 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003139/0.1113, allocations: 32 kB / 367 MB, free: 2.793 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.055e-05/0.1113, allocations: 16 kB / 367 MB, free: 2.777 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.0002039/0.1116, allocations: 153.8 kB / 367.1 MB, free: 2.617 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.464e-05/0.1116, allocations: 31.56 kB / 367.2 MB, free: 2.586 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001223/0.1118, allocations: 59.36 kB / 367.2 MB, free: 2.527 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.929e-06/0.1118, allocations: 7.938 kB / 367.2 MB, free: 2.52 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.049e-06/0.1118, allocations: 4 kB / 367.2 MB, free: 2.516 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.13e-06/0.1118, allocations: 0 / 367.2 MB, free: 2.516 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002281/0.1141, allocations: 1.268 MB / 368.5 MB, free: 1.188 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.787e-06/0.1141, allocations: 0 / 368.5 MB, free: 1.188 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003211/0.1144, allocations: 67.88 kB / 368.6 MB, free: 1.121 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006668/0.1151, allocations: 244.7 kB / 368.8 MB, free: 0.8789 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.103e-05/0.1152, allocations: 15.94 kB / 368.8 MB, free: 0.8633 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1466/0.2618, allocations: 2.835 MB / 371.7 MB, free: 24.5 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.965e-06/0.2618, allocations: 1.156 kB / 371.7 MB, free: 24.5 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001842/0.2637, allocations: 0.9601 MB / 372.6 MB, free: 24.31 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001695/0.2639, allocations: 148.2 kB / 372.8 MB, free: 24.2 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.902e-05/0.2639, allocations: 16.98 kB / 372.8 MB, free: 24.19 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003214/0.2643, allocations: 28.34 kB / 372.8 MB, free: 24.18 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001887/0.2645, allocations: 70.27 kB / 372.9 MB, free: 24.17 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.92e-05/0.2645, allocations: 17.98 kB / 372.9 MB, free: 24.16 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000216/0.2647, allocations: 191.4 kB / 373.1 MB, free: 24.06 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.2647, allocations: 0 / 373.1 MB, free: 24.06 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006766/0.2654, allocations: 158.2 kB / 373.2 MB, free: 24.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.0002235/0.2656, allocations: 139.6 kB / 373.4 MB, free: 23.95 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001477/0.2671, allocations: 0.7251 MB / 374.1 MB, free: 23.65 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.2672, allocations: 0 / 374.1 MB, free: 23.65 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007728/0.2679, allocations: 486.7 kB / 374.6 MB, free: 23.42 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000444/0.2684, allocations: 46.34 kB / 374.6 MB, free: 23.39 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001435/0.2698, allocations: 0.9385 MB / 375.6 MB, free: 22.86 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000267/0.2701, allocations: 0.7933 MB / 376.4 MB, free: 22.15 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002327/0.2704, allocations: 60.83 kB / 376.4 MB, free: 22.14 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001111/0.2705, allocations: 33.83 kB / 376.5 MB, free: 22.13 MB / 302.1 MB Notification: Performance of SimCode: time 4.61e-07/0.2705, allocations: 4 kB / 376.5 MB, free: 22.12 MB / 302.1 MB Notification: Performance of Templates: time 0.01444/0.2849, allocations: 7.712 MB / 384.2 MB, free: 20.16 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.sim & ./Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches