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.00142/0.00142, allocations: 113.2 kB / 17.73 MB, free: 5.34 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.001449/0.001449, allocations: 188.2 kB / 18.66 MB, free: 4.414 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.588/1.588, allocations: 205.1 MB / 224.5 MB, free: 12.23 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.001141/0.001141, allocations: 51.92 kB / 328.5 MB, free: 3.32 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1106/0.1118, allocations: 46.61 MB / 375.1 MB, free: 4.598 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.003625/0.1155, allocations: 2.346 MB / 377.5 MB, free: 2.238 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002021/0.1175, allocations: 0.9604 MB / 378.4 MB, free: 1.27 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001685/0.1177, allocations: 4 kB / 378.4 MB, free: 1.266 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000262/0.118, allocations: 51.58 kB / 378.5 MB, free: 1.215 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005684/0.1186, allocations: 127.3 kB / 378.6 MB, free: 1.09 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003845/0.119, allocations: 183.6 kB / 378.8 MB, free: 0.9102 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004421/0.1194, allocations: 422.7 kB / 379.2 MB, free: 0.4961 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001856/0.1196, allocations: 68.69 kB / 379.3 MB, free: 436 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002117/0.1199, allocations: 183.5 kB / 379.5 MB, free: 252 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002892/0.1202, allocations: 219.3 kB / 379.7 MB, free: 32 kB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.536e-05/0.1202, allocations: 32 kB / 379.7 MB, free: 0 / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.2149/0.3351, allocations: 114.1 kB / 379.8 MB, free: 10.17 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001776/0.3353, allocations: 100.3 kB / 379.9 MB, free: 10.17 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002262/0.3355, allocations: 159.1 kB / 380.1 MB, free: 10.16 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006318/0.3362, allocations: 454.2 kB / 380.5 MB, free: 10.12 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.161e-06/0.3362, allocations: 1.984 kB / 380.5 MB, free: 10.12 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.074e-06/0.3362, allocations: 0 / 380.5 MB, free: 10.12 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.438e-05/0.3362, allocations: 0 / 380.5 MB, free: 10.12 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.001139/0.3374, allocations: 0.6333 MB / 381.1 MB, free: 9.672 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.449e-05/0.3374, allocations: 13 kB / 381.2 MB, free: 9.672 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003085/0.3377, allocations: 48.47 kB / 381.2 MB, free: 9.656 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004707/0.3382, allocations: 306 kB / 381.5 MB, free: 9.438 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001148/0.3383, allocations: 87 kB / 381.6 MB, free: 9.375 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.505e-05/0.3384, allocations: 28.56 kB / 381.6 MB, free: 9.375 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006679/0.3391, allocations: 376.6 kB / 382 MB, free: 9.301 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.978e-05/0.3391, allocations: 8.906 kB / 382 MB, free: 9.297 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.791e-05/0.3391, allocations: 14.66 kB / 382 MB, free: 9.297 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.237e-06/0.3392, allocations: 6.875 kB / 382 MB, free: 9.297 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001042/0.3402, allocations: 421.5 kB / 382.4 MB, free: 9.297 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002067/0.3423, allocations: 1.233 MB / 383.7 MB, free: 8.766 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006963/0.343, allocations: 355.6 kB / 384 MB, free: 8.742 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003867/0.3434, allocations: 186.8 kB / 384.2 MB, free: 8.734 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.65e-05/0.3434, allocations: 3.781 kB / 384.2 MB, free: 8.734 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.085e-05/0.3435, allocations: 41.56 kB / 384.2 MB, free: 8.695 MB / 318.1 MB Notification: Performance of pre-optimization done (n=43): time 1.933e-06/0.3435, allocations: 0 / 384.2 MB, free: 8.695 MB / 318.1 MB Notification: Performance of matching and sorting (n=45): time 0.004588/0.3481, allocations: 1.919 MB / 386.1 MB, free: 7.859 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.736e-05/0.3481, allocations: 86 kB / 386.2 MB, free: 7.762 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000321/0.3485, allocations: 249.3 kB / 386.5 MB, free: 7.613 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.482e-05/0.3485, allocations: 36.3 kB / 386.5 MB, free: 7.578 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.036e-05/0.3486, allocations: 135.8 kB / 386.6 MB, free: 7.461 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000104/0.3487, allocations: 151.9 kB / 386.8 MB, free: 7.344 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001446/0.3489, allocations: 85.2 kB / 386.9 MB, free: 7.297 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.653e-05/0.349, allocations: 331.8 kB / 387.2 MB, free: 6.977 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003705/0.3493, allocations: 171.4 kB / 387.4 MB, free: 6.918 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000434/0.3498, allocations: 230.2 kB / 387.6 MB, free: 6.805 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007086/0.3505, allocations: 347.4 kB / 387.9 MB, free: 6.648 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.418e-06/0.3505, allocations: 0.9688 kB / 387.9 MB, free: 6.648 MB / 318.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001182/0.3517, allocations: 0.5599 MB / 388.5 MB, free: 6.422 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.016e-05/0.3517, allocations: 5.875 kB / 388.5 MB, free: 6.422 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.003e-06/0.3518, allocations: 1.031 kB / 388.5 MB, free: 6.422 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007508/0.3525, allocations: 258.4 kB / 388.7 MB, free: 6.344 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002511/0.3528, allocations: 50.8 kB / 388.8 MB, free: 6.344 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003773/0.3566, allocations: 2.887 MB / 391.7 MB, free: 4.18 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002632/0.3568, allocations: 23.67 kB / 391.7 MB, free: 4.176 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.55e-05/0.3569, allocations: 18.02 kB / 391.7 MB, free: 4.172 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.0001854/0.3571, allocations: 160.3 kB / 391.9 MB, free: 4.027 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.163e-05/0.3572, allocations: 26.05 kB / 391.9 MB, free: 4.016 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.881e-05/0.3573, allocations: 41.55 kB / 391.9 MB, free: 3.984 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.199e-06/0.3573, allocations: 4.938 kB / 392 MB, free: 3.984 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.32e-06/0.3573, allocations: 0 / 392 MB, free: 3.984 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.165e-06/0.3573, allocations: 3.594 kB / 392 MB, free: 3.984 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001789/0.3591, allocations: 1.093 MB / 393 MB, free: 3.379 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.456e-06/0.3591, allocations: 0 / 393 MB, free: 3.379 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002247/0.3593, allocations: 41.27 kB / 393.1 MB, free: 3.379 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000693/0.36, allocations: 239.6 kB / 393.3 MB, free: 3.309 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.696e-05/0.3601, allocations: 14.45 kB / 393.3 MB, free: 3.301 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003502/0.3636, allocations: 2.835 MB / 396.2 MB, free: 1.176 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.066e-06/0.3636, allocations: 1.312 kB / 396.2 MB, free: 1.176 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001504/0.3651, allocations: 0.8305 MB / 397 MB, free: 0.7539 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001416/0.3653, allocations: 137.6 kB / 397.1 MB, free: 0.6328 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.528e-05/0.3654, allocations: 15.31 kB / 397.2 MB, free: 0.6211 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002352/0.3656, allocations: 24.39 kB / 397.2 MB, free: 0.6133 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001811/0.3658, allocations: 56.77 kB / 397.2 MB, free: 0.6055 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.679e-05/0.3658, allocations: 20.73 kB / 397.3 MB, free: 0.5977 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002376/0.3661, allocations: 179.5 kB / 397.4 MB, free: 0.4961 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3661, allocations: 1.5 kB / 397.4 MB, free: 0.4961 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0007148/0.3668, allocations: 142 kB / 397.6 MB, free: 484 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.0002414/0.367, allocations: 136.1 kB / 397.7 MB, free: 384 kB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001307/0.3684, allocations: 0.6287 MB / 398.3 MB, free: 80 kB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.534e-06/0.3684, allocations: 0 / 398.3 MB, free: 80 kB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000798/0.3692, allocations: 430.6 kB / 398.8 MB, free: 15.85 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000433/0.3696, allocations: 42.97 kB / 398.8 MB, free: 15.82 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001531/0.3712, allocations: 0.6977 MB / 399.5 MB, free: 15.41 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004356/0.3716, allocations: 0.7824 MB / 400.3 MB, free: 14.7 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001876/0.3718, allocations: 59.56 kB / 400.3 MB, free: 14.7 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.616e-05/0.3719, allocations: 25.36 kB / 400.4 MB, free: 14.69 MB / 334.1 MB Notification: Performance of SimCode: time 7.11e-07/0.3719, allocations: 0 / 400.4 MB, free: 14.69 MB / 334.1 MB Notification: Performance of Templates: time 0.01587/0.3878, allocations: 7.204 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