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.001279/0.001279, allocations: 104.4 kB / 18.35 MB, free: 4.645 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.001294/0.001294, allocations: 191 kB / 19.29 MB, free: 3.715 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.367/1.367, allocations: 205.1 MB / 225.2 MB, free: 12.27 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.001169/0.001169, allocations: 47.94 kB / 282.1 MB, free: 2.496 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0768/0.07798, allocations: 46.64 MB / 328.7 MB, free: 3.785 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.003319/0.08133, allocations: 2.322 MB / 331.1 MB, free: 1.441 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001464/0.08281, allocations: 0.9723 MB / 332 MB, free: 472 kB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.513e-05/0.08292, allocations: 7.938 kB / 332 MB, free: 464 kB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001692/0.0831, allocations: 47.56 kB / 332.1 MB, free: 416 kB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000385/0.08349, allocations: 135.3 kB / 332.2 MB, free: 280 kB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000291/0.08379, allocations: 167.7 kB / 332.4 MB, free: 112 kB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.000384/0.08419, allocations: 414.8 kB / 332.8 MB, free: 15.7 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001524/0.08435, allocations: 76.64 kB / 332.9 MB, free: 15.63 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001802/0.08454, allocations: 183.4 kB / 333 MB, free: 15.45 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002524/0.0848, allocations: 211.3 kB / 333.2 MB, free: 15.24 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.9e-05/0.08485, allocations: 32 kB / 333.3 MB, free: 15.21 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000194/0.08505, allocations: 123.9 kB / 333.4 MB, free: 15.09 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001163/0.08518, allocations: 103.7 kB / 333.5 MB, free: 14.99 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001433/0.08533, allocations: 163.2 kB / 333.7 MB, free: 14.83 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004272/0.08576, allocations: 446.6 kB / 334.1 MB, free: 14.39 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.687e-06/0.08577, allocations: 0 / 334.1 MB, free: 14.39 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.432e-06/0.08578, allocations: 0 / 334.1 MB, free: 14.39 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.121e-06/0.08579, allocations: 0 / 334.1 MB, free: 14.39 MB / 286.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.001076/0.08687, allocations: 0.6395 MB / 334.7 MB, free: 13.7 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.192e-05/0.08691, allocations: 11.97 kB / 334.7 MB, free: 13.69 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000288/0.08721, allocations: 48.55 kB / 334.8 MB, free: 13.64 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004668/0.08768, allocations: 307.7 kB / 335.1 MB, free: 13.3 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001235/0.08782, allocations: 84.52 kB / 335.2 MB, free: 13.21 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.947e-05/0.08789, allocations: 28.38 kB / 335.2 MB, free: 13.18 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006585/0.08855, allocations: 385.3 kB / 335.6 MB, free: 12.79 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.712e-05/0.08858, allocations: 4 kB / 335.6 MB, free: 12.79 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.23e-05/0.08862, allocations: 8 kB / 335.6 MB, free: 12.78 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.897e-06/0.08863, allocations: 8 kB / 335.6 MB, free: 12.77 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007878/0.08942, allocations: 417.9 kB / 336 MB, free: 12.36 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001911/0.09135, allocations: 1.23 MB / 337.2 MB, free: 11.06 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006351/0.09199, allocations: 358.5 kB / 337.6 MB, free: 10.7 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003649/0.09237, allocations: 188.8 kB / 337.8 MB, free: 10.51 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.465e-05/0.09242, allocations: 8.141 kB / 337.8 MB, free: 10.5 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.406e-05/0.09245, allocations: 39.28 kB / 337.8 MB, free: 10.46 MB / 286.1 MB Notification: Performance of pre-optimization done (n=43): time 1.623e-06/0.09245, allocations: 0 / 337.8 MB, free: 10.46 MB / 286.1 MB Notification: Performance of matching and sorting (n=45): time 0.004384/0.09684, allocations: 1.917 MB / 339.7 MB, free: 8.426 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.604e-05/0.09691, allocations: 92.86 kB / 339.8 MB, free: 8.316 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002776/0.0972, allocations: 246.1 kB / 340.1 MB, free: 8.062 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.997e-05/0.09725, allocations: 37.7 kB / 340.1 MB, free: 8.02 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.33e-05/0.09735, allocations: 132.6 kB / 340.2 MB, free: 7.887 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000112/0.09747, allocations: 145.9 kB / 340.4 MB, free: 7.742 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001321/0.0976, allocations: 86.12 kB / 340.5 MB, free: 7.652 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001251/0.09774, allocations: 334.8 kB / 340.8 MB, free: 7.316 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003532/0.0981, allocations: 168.8 kB / 340.9 MB, free: 7.152 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003822/0.09849, allocations: 233.9 kB / 341.2 MB, free: 6.902 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006368/0.09914, allocations: 347.2 kB / 341.5 MB, free: 6.551 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.09915, allocations: 0 / 341.5 MB, free: 6.551 MB / 286.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001023/0.1002, allocations: 0.5551 MB / 342.1 MB, free: 5.988 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.568e-05/0.1002, allocations: 8.125 kB / 342.1 MB, free: 5.98 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.274e-06/0.1002, allocations: 4 kB / 342.1 MB, free: 5.977 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006841/0.1009, allocations: 252.6 kB / 342.3 MB, free: 5.727 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002306/0.1011, allocations: 51.91 kB / 342.4 MB, free: 5.676 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003704/0.1049, allocations: 2.889 MB / 345.3 MB, free: 2.648 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002551/0.1051, allocations: 19.98 kB / 345.3 MB, free: 2.629 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.295e-05/0.1052, allocations: 23.97 kB / 345.3 MB, free: 2.605 MB / 286.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.0001584/0.1053, allocations: 153.8 kB / 345.5 MB, free: 2.445 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.86e-05/0.1054, allocations: 31.62 kB / 345.5 MB, free: 2.414 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001018/0.1055, allocations: 42.98 kB / 345.5 MB, free: 2.371 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.11e-06/0.1055, allocations: 4 kB / 345.5 MB, free: 2.367 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.306e-06/0.1056, allocations: 7.938 kB / 345.5 MB, free: 2.359 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.098e-06/0.1056, allocations: 0 / 345.5 MB, free: 2.359 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001744/0.1073, allocations: 1.082 MB / 346.6 MB, free: 1.219 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.655e-06/0.1073, allocations: 0 / 346.6 MB, free: 1.219 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002114/0.1075, allocations: 43.91 kB / 346.7 MB, free: 1.176 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006282/0.1082, allocations: 240.8 kB / 346.9 MB, free: 0.9375 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.496e-05/0.1082, allocations: 15.98 kB / 346.9 MB, free: 0.9219 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003502/0.1117, allocations: 2.839 MB / 349.8 MB, free: 13.94 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.1118, allocations: 0 / 349.8 MB, free: 13.94 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001382/0.1131, allocations: 0.8159 MB / 350.6 MB, free: 13.11 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001495/0.1133, allocations: 136.8 kB / 350.7 MB, free: 12.95 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.402e-05/0.1134, allocations: 19.88 kB / 350.7 MB, free: 12.93 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002435/0.1136, allocations: 23.97 kB / 350.8 MB, free: 12.91 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001439/0.1138, allocations: 63.97 kB / 350.8 MB, free: 12.85 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.951e-05/0.1138, allocations: 12 kB / 350.8 MB, free: 12.84 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001828/0.114, allocations: 184.2 kB / 351 MB, free: 12.66 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.402e-06/0.114, allocations: 0 / 351 MB, free: 12.66 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000532/0.1145, allocations: 143.9 kB / 351.1 MB, free: 12.52 MB / 302.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.0002042/0.1147, allocations: 131.2 kB / 351.3 MB, free: 12.38 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.00115/0.1159, allocations: 0.6291 MB / 351.9 MB, free: 11.73 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.98e-06/0.1159, allocations: 0 / 351.9 MB, free: 11.73 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006817/0.1166, allocations: 441.4 kB / 352.3 MB, free: 11.29 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003745/0.117, allocations: 35.92 kB / 352.4 MB, free: 11.25 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001187/0.1182, allocations: 0.6905 MB / 353.1 MB, free: 10.54 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003328/0.1185, allocations: 0.78 MB / 353.8 MB, free: 9.73 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001616/0.1187, allocations: 62.94 kB / 353.9 MB, free: 9.664 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.725e-05/0.1188, allocations: 27.42 kB / 353.9 MB, free: 9.637 MB / 302.1 MB Notification: Performance of SimCode: time 2.6e-07/0.1188, allocations: 0 / 353.9 MB, free: 9.637 MB / 302.1 MB Notification: Performance of Templates: time 0.01114/0.13, allocations: 7.108 MB / 361 MB, free: 2.523 MB / 302.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 -s cvode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/LossyGearDemo3/LossyGearDemo3.csv","/var/lib/jenkins1/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