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.001587/0.001587, allocations: 185.9 kB / 17.42 MB, free: 4.375 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.453/1.453, allocations: 205.4 MB / 223.6 MB, free: 8.941 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.0007247/0.0007249, allocations: 86.42 kB / 271.9 MB, free: 8.246 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003275/0.0003278, allocations: 8 kB / 328.1 MB, free: 15.93 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2487/0.2491, allocations: 47.57 MB / 375.7 MB, free: 45.39 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09557/0.3447, allocations: 80.96 MB / 456.7 MB, free: 15.66 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002342/0.345, allocations: 71.97 kB / 456.7 MB, free: 15.59 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02829/0.3733, allocations: 10.12 MB / 466.9 MB, free: 5.445 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.733e-06/0.3733, allocations: 0 / 466.9 MB, free: 5.445 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.69e-05/0.3734, allocations: 8 kB / 466.9 MB, free: 5.438 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.001162/0.3745, allocations: 0.6082 MB / 467.5 MB, free: 4.777 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.038e-05/0.3746, allocations: 12.03 kB / 467.5 MB, free: 4.766 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000298/0.3749, allocations: 56.44 kB / 467.5 MB, free: 4.711 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004339/0.3753, allocations: 298 kB / 467.8 MB, free: 4.383 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001256/0.3755, allocations: 96.61 kB / 467.9 MB, free: 4.277 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.695e-05/0.3755, allocations: 40.3 kB / 468 MB, free: 4.238 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007692/0.3763, allocations: 405.4 kB / 468.4 MB, free: 3.832 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.998e-05/0.3764, allocations: 11.94 kB / 468.4 MB, free: 3.82 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.079e-05/0.3764, allocations: 8 kB / 468.4 MB, free: 3.812 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.144e-05/0.3764, allocations: 12 kB / 468.4 MB, free: 3.801 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009794/0.3774, allocations: 474.2 kB / 468.9 MB, free: 3.336 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001468/0.3789, allocations: 0.9032 MB / 469.8 MB, free: 2.371 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008091/0.3797, allocations: 387.1 kB / 470.1 MB, free: 1.988 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004458/0.3802, allocations: 226.1 kB / 470.4 MB, free: 1.766 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.875e-05/0.3802, allocations: 8.438 kB / 470.4 MB, free: 1.758 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.888e-05/0.3803, allocations: 42.98 kB / 470.4 MB, free: 1.707 MB / 346.7 MB Notification: Performance of pre-optimization done (n=49): time 1.894e-06/0.3803, allocations: 0 / 470.4 MB, free: 1.707 MB / 346.7 MB Notification: Performance of matching and sorting (n=55): time 0.005094/0.3854, allocations: 2.167 MB / 472.6 MB, free: 15.43 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.789e-05/0.3855, allocations: 85.67 kB / 472.7 MB, free: 15.33 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002928/0.3858, allocations: 239 kB / 472.9 MB, free: 15.08 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.451e-05/0.3858, allocations: 41.69 kB / 472.9 MB, free: 15.04 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.762e-05/0.3859, allocations: 129.2 kB / 473.1 MB, free: 14.91 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001386/0.3861, allocations: 185.3 kB / 473.2 MB, free: 14.72 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.987e-05/0.3861, allocations: 8 kB / 473.3 MB, free: 14.71 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000133/0.3862, allocations: 338.8 kB / 473.6 MB, free: 14.38 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004315/0.3867, allocations: 201 kB / 473.8 MB, free: 14.18 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004515/0.3871, allocations: 244.6 kB / 474 MB, free: 13.93 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008005/0.3879, allocations: 388.4 kB / 474.4 MB, free: 13.55 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.773e-06/0.388, allocations: 0 / 474.4 MB, free: 13.55 MB / 362.7 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001221/0.3892, allocations: 0.6173 MB / 475 MB, free: 12.92 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.818e-05/0.3892, allocations: 4 kB / 475 MB, free: 12.91 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.273e-06/0.3892, allocations: 0 / 475 MB, free: 12.91 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007437/0.39, allocations: 254.8 kB / 475.3 MB, free: 12.66 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003048/0.3903, allocations: 67.89 kB / 475.3 MB, free: 12.6 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003693/0.394, allocations: 2.7 MB / 478 MB, free: 9.762 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000304/0.3943, allocations: 39.94 kB / 478.1 MB, free: 9.723 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.499e-05/0.3944, allocations: 20 kB / 478.1 MB, free: 9.703 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.0002148/0.3946, allocations: 157.9 kB / 478.2 MB, free: 9.539 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.162e-05/0.3947, allocations: 31.62 kB / 478.3 MB, free: 9.508 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001027/0.3948, allocations: 47.31 kB / 478.3 MB, free: 9.461 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.418e-06/0.3948, allocations: 4 kB / 478.3 MB, free: 9.457 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.225e-06/0.3948, allocations: 7.922 kB / 478.3 MB, free: 9.449 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.629e-06/0.3948, allocations: 3.938 kB / 478.3 MB, free: 9.445 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002178/0.397, allocations: 1.252 MB / 479.6 MB, free: 8.129 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.276e-06/0.397, allocations: 0 / 479.6 MB, free: 8.129 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003298/0.3974, allocations: 75.88 kB / 479.7 MB, free: 8.055 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006487/0.398, allocations: 230.2 kB / 479.9 MB, free: 7.828 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.101e-05/0.3981, allocations: 11.98 kB / 479.9 MB, free: 7.816 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003466/0.4016, allocations: 2.612 MB / 482.5 MB, free: 5.078 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/0.4016, allocations: 4.062 kB / 482.5 MB, free: 5.074 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001765/0.4033, allocations: 0.934 MB / 483.5 MB, free: 4.121 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001916/0.4036, allocations: 156.6 kB / 483.6 MB, free: 3.949 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.089e-05/0.4036, allocations: 15.98 kB / 483.6 MB, free: 3.934 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002942/0.4039, allocations: 43.97 kB / 483.7 MB, free: 3.891 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001718/0.4041, allocations: 80.23 kB / 483.7 MB, free: 3.809 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.02e-05/0.4042, allocations: 19.98 kB / 483.8 MB, free: 3.789 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002111/0.4044, allocations: 168.6 kB / 483.9 MB, free: 3.625 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.21e-07/0.4044, allocations: 0 / 483.9 MB, free: 3.625 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0006596/0.4051, allocations: 160 kB / 484.1 MB, free: 3.469 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.0002575/0.4053, allocations: 147.1 kB / 484.2 MB, free: 3.312 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001411/0.4067, allocations: 0.6917 MB / 484.9 MB, free: 2.609 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 5.531e-06/0.4068, allocations: 8 kB / 484.9 MB, free: 2.602 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007807/0.4075, allocations: 467.7 kB / 485.4 MB, free: 2.133 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004473/0.408, allocations: 44.36 kB / 485.4 MB, free: 2.09 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001575/0.4096, allocations: 0.9583 MB / 486.4 MB, free: 1.094 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000377/0.41, allocations: 0.797 MB / 487.2 MB, free: 276 kB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001577/0.4102, allocations: 47.41 kB / 487.2 MB, free: 228 kB / 362.7 MB Notification: Performance of SimCode: time 4.2e-07/0.4102, allocations: 0 / 487.2 MB, free: 228 kB / 362.7 MB Notification: Performance of Templates: time 0.008598/0.4188, allocations: 5.92 MB / 493.1 MB, free: 10.31 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