Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_cpp_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_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009396/0.0009443, allocations: 174.9 kB / 16.72 MB, free: 4.965 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.446/1.446, allocations: 205.4 MB / 222.9 MB, free: 9.016 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001196/0.001196, allocations: 89.36 kB / 271.2 MB, free: 8.234 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004403/0.0004403, allocations: 8 kB / 327.5 MB, free: 15.87 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3206/0.3211, allocations: 47.56 MB / 375.1 MB, free: 45.41 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.002543/0.3237, allocations: 2.036 MB / 377.1 MB, free: 43.8 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001786/0.3255, allocations: 0.9642 MB / 378.1 MB, free: 43.04 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001482/0.3257, allocations: 7.312 kB / 378.1 MB, free: 43.03 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000176/0.3259, allocations: 36.89 kB / 378.1 MB, free: 43 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004374/0.3263, allocations: 127 kB / 378.2 MB, free: 42.91 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002842/0.3266, allocations: 142.1 kB / 378.4 MB, free: 42.81 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003765/0.327, allocations: 418.6 kB / 378.8 MB, free: 42.56 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001782/0.3272, allocations: 78.38 kB / 378.9 MB, free: 42.52 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000274/0.3275, allocations: 179.5 kB / 379 MB, free: 42.43 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002509/0.3277, allocations: 214 kB / 379.3 MB, free: 42.3 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.759e-05/0.3278, allocations: 19.72 kB / 379.3 MB, free: 42.3 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001976/0.328, allocations: 92.31 kB / 379.4 MB, free: 42.26 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001092/0.3281, allocations: 93.81 kB / 379.5 MB, free: 42.19 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001502/0.3283, allocations: 190.1 kB / 379.6 MB, free: 42.05 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003209/0.3286, allocations: 353.3 kB / 380 MB, free: 41.8 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.791e-06/0.3286, allocations: 0 / 380 MB, free: 41.8 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.415e-06/0.3286, allocations: 0 / 380 MB, free: 41.8 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.724e-06/0.3287, allocations: 3.938 kB / 380 MB, free: 41.8 MB / 298.7 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.001063/0.3297, allocations: 0.6091 MB / 380.6 MB, free: 41.27 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.033e-05/0.3298, allocations: 9.219 kB / 380.6 MB, free: 41.27 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002913/0.3301, allocations: 54.42 kB / 380.7 MB, free: 41.25 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003903/0.3305, allocations: 326.9 kB / 381 MB, free: 40.95 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001121/0.3306, allocations: 93.44 kB / 381.1 MB, free: 40.86 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.306e-05/0.3307, allocations: 29.66 kB / 381.1 MB, free: 40.86 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007189/0.3314, allocations: 417.4 kB / 381.5 MB, free: 40.61 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.563e-05/0.3315, allocations: 4 kB / 381.5 MB, free: 40.6 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.218e-05/0.3315, allocations: 19.31 kB / 381.5 MB, free: 40.59 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.207e-06/0.3315, allocations: 7.062 kB / 381.5 MB, free: 40.59 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009629/0.3325, allocations: 483.6 kB / 382 MB, free: 40.38 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001544/0.334, allocations: 0.9822 MB / 383 MB, free: 39.64 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007642/0.3348, allocations: 414.7 kB / 383.4 MB, free: 39.45 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004425/0.3353, allocations: 238.6 kB / 383.6 MB, free: 39.33 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.461e-05/0.3353, allocations: 9.375 kB / 383.6 MB, free: 39.33 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.351e-05/0.3354, allocations: 40.94 kB / 383.7 MB, free: 39.28 MB / 298.7 MB Notification: Performance of pre-optimization done (n=49): time 2.605e-06/0.3354, allocations: 1.031 kB / 383.7 MB, free: 39.28 MB / 298.7 MB Notification: Performance of matching and sorting (n=55): time 0.004727/0.3401, allocations: 2.235 MB / 385.9 MB, free: 37.56 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.266e-05/0.3402, allocations: 81.67 kB / 386 MB, free: 37.46 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002385/0.3404, allocations: 259 kB / 386.3 MB, free: 37.2 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.593e-05/0.3405, allocations: 37.7 kB / 386.3 MB, free: 37.16 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.308e-05/0.3405, allocations: 137.2 kB / 386.4 MB, free: 37.02 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.344e-05/0.3406, allocations: 181.3 kB / 386.6 MB, free: 36.84 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.66e-05/0.3407, allocations: 12 kB / 386.6 MB, free: 36.82 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.431e-05/0.3407, allocations: 342.8 kB / 386.9 MB, free: 36.48 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003583/0.3411, allocations: 201 kB / 387.1 MB, free: 36.29 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003789/0.3415, allocations: 256.6 kB / 387.4 MB, free: 36.02 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006654/0.3421, allocations: 400.3 kB / 387.8 MB, free: 35.63 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.3422, allocations: 4.031 kB / 387.8 MB, free: 35.62 MB / 298.7 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001005/0.3432, allocations: 0.6251 MB / 388.4 MB, free: 34.99 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.772e-05/0.3432, allocations: 7.938 kB / 388.4 MB, free: 34.98 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.342e-06/0.3432, allocations: 4 kB / 388.4 MB, free: 34.98 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006666/0.3439, allocations: 253.8 kB / 388.7 MB, free: 34.73 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002786/0.3442, allocations: 63.89 kB / 388.7 MB, free: 34.66 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00297/0.3472, allocations: 2.706 MB / 391.4 MB, free: 31.83 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003311/0.3475, allocations: 40.03 kB / 391.5 MB, free: 31.79 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.253e-05/0.3476, allocations: 16 kB / 391.5 MB, free: 31.78 MB / 298.7 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.tau_aPos,gear.startForward,gear.startBackward,gear.locked,$PRE.gear.mode,gear.mode,gear.ideal) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 25} Notification: Performance of prepare postOptimizeDAE: time 0.0001719/0.3477, allocations: 161.4 kB / 391.7 MB, free: 31.61 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.565e-05/0.3478, allocations: 35.62 kB / 391.7 MB, free: 31.58 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.272e-05/0.3479, allocations: 51.3 kB / 391.7 MB, free: 31.53 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.708e-06/0.3479, allocations: 11.94 kB / 391.7 MB, free: 31.52 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.297e-06/0.3479, allocations: 0 / 391.7 MB, free: 31.52 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.08e-06/0.3479, allocations: 0 / 391.7 MB, free: 31.52 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001794/0.3497, allocations: 1.277 MB / 393 MB, free: 30.18 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.098e-06/0.3498, allocations: 0 / 393 MB, free: 30.18 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002868/0.3501, allocations: 67.98 kB / 393.1 MB, free: 30.11 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005706/0.3506, allocations: 250.1 kB / 393.3 MB, free: 29.86 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.346e-05/0.3507, allocations: 8 kB / 393.3 MB, free: 29.86 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002714/0.3534, allocations: 2.612 MB / 396 MB, free: 27.11 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.853e-06/0.3534, allocations: 0 / 396 MB, free: 27.11 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001451/0.3549, allocations: 0.9728 MB / 396.9 MB, free: 26.11 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001489/0.355, allocations: 160.6 kB / 397.1 MB, free: 25.94 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.229e-05/0.3551, allocations: 12 kB / 397.1 MB, free: 25.93 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002724/0.3554, allocations: 35.97 kB / 397.1 MB, free: 25.89 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001601/0.3556, allocations: 80.36 kB / 397.2 MB, free: 25.81 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.204e-05/0.3556, allocations: 15.98 kB / 397.2 MB, free: 25.8 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001732/0.3558, allocations: 196.6 kB / 397.4 MB, free: 25.61 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3558, allocations: 0 / 397.4 MB, free: 25.61 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0005689/0.3564, allocations: 152 kB / 397.6 MB, free: 25.46 MB / 298.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 23} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002112/0.3566, allocations: 139.2 kB / 397.7 MB, free: 25.31 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001149/0.3577, allocations: 0.7112 MB / 398.4 MB, free: 24.59 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.385e-06/0.3578, allocations: 4 kB / 398.4 MB, free: 24.59 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006434/0.3584, allocations: 479.6 kB / 398.9 MB, free: 24.11 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004106/0.3588, allocations: 52.36 kB / 398.9 MB, free: 24.05 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001224/0.3601, allocations: 0.9777 MB / 399.9 MB, free: 23.04 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001816/0.3603, allocations: 0.7931 MB / 400.7 MB, free: 22.22 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001205/0.3604, allocations: 39.41 kB / 400.7 MB, free: 22.19 MB / 298.7 MB Notification: Performance of SimCode: time 3.51e-07/0.3604, allocations: 0 / 400.7 MB, free: 22.19 MB / 298.7 MB Notification: Performance of Templates: time 0.006369/0.3668, allocations: 5.92 MB / 406.7 MB, free: 16.27 MB / 298.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.sim & ./Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1 --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_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","../files/Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches