Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.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.LossyGearDemo2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|Inertia2.phi|Inertia2.w|bearingFriction.mode|bearingFriction.startBackward|bearingFriction.startForward|gear.mode",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2") translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|Inertia2.phi|Inertia2.w|bearingFriction.mode|bearingFriction.startBackward|bearingFriction.startForward|gear.mode",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001015/0.001015, allocations: 187 kB / 17.92 MB, free: 3.855 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.145/1.145, allocations: 205.1 MB / 223.7 MB, free: 8.48 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.000865/0.000865, allocations: 101.1 kB / 271.2 MB, free: 8.438 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007609/0.0007609, allocations: 43.94 kB / 327.2 MB, free: 324 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.18/0.1808, allocations: 46.61 MB / 373.8 MB, free: 45.62 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2): time 0.003039/0.1839, allocations: 2.766 MB / 376.6 MB, free: 43.62 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001345/0.1852, allocations: 1.142 MB / 377.7 MB, free: 42.71 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001173/0.1854, allocations: 8.188 kB / 377.7 MB, free: 42.71 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002065/0.1856, allocations: 50.88 kB / 377.8 MB, free: 42.67 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003633/0.186, allocations: 162.7 kB / 377.9 MB, free: 42.55 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002912/0.1863, allocations: 214.4 kB / 378.1 MB, free: 42.39 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004188/0.1867, allocations: 0.6154 MB / 378.8 MB, free: 42.04 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001733/0.1869, allocations: 114.1 kB / 378.9 MB, free: 41.97 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000257/0.1871, allocations: 265.9 kB / 379.1 MB, free: 41.83 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002801/0.1874, allocations: 329 kB / 379.5 MB, free: 41.63 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 7.078e-05/0.1875, allocations: 31.41 kB / 379.5 MB, free: 41.63 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001893/0.1877, allocations: 112.3 kB / 379.6 MB, free: 41.59 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001187/0.1878, allocations: 120.2 kB / 379.7 MB, free: 41.5 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001684/0.188, allocations: 236.3 kB / 379.9 MB, free: 41.33 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004258/0.1884, allocations: 0.6125 MB / 380.6 MB, free: 40.88 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.326e-06/0.1884, allocations: 0 / 380.6 MB, free: 40.88 MB / 298.7 MB Notification: Performance of FrontEnd: time 9.51e-07/0.1884, allocations: 1.5 kB / 380.6 MB, free: 40.88 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.501e-06/0.1884, allocations: 0 / 380.6 MB, free: 40.88 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: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.001266/0.1897, allocations: 0.7915 MB / 381.4 MB, free: 40.23 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.087e-05/0.1898, allocations: 13.06 kB / 381.4 MB, free: 40.22 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002827/0.19, allocations: 67.09 kB / 381.4 MB, free: 40.19 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003851/0.1904, allocations: 360.9 kB / 381.8 MB, free: 39.86 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.571e-05/0.1905, allocations: 97.67 kB / 381.9 MB, free: 39.78 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.743e-05/0.1906, allocations: 42.56 kB / 381.9 MB, free: 39.77 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008304/0.1915, allocations: 0.5627 MB / 382.5 MB, free: 39.43 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.689e-05/0.1915, allocations: 0 / 382.5 MB, free: 39.43 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.207e-05/0.1915, allocations: 23.8 kB / 382.5 MB, free: 39.41 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.033e-05/0.1915, allocations: 10.06 kB / 382.5 MB, free: 39.41 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001112/0.1927, allocations: 0.6416 MB / 383.2 MB, free: 39.12 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001944/0.1946, allocations: 1.286 MB / 384.4 MB, free: 38.18 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009687/0.1956, allocations: 0.5456 MB / 385 MB, free: 37.92 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005264/0.1961, allocations: 324.7 kB / 385.3 MB, free: 37.77 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.118e-05/0.1962, allocations: 14.33 kB / 385.3 MB, free: 37.75 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.945e-05/0.1962, allocations: 37.78 kB / 385.4 MB, free: 37.71 MB / 298.7 MB Notification: Performance of pre-optimization done (n=61): time 1.703e-06/0.1962, allocations: 0 / 385.4 MB, free: 37.71 MB / 298.7 MB Notification: Performance of matching and sorting (n=69): time 0.005309/0.2015, allocations: 2.868 MB / 388.2 MB, free: 34.77 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.999e-05/0.2016, allocations: 85.61 kB / 388.3 MB, free: 34.67 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002704/0.2019, allocations: 334.9 kB / 388.6 MB, free: 34.34 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.001e-05/0.2019, allocations: 41.7 kB / 388.7 MB, free: 34.29 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.465e-05/0.202, allocations: 165.5 kB / 388.8 MB, free: 34.12 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001094/0.2021, allocations: 232.8 kB / 389.1 MB, free: 33.89 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001632/0.2023, allocations: 114.3 kB / 389.2 MB, free: 33.78 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.455e-05/0.2023, allocations: 354.8 kB / 389.5 MB, free: 33.42 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004683/0.2028, allocations: 285.2 kB / 389.8 MB, free: 33.14 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000492/0.2033, allocations: 350.5 kB / 390.1 MB, free: 32.79 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007936/0.2041, allocations: 0.5265 MB / 390.7 MB, free: 32.26 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.493e-06/0.2041, allocations: 0 / 390.7 MB, free: 32.26 MB / 298.7 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001296/0.2054, allocations: 0.8812 MB / 391.5 MB, free: 31.37 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.708e-05/0.2055, allocations: 11.92 kB / 391.6 MB, free: 31.36 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.039e-06/0.2055, allocations: 4 kB / 391.6 MB, free: 31.35 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008215/0.2063, allocations: 469.6 kB / 392 MB, free: 30.89 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003063/0.2066, allocations: 83.81 kB / 392.1 MB, free: 30.81 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008959/0.2075, allocations: 1.083 MB / 393.2 MB, free: 29.7 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000388/0.2079, allocations: 59.92 kB / 393.2 MB, free: 29.64 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.718e-05/0.208, allocations: 20 kB / 393.3 MB, free: 29.62 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 15 (bearingFriction.free,gear.ideal,bearingFriction.mode,$PRE.bearingFriction.mode,bearingFriction.locked,bearingFriction.startBackward,$PRE.bearingFriction.startBackward,bearingFriction.startForward,$PRE.bearingFriction.startForward,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 (46): * Single equations (assignments): 45 * 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,32)} Notification: Performance of prepare postOptimizeDAE: time 0.0001583/0.2081, allocations: 182.6 kB / 393.4 MB, free: 29.43 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.604e-05/0.2082, allocations: 47.47 kB / 393.5 MB, free: 29.39 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001346/0.2084, allocations: 67.77 kB / 393.6 MB, free: 29.32 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.709e-06/0.2084, allocations: 8 kB / 393.6 MB, free: 29.31 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.418e-06/0.2084, allocations: 4.062 kB / 393.6 MB, free: 29.3 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.56e-06/0.2084, allocations: 3.984 kB / 393.6 MB, free: 29.3 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002428/0.2108, allocations: 1.766 MB / 395.3 MB, free: 27.46 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.665e-06/0.2108, allocations: 3.938 kB / 395.3 MB, free: 27.46 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002985/0.2112, allocations: 71.94 kB / 395.4 MB, free: 27.39 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007336/0.2119, allocations: 456.4 kB / 395.9 MB, free: 26.94 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.087e-05/0.2119, allocations: 19.98 kB / 395.9 MB, free: 26.92 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008232/0.2128, allocations: 1.044 MB / 396.9 MB, free: 25.85 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.253e-06/0.2128, allocations: 0 / 396.9 MB, free: 25.85 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01313/0.2259, allocations: 9.406 MB / 406.3 MB, free: 16.11 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001748/0.2261, allocations: 180.5 kB / 406.5 MB, free: 15.91 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.813e-05/0.2262, allocations: 20 kB / 406.5 MB, free: 15.89 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003751/0.2266, allocations: 52.06 kB / 406.6 MB, free: 15.84 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001546/0.2267, allocations: 88.42 kB / 406.7 MB, free: 15.75 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.124e-05/0.2268, allocations: 27.91 kB / 406.7 MB, free: 15.73 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001957/0.227, allocations: 241.9 kB / 406.9 MB, free: 15.49 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.227, allocations: 4 kB / 406.9 MB, free: 15.49 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0006237/0.2276, allocations: 228.1 kB / 407.2 MB, free: 15.27 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: 9 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,gear.mode,bearingFriction.startForward,bearingFriction.startBackward,bearingFriction.locked,bearingFriction.mode) * Number of discrete states: 4 (bearingFriction.mode,bearingFriction.startBackward,bearingFriction.startForward,gear.mode) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 38 * 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,29)} Notification: Performance of Backend phase and start with SimCode phase: time 0.000231/0.2279, allocations: 179.1 kB / 407.3 MB, free: 15.08 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001206/0.2291, allocations: 0.7041 MB / 408 MB, free: 14.38 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.2291, allocations: 0 / 408 MB, free: 14.38 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006659/0.2298, allocations: 396.2 kB / 408.4 MB, free: 14 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004186/0.2302, allocations: 56.47 kB / 408.5 MB, free: 13.94 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002437/0.2326, allocations: 1.842 MB / 410.3 MB, free: 12.05 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002041/0.2329, allocations: 0.8368 MB / 411.2 MB, free: 11.19 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0002398/0.2331, allocations: 79.28 kB / 411.2 MB, free: 11.11 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001604/0.2333, allocations: 55.39 kB / 411.3 MB, free: 11.05 MB / 298.7 MB Notification: Performance of SimCode: time 2.31e-07/0.2333, allocations: 0 / 411.3 MB, free: 11.05 MB / 298.7 MB Notification: Performance of Templates: time 0.01521/0.2485, allocations: 13 MB / 424.3 MB, free: 14.07 MB / 314.7 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.sim & ./Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/LossyGearDemo2/LossyGearDemo2.csv","../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,Inertia2.phi,Inertia2.w,bearingFriction.mode,bearingFriction.startBackward,bearingFriction.startForward,gear.mode Variables in the result:DriveSine.amplitude,DriveSine.freqHz,DriveSine.offset,DriveSine.phase,DriveSine.startTime,Inertia1.J,Inertia2.J,Inertia2.phi,Inertia2.w,bearingFriction.mode,bearingFriction.peak,bearingFriction.phi_support,bearingFriction.startBackward,bearingFriction.startForward,bearingFriction.support.phi,bearingFriction.tau_pos[1,1],bearingFriction.tau_pos[1,2],bearingFriction.tau_pos[2,1],bearingFriction.tau_pos[2,2],bearingFriction.w_small,fixed.flange.phi,fixed.phi0,gear.eta_mf1_0,gear.eta_mf2_0,gear.lossTable[1,1],gear.lossTable[1,2],gear.lossTable[1,3],gear.lossTable[1,4],gear.lossTable[1,5],gear.mode,gear.phi_support,gear.ratio,gear.support.phi,gear.tau_bf1_0,gear.tau_bf2_0,gear.tau_bf_a_0,load.duration,load.height,load.offset,load.startTime,time,torque1.phi_support,torque1.support.phi,torque2.phi_support,torque2.support.phi