Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.conf.json 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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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) 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_4.0.0_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_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00147/0.00147, allocations: 180.9 kB / 16.38 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.348/1.348, allocations: 223.2 MB / 240.3 MB, free: 10.14 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008636/0.0008636, allocations: 93.56 kB / 291.5 MB, free: 10.7 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002228/0.0002228, allocations: 19.94 kB / 351.1 MB, free: 15.1 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.216/0.2162, allocations: 50.4 MB / 401.5 MB, free: 32.57 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.111/0.3273, allocations: 81.89 MB / 483.4 MB, free: 14.57 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002666/0.3276, allocations: 75.91 kB / 483.5 MB, free: 14.5 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04721/0.3748, allocations: 10.35 MB / 493.8 MB, free: 4.121 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.043e-06/0.3749, allocations: 0 / 493.8 MB, free: 4.121 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.555e-05/0.3749, allocations: 12 kB / 493.8 MB, free: 4.109 MB / 362.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.001559/0.3765, allocations: 0.608 MB / 494.4 MB, free: 3.453 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.682e-05/0.3765, allocations: 16.03 kB / 494.4 MB, free: 3.438 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004744/0.377, allocations: 51.52 kB / 494.5 MB, free: 3.387 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006461/0.3777, allocations: 290.6 kB / 494.8 MB, free: 3.062 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001877/0.3779, allocations: 88.05 kB / 494.9 MB, free: 2.961 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001013/0.378, allocations: 35.91 kB / 494.9 MB, free: 2.926 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001318/0.3793, allocations: 416.9 kB / 495.3 MB, free: 2.512 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.83e-05/0.3794, allocations: 4 kB / 495.3 MB, free: 2.508 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.087e-05/0.3795, allocations: 11.94 kB / 495.3 MB, free: 2.496 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.739e-05/0.3795, allocations: 8 kB / 495.3 MB, free: 2.488 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001766/0.3813, allocations: 478.2 kB / 495.8 MB, free: 2.016 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002252/0.3835, allocations: 0.9072 MB / 496.7 MB, free: 1.051 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001205/0.3848, allocations: 378.1 kB / 497.1 MB, free: 0.6719 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.219e-05/0.3848, allocations: 8.422 kB / 497.1 MB, free: 0.6641 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.059e-05/0.3849, allocations: 47.12 kB / 497.1 MB, free: 0.6094 MB / 362.7 MB Notification: Performance of pre-optimization done (n=49): time 3.506e-06/0.3849, allocations: 0 / 497.1 MB, free: 0.6094 MB / 362.7 MB Notification: Performance of matching and sorting (n=55): time 0.008639/0.3936, allocations: 2.145 MB / 499.3 MB, free: 14.36 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.42e-05/0.3937, allocations: 89.66 kB / 499.4 MB, free: 14.26 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004449/0.3941, allocations: 214.2 kB / 499.6 MB, free: 14.04 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.7e-05/0.3942, allocations: 37.7 kB / 499.6 MB, free: 14 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000126/0.3944, allocations: 137.1 kB / 499.7 MB, free: 13.86 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002249/0.3946, allocations: 177.4 kB / 499.9 MB, free: 13.68 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.906e-05/0.3947, allocations: 12 kB / 499.9 MB, free: 13.67 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001695/0.3948, allocations: 338.8 kB / 0.4885 GB, free: 13.33 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007686/0.3956, allocations: 197 kB / 0.4887 GB, free: 13.14 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008209/0.3965, allocations: 244.6 kB / 0.489 GB, free: 12.89 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007669/0.3973, allocations: 194.1 kB / 0.4891 GB, free: 12.7 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.615e-06/0.3973, allocations: 0 / 0.4891 GB, free: 12.7 MB / 378.7 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.002152/0.3994, allocations: 0.6057 MB / 0.4897 GB, free: 12.09 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.153e-05/0.3995, allocations: 4 kB / 0.4897 GB, free: 12.08 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.594e-06/0.3995, allocations: 0 / 0.4897 GB, free: 12.08 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001151/0.4007, allocations: 250.8 kB / 0.49 GB, free: 11.84 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004793/0.4011, allocations: 75.88 kB / 0.49 GB, free: 11.76 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006256/0.4074, allocations: 2.743 MB / 0.4927 GB, free: 8.887 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005267/0.408, allocations: 40.06 kB / 0.4928 GB, free: 8.848 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.126e-05/0.4081, allocations: 31.92 kB / 0.4928 GB, free: 8.816 MB / 378.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.0003148/0.4084, allocations: 153.8 kB / 0.4929 GB, free: 8.656 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001152/0.4085, allocations: 35.58 kB / 0.493 GB, free: 8.621 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001367/0.4087, allocations: 51.3 kB / 0.493 GB, free: 8.57 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.723e-06/0.4087, allocations: 4 kB / 0.493 GB, free: 8.566 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.068e-06/0.4087, allocations: 0 / 0.493 GB, free: 8.566 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.848e-06/0.4087, allocations: 7.984 kB / 0.493 GB, free: 8.559 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003667/0.4124, allocations: 1.26 MB / 0.4943 GB, free: 7.238 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.138e-06/0.4124, allocations: 0 / 0.4943 GB, free: 7.238 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005742/0.413, allocations: 71.89 kB / 0.4943 GB, free: 7.168 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001106/0.4141, allocations: 224.7 kB / 0.4945 GB, free: 6.945 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.126e-05/0.4142, allocations: 15.98 kB / 0.4946 GB, free: 6.93 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00567/0.4199, allocations: 2.657 MB / 0.4972 GB, free: 4.141 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.405e-06/0.4199, allocations: 0 / 0.4972 GB, free: 4.141 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003045/0.423, allocations: 0.9588 MB / 0.4981 GB, free: 3.148 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003251/0.4233, allocations: 152.7 kB / 0.4982 GB, free: 2.98 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.596e-05/0.4234, allocations: 15.98 kB / 0.4983 GB, free: 2.965 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005251/0.424, allocations: 31.97 kB / 0.4983 GB, free: 2.934 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002503/0.4243, allocations: 76.3 kB / 0.4984 GB, free: 2.859 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.937e-05/0.4243, allocations: 19.98 kB / 0.4984 GB, free: 2.84 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003059/0.4247, allocations: 180.7 kB / 0.4985 GB, free: 2.664 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.5e-07/0.4247, allocations: 4 kB / 0.4986 GB, free: 2.66 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.00103/0.4257, allocations: 152 kB / 0.4987 GB, free: 2.512 MB / 378.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.0003326/0.4261, allocations: 152 kB / 0.4988 GB, free: 2.352 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00218/0.4283, allocations: 0.6877 MB / 0.4995 GB, free: 1.648 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.386e-06/0.4283, allocations: 0 / 0.4995 GB, free: 1.648 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001322/0.4296, allocations: 483.7 kB / 0.5 GB, free: 1.164 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000473/0.4301, allocations: 34.88 kB / 0.5 GB, free: 1.133 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002293/0.4324, allocations: 0.9377 MB / 0.5009 GB, free: 168 kB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1561/0.5885, allocations: 0.7979 MB / 0.5017 GB, free: 100.5 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0003605/0.5889, allocations: 62.67 kB / 0.5018 GB, free: 100.5 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001391/0.5891, allocations: 35.86 kB / 0.5018 GB, free: 100.5 MB / 378.7 MB Notification: Performance of SimCode: time 7.82e-07/0.5891, allocations: 5.891 kB / 0.5018 GB, free: 100.5 MB / 378.7 MB Notification: Performance of Templates: time 0.01163/0.6007, allocations: 6.809 MB / 0.5085 GB, free: 100.2 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.sim & ./Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo1/LossyGearDemo1.csv","../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches