Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.LossyGearDemo3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001441/0.001448, allocations: 110.5 kB / 17.73 MB, free: 5.363 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.001695/0.001695, allocations: 183.1 kB / 18.66 MB, free: 4.445 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.556/1.556, allocations: 205.1 MB / 224.5 MB, free: 12.25 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001402/0.001402, allocations: 47.94 kB / 328.5 MB, free: 3.324 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.114/0.1154, allocations: 46.62 MB / 375.1 MB, free: 4.594 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.004394/0.1198, allocations: 2.338 MB / 377.5 MB, free: 2.242 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002303/0.1222, allocations: 0.9605 MB / 378.4 MB, free: 1.273 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002888/0.1225, allocations: 3.938 kB / 378.4 MB, free: 1.27 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003073/0.1228, allocations: 51.58 kB / 378.5 MB, free: 1.219 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006969/0.1236, allocations: 131.2 kB / 378.6 MB, free: 1.09 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000492/0.1241, allocations: 179.6 kB / 378.8 MB, free: 0.9141 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005525/0.1246, allocations: 418.7 kB / 379.2 MB, free: 0.5039 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001949/0.1248, allocations: 68.69 kB / 379.3 MB, free: 444 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002108/0.125, allocations: 179.5 kB / 379.4 MB, free: 264 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003099/0.1254, allocations: 215.3 kB / 379.7 MB, free: 48 kB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.26e-05/0.1254, allocations: 36 kB / 379.7 MB, free: 12 kB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.2371/0.3625, allocations: 116.9 kB / 379.8 MB, free: 10.14 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001852/0.3627, allocations: 100.4 kB / 379.9 MB, free: 10.14 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002222/0.363, allocations: 161.2 kB / 380.1 MB, free: 10.13 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006616/0.3636, allocations: 447.5 kB / 380.5 MB, free: 10.09 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.741e-06/0.3636, allocations: 0.5625 kB / 380.5 MB, free: 10.09 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.3637, allocations: 0 / 380.5 MB, free: 10.09 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.774e-06/0.3637, allocations: 1.531 kB / 380.5 MB, free: 10.09 MB / 318.1 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.001137/0.3648, allocations: 0.6402 MB / 381.1 MB, free: 9.641 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.986e-05/0.3649, allocations: 8.906 kB / 381.1 MB, free: 9.641 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003048/0.3652, allocations: 51.61 kB / 381.2 MB, free: 9.625 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004725/0.3657, allocations: 303.2 kB / 381.5 MB, free: 9.406 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001065/0.3658, allocations: 85.7 kB / 381.6 MB, free: 9.344 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.733e-05/0.3658, allocations: 27.56 kB / 381.6 MB, free: 9.344 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006913/0.3665, allocations: 383 kB / 382 MB, free: 9.27 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.888e-05/0.3666, allocations: 8.406 kB / 382 MB, free: 9.266 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.476e-05/0.3666, allocations: 9.922 kB / 382 MB, free: 9.266 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.523e-05/0.3666, allocations: 6.75 kB / 382 MB, free: 9.266 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009499/0.3676, allocations: 421.2 kB / 382.4 MB, free: 9.266 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002068/0.3697, allocations: 1.238 MB / 383.6 MB, free: 8.734 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006777/0.3704, allocations: 352.7 kB / 384 MB, free: 8.711 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003597/0.3707, allocations: 186 kB / 384.2 MB, free: 8.703 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.162e-05/0.3708, allocations: 4.625 kB / 384.2 MB, free: 8.703 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.712e-05/0.3708, allocations: 44.06 kB / 384.2 MB, free: 8.664 MB / 318.1 MB Notification: Performance of pre-optimization done (n=43): time 1.873e-06/0.3708, allocations: 0 / 384.2 MB, free: 8.664 MB / 318.1 MB Notification: Performance of matching and sorting (n=45): time 0.00453/0.3753, allocations: 1.916 MB / 386.1 MB, free: 7.832 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.008e-05/0.3754, allocations: 90.86 kB / 386.2 MB, free: 7.73 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002851/0.3757, allocations: 241.4 kB / 386.5 MB, free: 7.59 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.594e-05/0.3757, allocations: 36.86 kB / 386.5 MB, free: 7.551 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.145e-05/0.3758, allocations: 134 kB / 386.6 MB, free: 7.434 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.241e-05/0.3759, allocations: 154.3 kB / 386.8 MB, free: 7.32 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001406/0.3761, allocations: 89.19 kB / 386.9 MB, free: 7.27 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.191e-05/0.3761, allocations: 335.7 kB / 387.2 MB, free: 6.945 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000353/0.3765, allocations: 167.1 kB / 387.4 MB, free: 6.891 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003968/0.3769, allocations: 230.8 kB / 387.6 MB, free: 6.777 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006298/0.3775, allocations: 344.4 kB / 387.9 MB, free: 6.621 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.342e-06/0.3775, allocations: 3.938 kB / 387.9 MB, free: 6.617 MB / 318.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001068/0.3786, allocations: 0.5601 MB / 388.5 MB, free: 6.391 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.174e-05/0.3787, allocations: 5.406 kB / 388.5 MB, free: 6.391 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.779e-06/0.3787, allocations: 4.031 kB / 388.5 MB, free: 6.391 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007972/0.3795, allocations: 254.9 kB / 388.7 MB, free: 6.32 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002468/0.3797, allocations: 54.33 kB / 388.8 MB, free: 6.316 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003517/0.3833, allocations: 2.879 MB / 391.7 MB, free: 4.152 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002663/0.3835, allocations: 26.44 kB / 391.7 MB, free: 4.145 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.404e-05/0.3836, allocations: 18.42 kB / 391.7 MB, free: 4.141 MB / 318.1 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.0001902/0.3838, allocations: 159.4 kB / 391.9 MB, free: 4 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.158e-05/0.3839, allocations: 25.06 kB / 391.9 MB, free: 3.988 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.728e-05/0.384, allocations: 41.84 kB / 391.9 MB, free: 3.957 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.665e-06/0.384, allocations: 5.219 kB / 391.9 MB, free: 3.957 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.991e-06/0.384, allocations: 0 / 391.9 MB, free: 3.957 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.093e-05/0.384, allocations: 6.953 kB / 392 MB, free: 3.953 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002072/0.3861, allocations: 1.087 MB / 393 MB, free: 3.352 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.903e-06/0.3861, allocations: 2.031 kB / 393 MB, free: 3.352 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002256/0.3863, allocations: 45.8 kB / 393.1 MB, free: 3.352 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007184/0.3871, allocations: 240.8 kB / 393.3 MB, free: 3.281 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.982e-05/0.3871, allocations: 17.64 kB / 393.3 MB, free: 3.27 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003733/0.3909, allocations: 2.833 MB / 396.2 MB, free: 1.145 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.805e-06/0.3909, allocations: 0.7969 kB / 396.2 MB, free: 1.145 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001601/0.3925, allocations: 0.823 MB / 397 MB, free: 0.7305 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001371/0.3926, allocations: 139.9 kB / 397.1 MB, free: 0.6094 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.297e-05/0.3927, allocations: 16.02 kB / 397.1 MB, free: 0.5977 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002386/0.3929, allocations: 27.47 kB / 397.2 MB, free: 0.5898 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00019/0.3931, allocations: 58.53 kB / 397.2 MB, free: 0.5781 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.15e-05/0.3932, allocations: 16.83 kB / 397.2 MB, free: 0.5742 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002297/0.3934, allocations: 178 kB / 397.4 MB, free: 484 kB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3934, allocations: 0 / 397.4 MB, free: 484 kB / 318.1 MB Notification: Performance of remove unused functions: time 0.0007849/0.3942, allocations: 143.3 kB / 397.6 MB, free: 460 kB / 318.1 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.0002486/0.3945, allocations: 145.2 kB / 397.7 MB, free: 352 kB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001262/0.3957, allocations: 0.624 MB / 398.3 MB, free: 52 kB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.3958, allocations: 0 / 398.3 MB, free: 52 kB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007555/0.3965, allocations: 433.1 kB / 398.7 MB, free: 15.82 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004102/0.3969, allocations: 34.92 kB / 398.8 MB, free: 15.8 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001366/0.3983, allocations: 0.7103 MB / 399.5 MB, free: 15.38 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004288/0.3988, allocations: 0.7738 MB / 400.3 MB, free: 14.68 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001774/0.3989, allocations: 58.05 kB / 400.3 MB, free: 14.67 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.724e-05/0.399, allocations: 29.45 kB / 400.4 MB, free: 14.66 MB / 334.1 MB Notification: Performance of SimCode: time 3.1e-07/0.399, allocations: 0 / 400.4 MB, free: 14.66 MB / 334.1 MB Notification: Performance of Templates: time 0.01294/0.412, allocations: 7.205 MB / 407.6 MB, free: 12.11 MB / 334.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.sim & ./Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/LossyGearDemo3/LossyGearDemo3.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches