Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 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.LossyGearDemo1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_3.2.3_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_3.2.3_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.001196/0.001196, allocations: 110.2 kB / 17.73 MB, free: 5.316 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.001128/0.001128, allocations: 187 kB / 18.66 MB, free: 4.387 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.458/1.458, allocations: 205.1 MB / 224.5 MB, free: 12.21 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.001344/0.001344, allocations: 51.92 kB / 328.5 MB, free: 3.297 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1051/0.1064, allocations: 46.62 MB / 375.1 MB, free: 4.57 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.004142/0.1106, allocations: 2.424 MB / 377.6 MB, free: 2.133 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002061/0.1127, allocations: 1.007 MB / 378.6 MB, free: 1.117 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002628/0.113, allocations: 4 kB / 378.6 MB, free: 1.113 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002778/0.1133, allocations: 51.5 kB / 378.6 MB, free: 1.062 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006818/0.114, allocations: 167 kB / 378.8 MB, free: 0.8984 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004271/0.1144, allocations: 183.6 kB / 379 MB, free: 0.7188 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005692/0.115, allocations: 474.4 kB / 379.4 MB, free: 260 kB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002079/0.1152, allocations: 84.94 kB / 379.5 MB, free: 172 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.2362/0.3514, allocations: 201.6 kB / 379.7 MB, free: 9.91 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006677/0.3522, allocations: 241.9 kB / 379.9 MB, free: 9.91 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001152/0.3523, allocations: 42.31 kB / 380 MB, free: 9.906 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003883/0.3527, allocations: 126.6 kB / 380.1 MB, free: 9.906 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001726/0.3529, allocations: 110 kB / 380.2 MB, free: 9.895 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002355/0.3531, allocations: 184.3 kB / 380.4 MB, free: 9.848 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009059/0.354, allocations: 499 kB / 380.9 MB, free: 9.781 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.444e-06/0.354, allocations: 2.5 kB / 380.9 MB, free: 9.781 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.445e-06/0.3541, allocations: 0 / 380.9 MB, free: 9.781 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.104e-05/0.3541, allocations: 1.375 kB / 380.9 MB, free: 9.781 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: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.001313/0.3554, allocations: 0.6835 MB / 381.6 MB, free: 9.312 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.704e-05/0.3555, allocations: 13.97 kB / 381.6 MB, free: 9.312 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003284/0.3558, allocations: 55.3 kB / 381.6 MB, free: 9.293 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005925/0.3564, allocations: 320.6 kB / 382 MB, free: 9.066 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001493/0.3566, allocations: 89.11 kB / 382 MB, free: 9.004 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.206e-05/0.3567, allocations: 31.19 kB / 382.1 MB, free: 9.004 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009335/0.3576, allocations: 415.9 kB / 382.5 MB, free: 8.941 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.102e-05/0.3576, allocations: 1.844 kB / 382.5 MB, free: 8.941 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.156e-05/0.3577, allocations: 12.38 kB / 382.5 MB, free: 8.941 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.762e-05/0.3577, allocations: 8.25 kB / 382.5 MB, free: 8.941 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001202/0.3589, allocations: 476.5 kB / 383 MB, free: 8.938 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001896/0.3608, allocations: 0.9769 MB / 383.9 MB, free: 8.59 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009468/0.3618, allocations: 414.3 kB / 384.3 MB, free: 8.566 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005066/0.3623, allocations: 228.4 kB / 384.6 MB, free: 8.559 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.4e-05/0.3624, allocations: 7.688 kB / 384.6 MB, free: 8.559 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.833e-05/0.3624, allocations: 40.75 kB / 384.6 MB, free: 8.516 MB / 318.1 MB Notification: Performance of pre-optimization done (n=49): time 3.647e-06/0.3624, allocations: 0 / 384.6 MB, free: 8.516 MB / 318.1 MB Notification: Performance of matching and sorting (n=55): time 0.006101/0.3685, allocations: 2.171 MB / 386.8 MB, free: 7.477 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.32e-05/0.3686, allocations: 84.16 kB / 386.9 MB, free: 7.383 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003865/0.369, allocations: 265 kB / 387.1 MB, free: 7.238 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.212e-05/0.369, allocations: 41.17 kB / 387.2 MB, free: 7.195 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001022/0.3691, allocations: 141.1 kB / 387.3 MB, free: 7.07 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001592/0.3693, allocations: 188 kB / 387.5 MB, free: 6.926 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001788/0.3695, allocations: 88.45 kB / 387.6 MB, free: 6.879 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001091/0.3696, allocations: 339.2 kB / 387.9 MB, free: 6.555 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004857/0.3701, allocations: 193.7 kB / 388.1 MB, free: 6.496 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005357/0.3706, allocations: 250.2 kB / 388.3 MB, free: 6.391 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008742/0.3715, allocations: 388.9 kB / 388.7 MB, free: 6.234 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.943e-06/0.3715, allocations: 0 / 388.7 MB, free: 6.234 MB / 318.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001376/0.3729, allocations: 0.6132 MB / 389.3 MB, free: 5.984 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.291e-05/0.373, allocations: 9.344 kB / 389.3 MB, free: 5.98 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.082e-05/0.373, allocations: 4.5 kB / 389.3 MB, free: 5.977 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008469/0.3738, allocations: 263.3 kB / 389.6 MB, free: 5.902 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003245/0.3742, allocations: 69.31 kB / 389.7 MB, free: 5.895 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003847/0.378, allocations: 2.942 MB / 392.6 MB, free: 3.699 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003245/0.3784, allocations: 33.03 kB / 392.6 MB, free: 3.688 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.949e-05/0.3784, allocations: 18.91 kB / 392.7 MB, free: 3.684 MB / 318.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.0002331/0.3787, allocations: 155.4 kB / 392.8 MB, free: 3.547 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.295e-05/0.3788, allocations: 34.5 kB / 392.8 MB, free: 3.527 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001008/0.3789, allocations: 52.52 kB / 392.9 MB, free: 3.488 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.561e-06/0.3789, allocations: 4.844 kB / 392.9 MB, free: 3.488 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.412e-06/0.3789, allocations: 1.938 kB / 392.9 MB, free: 3.488 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.125e-06/0.3789, allocations: 2.625 kB / 392.9 MB, free: 3.488 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00222/0.3811, allocations: 1.27 MB / 394.2 MB, free: 2.816 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.198e-06/0.3811, allocations: 0.6875 kB / 394.2 MB, free: 2.816 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003257/0.3815, allocations: 67.03 kB / 394.2 MB, free: 2.812 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000691/0.3822, allocations: 251.3 kB / 394.5 MB, free: 2.738 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.555e-05/0.3822, allocations: 14.92 kB / 394.5 MB, free: 2.73 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003714/0.386, allocations: 2.847 MB / 397.4 MB, free: 0.582 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.664e-06/0.386, allocations: 1.25 kB / 397.4 MB, free: 0.582 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001871/0.3879, allocations: 0.9552 MB / 398.3 MB, free: 128 kB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001847/0.388, allocations: 152.2 kB / 398.5 MB, free: 0 / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.593e-05/0.3881, allocations: 14.33 kB / 398.5 MB, free: 0 / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003615/0.3885, allocations: 37.44 kB / 398.5 MB, free: 15.99 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002035/0.3887, allocations: 70.36 kB / 398.6 MB, free: 15.97 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.715e-05/0.3888, allocations: 22.78 kB / 398.6 MB, free: 15.97 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002808/0.3891, allocations: 199.4 kB / 398.8 MB, free: 15.86 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3891, allocations: 0 / 398.8 MB, free: 15.86 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000754/0.3898, allocations: 153.2 kB / 398.9 MB, free: 15.84 MB / 334.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.0002747/0.3901, allocations: 141.1 kB / 399.1 MB, free: 15.73 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.00166/0.3918, allocations: 0.7058 MB / 399.8 MB, free: 15.41 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.3918, allocations: 0 / 399.8 MB, free: 15.41 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008958/0.3927, allocations: 480.2 kB / 400.3 MB, free: 15.17 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004807/0.3932, allocations: 41.98 kB / 400.3 MB, free: 15.14 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001754/0.395, allocations: 0.7977 MB / 401.1 MB, free: 14.68 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005026/0.3955, allocations: 0.7978 MB / 401.9 MB, free: 13.98 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002594/0.3957, allocations: 62.33 kB / 402 MB, free: 13.96 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001213/0.3959, allocations: 34.27 kB / 402 MB, free: 13.95 MB / 334.1 MB Notification: Performance of SimCode: time 1.503e-06/0.3959, allocations: 0 / 402 MB, free: 13.95 MB / 334.1 MB Notification: Performance of Templates: time 0.01851/0.4144, allocations: 7.879 MB / 409.9 MB, free: 10.77 MB / 334.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.sim & ./Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/LossyGearDemo1/LossyGearDemo1.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches