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.001615/0.001615, allocations: 186 kB / 16.4 MB, free: 5.746 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.926/1.926, allocations: 205.4 MB / 222.5 MB, free: 9.129 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.00117/0.00117, allocations: 101.2 kB / 270.9 MB, free: 8.375 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003939/0.0003939, allocations: 8 kB / 327 MB, free: 212 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.334/0.3344, allocations: 47.56 MB / 374.5 MB, free: 45.42 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1347/0.4691, allocations: 80.9 MB / 455.4 MB, free: 15.88 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002799/0.4695, allocations: 71.95 kB / 455.5 MB, free: 15.8 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05066/0.5202, allocations: 10.19 MB / 465.7 MB, free: 5.582 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.605e-06/0.5202, allocations: 4 kB / 465.7 MB, free: 5.578 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.411e-05/0.5203, allocations: 4 kB / 465.7 MB, free: 5.574 MB / 346.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.001807/0.5221, allocations: 0.6237 MB / 466.3 MB, free: 4.902 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.323e-05/0.5221, allocations: 12.03 kB / 466.3 MB, free: 4.891 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005368/0.5227, allocations: 55.52 kB / 466.4 MB, free: 4.836 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006833/0.5234, allocations: 296.7 kB / 466.7 MB, free: 4.508 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001774/0.5236, allocations: 88.05 kB / 466.8 MB, free: 4.41 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001095/0.5237, allocations: 31.91 kB / 466.8 MB, free: 4.379 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001407/0.5251, allocations: 408.9 kB / 467.2 MB, free: 3.969 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.002e-05/0.5252, allocations: 3.984 kB / 467.2 MB, free: 3.965 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.8e-05/0.5253, allocations: 20 kB / 467.2 MB, free: 3.945 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.236e-05/0.5253, allocations: 4 kB / 467.2 MB, free: 3.941 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001777/0.5271, allocations: 470.3 kB / 467.7 MB, free: 3.48 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00234/0.5295, allocations: 0.8993 MB / 468.6 MB, free: 2.523 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001421/0.5309, allocations: 394.8 kB / 469 MB, free: 2.129 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.495e-05/0.5311, allocations: 12.42 kB / 469 MB, free: 2.117 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.296e-05/0.5311, allocations: 35 kB / 469 MB, free: 2.074 MB / 346.7 MB Notification: Performance of pre-optimization done (n=49): time 3.827e-06/0.5311, allocations: 0 / 469 MB, free: 2.074 MB / 346.7 MB Notification: Performance of matching and sorting (n=55): time 0.009745/0.5409, allocations: 2.156 MB / 471.2 MB, free: 15.81 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.634e-05/0.541, allocations: 89.61 kB / 471.3 MB, free: 15.71 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004876/0.5415, allocations: 218.2 kB / 471.5 MB, free: 15.48 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001069/0.5416, allocations: 33.7 kB / 471.5 MB, free: 15.45 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000128/0.5418, allocations: 195.5 kB / 471.7 MB, free: 15.25 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002343/0.542, allocations: 177.5 kB / 471.9 MB, free: 15.07 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.762e-05/0.5421, allocations: 12 kB / 471.9 MB, free: 15.06 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001423/0.5422, allocations: 326.8 kB / 472.2 MB, free: 14.73 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008316/0.5431, allocations: 197 kB / 472.4 MB, free: 14.54 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008706/0.544, allocations: 236.6 kB / 472.6 MB, free: 14.3 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008403/0.5448, allocations: 194.2 kB / 472.8 MB, free: 14.11 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.799e-06/0.5449, allocations: 0 / 472.8 MB, free: 14.11 MB / 362.7 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.002283/0.5472, allocations: 0.6018 MB / 473.4 MB, free: 13.5 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.388e-05/0.5472, allocations: 8 kB / 473.4 MB, free: 13.49 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.35e-05/0.5473, allocations: 3.953 kB / 473.4 MB, free: 13.49 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001277/0.5485, allocations: 250.8 kB / 473.7 MB, free: 13.24 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006654/0.5493, allocations: 75.88 kB / 473.7 MB, free: 13.17 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01043/0.5597, allocations: 2.747 MB / 476.5 MB, free: 10.29 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009915/0.5608, allocations: 39.91 kB / 476.5 MB, free: 10.25 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001693/0.561, allocations: 23.94 kB / 476.6 MB, free: 10.23 MB / 362.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.0005169/0.5615, allocations: 156.2 kB / 476.7 MB, free: 10.07 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002497/0.5618, allocations: 31.62 kB / 476.7 MB, free: 10.04 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002598/0.5621, allocations: 51.3 kB / 476.8 MB, free: 9.988 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.423e-05/0.5621, allocations: 8 kB / 476.8 MB, free: 9.98 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.502e-06/0.5621, allocations: 3.938 kB / 476.8 MB, free: 9.977 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.64e-05/0.5622, allocations: 3.984 kB / 476.8 MB, free: 9.973 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008366/0.5705, allocations: 1.245 MB / 478 MB, free: 8.664 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.278e-05/0.5706, allocations: 4 kB / 478.1 MB, free: 8.66 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001005/0.5716, allocations: 67.89 kB / 478.1 MB, free: 8.594 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003239/0.5749, allocations: 237.5 kB / 478.3 MB, free: 8.359 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001739/0.5752, allocations: 11.98 kB / 478.4 MB, free: 8.348 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01087/0.5861, allocations: 2.667 MB / 481 MB, free: 5.547 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.066e-06/0.5861, allocations: 0 / 481 MB, free: 5.547 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005728/0.5919, allocations: 0.9513 MB / 482 MB, free: 4.566 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006849/0.5926, allocations: 156.7 kB / 482.1 MB, free: 4.395 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000243/0.5929, allocations: 20.06 kB / 482.2 MB, free: 4.375 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001123/0.5941, allocations: 39.91 kB / 482.2 MB, free: 4.336 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005119/0.5946, allocations: 76.23 kB / 482.3 MB, free: 4.262 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007392/0.5954, allocations: 19.94 kB / 482.3 MB, free: 4.242 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0007677/0.5965, allocations: 180.6 kB / 482.5 MB, free: 4.066 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.363e-06/0.5965, allocations: 0 / 482.5 MB, free: 4.066 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002082/0.5986, allocations: 164 kB / 482.6 MB, free: 3.906 MB / 362.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.001009/0.5997, allocations: 143.1 kB / 482.8 MB, free: 3.758 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.005541/0.6053, allocations: 0.6878 MB / 483.4 MB, free: 3.055 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 9.879e-06/0.6054, allocations: 0 / 483.4 MB, free: 3.055 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00267/0.6081, allocations: 475.7 kB / 483.9 MB, free: 2.578 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009171/0.6091, allocations: 30.5 kB / 483.9 MB, free: 2.551 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005391/0.6145, allocations: 0.97 MB / 484.9 MB, free: 1.543 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007784/0.6154, allocations: 0.8009 MB / 485.7 MB, free: 0.7109 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003617/0.6158, allocations: 39.41 kB / 485.8 MB, free: 0.6758 MB / 362.7 MB Notification: Performance of SimCode: time 9.62e-07/0.6158, allocations: 4 kB / 485.8 MB, free: 0.6719 MB / 362.7 MB Notification: Performance of Templates: time 0.01428/0.6301, allocations: 5.747 MB / 491.5 MB, free: 10.93 MB / 378.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/jenkins1/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