Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001246/0.001246, allocations: 207.3 kB / 17.99 MB, free: 3.777 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.298/1.298, allocations: 226.7 MB / 245.5 MB, free: 7.004 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001007/0.001007, allocations: 114.8 kB / 296.7 MB, free: 6.488 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009498/0.0009501, allocations: 51.92 kB / 356.6 MB, free: 10.61 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1827/0.1836, allocations: 50.44 MB / 407 MB, free: 27.83 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.003075/0.1868, allocations: 2.505 MB / 409.5 MB, free: 25.33 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00131/0.1881, allocations: 1.039 MB / 410.6 MB, free: 24.29 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001142/0.1882, allocations: 7.938 kB / 410.6 MB, free: 24.28 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002658/0.1885, allocations: 55.67 kB / 410.6 MB, free: 24.23 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002945/0.1888, allocations: 134.6 kB / 410.8 MB, free: 24.09 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002528/0.1891, allocations: 131.9 kB / 410.9 MB, free: 23.96 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003082/0.1894, allocations: 454.7 kB / 411.4 MB, free: 23.52 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001638/0.1896, allocations: 60.7 kB / 411.4 MB, free: 23.46 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001393/0.1897, allocations: 187.4 kB / 411.6 MB, free: 23.27 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002079/0.1899, allocations: 231.2 kB / 411.8 MB, free: 23.05 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.083e-05/0.19, allocations: 20 kB / 411.8 MB, free: 23.03 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001706/0.1902, allocations: 103.9 kB / 411.9 MB, free: 22.93 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 9.613e-05/0.1903, allocations: 99.69 kB / 412 MB, free: 22.83 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001189/0.1904, allocations: 159.2 kB / 412.2 MB, free: 22.67 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003557/0.1908, allocations: 476.1 kB / 412.7 MB, free: 22.21 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.859e-06/0.1908, allocations: 4 kB / 412.7 MB, free: 22.2 MB / 298.7 MB Notification: Performance of FrontEnd: time 7.91e-07/0.1908, allocations: 0 / 412.7 MB, free: 22.2 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.352e-06/0.1908, allocations: 0 / 412.7 MB, free: 22.2 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.0009898/0.1918, allocations: 0.6667 MB / 413.3 MB, free: 21.49 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.481e-05/0.1918, allocations: 8.594 kB / 413.3 MB, free: 21.48 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002867/0.1921, allocations: 52.53 kB / 413.4 MB, free: 21.43 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003584/0.1925, allocations: 300.5 kB / 413.7 MB, free: 21.09 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001019/0.1926, allocations: 92.45 kB / 413.8 MB, free: 20.99 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.698e-05/0.1927, allocations: 28.31 kB / 413.8 MB, free: 20.96 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005725/0.1932, allocations: 389.4 kB / 414.2 MB, free: 20.56 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.613e-05/0.1933, allocations: 3.906 kB / 414.2 MB, free: 20.56 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.273e-05/0.1933, allocations: 12 kB / 414.2 MB, free: 20.55 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.344e-06/0.1933, allocations: 4 kB / 414.2 MB, free: 20.54 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007097/0.194, allocations: 421.9 kB / 414.6 MB, free: 20.13 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001627/0.1957, allocations: 1.265 MB / 415.9 MB, free: 18.79 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005777/0.1963, allocations: 339.1 kB / 416.2 MB, free: 18.45 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003234/0.1966, allocations: 184.8 kB / 416.4 MB, free: 18.27 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.434e-05/0.1966, allocations: 8 kB / 416.4 MB, free: 18.26 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.576e-05/0.1967, allocations: 42.5 kB / 416.4 MB, free: 18.21 MB / 298.7 MB Notification: Performance of pre-optimization done (n=43): time 1.733e-06/0.1967, allocations: 0 / 416.4 MB, free: 18.21 MB / 298.7 MB Notification: Performance of matching and sorting (n=45): time 0.004152/0.2008, allocations: 1.914 MB / 418.4 MB, free: 16.18 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.194e-05/0.2009, allocations: 88.8 kB / 418.4 MB, free: 16.08 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002464/0.2011, allocations: 250.6 kB / 418.7 MB, free: 15.82 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.945e-05/0.2012, allocations: 37.7 kB / 418.7 MB, free: 15.78 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.493e-05/0.2012, allocations: 132.7 kB / 418.8 MB, free: 15.64 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.682e-05/0.2013, allocations: 153.8 kB / 419 MB, free: 15.49 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001397/0.2015, allocations: 86.11 kB / 419.1 MB, free: 15.4 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.56e-05/0.2015, allocations: 338.8 kB / 419.4 MB, free: 15.06 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003198/0.2018, allocations: 160.8 kB / 419.6 MB, free: 14.91 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003406/0.2022, allocations: 225.9 kB / 419.8 MB, free: 14.67 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005726/0.2028, allocations: 339.2 kB / 420.1 MB, free: 14.32 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.873e-06/0.2028, allocations: 0 / 420.1 MB, free: 14.32 MB / 298.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0009528/0.2037, allocations: 0.5551 MB / 420.7 MB, free: 13.76 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.488e-05/0.2038, allocations: 8 kB / 420.7 MB, free: 13.75 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.821e-06/0.2038, allocations: 0 / 420.7 MB, free: 13.75 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007/0.2045, allocations: 290.2 kB / 421 MB, free: 13.46 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002237/0.2047, allocations: 59.89 kB / 421 MB, free: 13.41 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002881/0.2076, allocations: 2.651 MB / 423.7 MB, free: 10.62 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002718/0.2079, allocations: 28.05 kB / 423.7 MB, free: 10.59 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.503e-05/0.208, allocations: 23.97 kB / 423.7 MB, free: 10.57 MB / 298.7 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.0001522/0.2081, allocations: 152.7 kB / 423.9 MB, free: 10.41 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.442e-05/0.2082, allocations: 35.56 kB / 423.9 MB, free: 10.38 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.852e-05/0.2083, allocations: 46.98 kB / 424 MB, free: 10.33 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.667e-06/0.2083, allocations: 4 kB / 424 MB, free: 10.33 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.956e-06/0.2083, allocations: 0 / 424 MB, free: 10.33 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.468e-06/0.2083, allocations: 3.984 kB / 424 MB, free: 10.32 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001605/0.2099, allocations: 1.108 MB / 425.1 MB, free: 9.156 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.677e-06/0.21, allocations: 0 / 425.1 MB, free: 9.156 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002166/0.2102, allocations: 51.95 kB / 425.1 MB, free: 9.105 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006321/0.2108, allocations: 277.3 kB / 425.4 MB, free: 8.832 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.111e-05/0.2109, allocations: 15.92 kB / 425.4 MB, free: 8.816 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002625/0.2135, allocations: 2.609 MB / 428 MB, free: 6.066 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.2135, allocations: 0 / 428 MB, free: 6.066 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009808/0.2233, allocations: 6.548 MB / 434.6 MB, free: 15.22 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001787/0.2235, allocations: 148.7 kB / 434.7 MB, free: 15.06 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.029e-05/0.2236, allocations: 16 kB / 434.7 MB, free: 15.04 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002709/0.2239, allocations: 32.09 kB / 434.8 MB, free: 15.01 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001854/0.2241, allocations: 59.84 kB / 434.8 MB, free: 14.95 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.64e-05/0.2241, allocations: 15.98 kB / 434.8 MB, free: 14.94 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002151/0.2244, allocations: 188.4 kB / 435 MB, free: 14.75 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.2244, allocations: 0 / 435 MB, free: 14.75 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0007938/0.2252, allocations: 192 kB / 435.2 MB, free: 14.57 MB / 314.7 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.001014/0.2262, allocations: 481.9 kB / 435.7 MB, free: 14.25 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001275/0.2275, allocations: 0.6214 MB / 436.3 MB, free: 13.62 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.2275, allocations: 4 kB / 436.3 MB, free: 13.61 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007279/0.2282, allocations: 425 kB / 436.7 MB, free: 13.18 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004597/0.2287, allocations: 44.05 kB / 436.8 MB, free: 13.14 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001864/0.2306, allocations: 1.28 MB / 438 MB, free: 11.82 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003337/0.2309, allocations: 0.7963 MB / 438.8 MB, free: 11 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0003021/0.2312, allocations: 94.83 kB / 438.9 MB, free: 10.91 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001592/0.2314, allocations: 47.39 kB / 439 MB, free: 10.86 MB / 314.7 MB Notification: Performance of SimCode: time 4.21e-07/0.2314, allocations: 0 / 439 MB, free: 10.86 MB / 314.7 MB Notification: Performance of Templates: time 0.01603/0.2475, allocations: 10.12 MB / 449.1 MB, free: 0.7656 MB / 314.7 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.makefile (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.sim & ./Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo3/LossyGearDemo3.csv","../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches