Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.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.LossyGearDemo2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|Inertia2.phi|Inertia2.w|bearingFriction.mode|bearingFriction.startBackward|bearingFriction.startForward|gear.mode",fileNamePrefix="Modelica_trunk_cpp_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_trunk_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001623/0.001623, allocations: 196 kB / 17.38 MB, free: 4.312 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.282/1.282, allocations: 226.5 MB / 244.7 MB, free: 6.473 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007832/0.0007833, allocations: 102.4 kB / 296.8 MB, free: 6.664 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002141/0.0002142, allocations: 8 kB / 356.7 MB, free: 10.69 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1877/0.188, allocations: 51.3 MB / 408 MB, free: 27.66 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2): time 0.002297/0.1903, allocations: 2.423 MB / 410.5 MB, free: 25.23 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001359/0.1917, allocations: 1.171 MB / 411.6 MB, free: 24.06 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001246/0.1918, allocations: 4 kB / 411.6 MB, free: 24.06 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002346/0.1921, allocations: 68.83 kB / 411.7 MB, free: 23.99 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003436/0.1924, allocations: 180.8 kB / 411.9 MB, free: 23.82 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003247/0.1928, allocations: 194.4 kB / 412.1 MB, free: 23.63 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003886/0.1932, allocations: 0.6147 MB / 412.7 MB, free: 23.02 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001657/0.1933, allocations: 108 kB / 412.8 MB, free: 22.9 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002801/0.1936, allocations: 283.1 kB / 413.1 MB, free: 22.62 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002705/0.1939, allocations: 331 kB / 413.4 MB, free: 22.3 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 6.423e-05/0.194, allocations: 32 kB / 413.4 MB, free: 22.27 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001809/0.1942, allocations: 107.8 kB / 413.5 MB, free: 22.16 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001261/0.1943, allocations: 139.6 kB / 413.7 MB, free: 22.03 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001658/0.1945, allocations: 252.6 kB / 413.9 MB, free: 21.77 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003685/0.1948, allocations: 0.5153 MB / 414.4 MB, free: 21.26 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.42e-06/0.1949, allocations: 0 / 414.4 MB, free: 21.26 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.473e-06/0.1949, allocations: 4 kB / 414.4 MB, free: 21.25 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.044e-06/0.1949, allocations: 0 / 414.4 MB, free: 21.25 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: 100 * Number of variables: 100 Notification: Performance of Generate backend data structure: time 0.001211/0.1961, allocations: 0.7564 MB / 415.2 MB, free: 20.45 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.999e-05/0.1961, allocations: 12.03 kB / 415.2 MB, free: 20.43 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003558/0.1965, allocations: 80.34 kB / 415.3 MB, free: 20.36 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000391/0.1969, allocations: 358.4 kB / 415.6 MB, free: 19.96 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001025/0.197, allocations: 96.94 kB / 415.7 MB, free: 19.86 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.197e-05/0.1971, allocations: 44.38 kB / 415.8 MB, free: 19.82 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008829/0.198, allocations: 0.5644 MB / 416.3 MB, free: 19.24 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.873e-05/0.198, allocations: 4 kB / 416.3 MB, free: 19.24 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.014e-05/0.1981, allocations: 12 kB / 416.4 MB, free: 19.23 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.456e-06/0.1981, allocations: 12 kB / 416.4 MB, free: 19.21 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001106/0.1992, allocations: 0.6167 MB / 417 MB, free: 18.6 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002021/0.2012, allocations: 1.333 MB / 418.3 MB, free: 17.21 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009873/0.2022, allocations: 0.5248 MB / 418.8 MB, free: 16.67 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00052/0.2028, allocations: 312.4 kB / 419.1 MB, free: 16.37 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.802e-05/0.2028, allocations: 8.5 kB / 419.2 MB, free: 16.36 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.293e-05/0.2028, allocations: 47.23 kB / 419.2 MB, free: 16.3 MB / 298.7 MB Notification: Performance of pre-optimization done (n=62): time 1.914e-06/0.2029, allocations: 0 / 419.2 MB, free: 16.3 MB / 298.7 MB Notification: Performance of matching and sorting (n=70): time 0.00574/0.2086, allocations: 2.824 MB / 422 MB, free: 13.35 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.524e-05/0.2087, allocations: 89.61 kB / 422.1 MB, free: 13.25 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003281/0.209, allocations: 350.9 kB / 422.5 MB, free: 12.89 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.691e-05/0.209, allocations: 45.64 kB / 422.5 MB, free: 12.84 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.122e-05/0.2091, allocations: 165.6 kB / 422.7 MB, free: 12.68 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000114/0.2092, allocations: 232.7 kB / 422.9 MB, free: 12.45 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.112e-05/0.2093, allocations: 12 kB / 422.9 MB, free: 12.44 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.019e-05/0.2094, allocations: 350.8 kB / 423.2 MB, free: 12.09 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000527/0.2099, allocations: 269.2 kB / 423.5 MB, free: 11.82 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005214/0.2104, allocations: 330.5 kB / 423.8 MB, free: 11.49 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000864/0.2113, allocations: 499.2 kB / 424.3 MB, free: 11 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.2113, allocations: 0 / 424.3 MB, free: 11 MB / 298.7 MB Notification: Performance of matching and sorting (n=80) (initialization): time 0.001454/0.2128, allocations: 0.849 MB / 425.2 MB, free: 10.14 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.811e-05/0.2128, allocations: 4 kB / 425.2 MB, free: 10.13 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.612e-06/0.2128, allocations: 0 / 425.2 MB, free: 10.13 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009588/0.2138, allocations: 420.4 kB / 425.6 MB, free: 9.719 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000344/0.2141, allocations: 99.8 kB / 425.7 MB, free: 9.621 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009738/0.2151, allocations: 1.007 MB / 426.7 MB, free: 8.59 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004466/0.2156, allocations: 80 kB / 426.8 MB, free: 8.512 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.723e-05/0.2157, allocations: 23.98 kB / 426.8 MB, free: 8.488 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.tau_aPos,gear.startForward,gear.startBackward,gear.locked,$PRE.gear.mode,gear.mode,$PRE.bearingFriction.startForward,bearingFriction.startForward,$PRE.bearingFriction.startBackward,bearingFriction.startBackward,bearingFriction.locked,$PRE.bearingFriction.mode,bearingFriction.mode,gear.ideal) * 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 (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 33} Notification: Performance of prepare postOptimizeDAE: time 0.000196/0.2159, allocations: 181.7 kB / 427 MB, free: 8.301 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.057e-05/0.2159, allocations: 43.53 kB / 427 MB, free: 8.258 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001315/0.2161, allocations: 67.86 kB / 427.1 MB, free: 8.191 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.941e-06/0.2161, allocations: 7.938 kB / 427.1 MB, free: 8.184 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.013e-06/0.2161, allocations: 8 kB / 427.1 MB, free: 8.176 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.625e-06/0.2161, allocations: 3.984 kB / 427.1 MB, free: 8.172 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002563/0.2187, allocations: 1.707 MB / 428.8 MB, free: 6.402 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.166e-06/0.2187, allocations: 4 kB / 428.8 MB, free: 6.398 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003317/0.219, allocations: 83.88 kB / 428.9 MB, free: 6.316 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007794/0.2198, allocations: 396.6 kB / 429.3 MB, free: 5.926 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.799e-05/0.2199, allocations: 23.97 kB / 429.3 MB, free: 5.902 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008887/0.2208, allocations: 0.971 MB / 430.3 MB, free: 4.906 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.954e-06/0.2208, allocations: 0 / 430.3 MB, free: 4.906 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001986/0.2228, allocations: 1.208 MB / 431.5 MB, free: 3.672 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002146/0.223, allocations: 200.3 kB / 431.7 MB, free: 3.457 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.792e-05/0.2231, allocations: 20 kB / 431.7 MB, free: 3.438 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004201/0.2235, allocations: 68 kB / 431.8 MB, free: 3.371 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001721/0.2237, allocations: 104.3 kB / 431.9 MB, free: 3.27 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.681e-05/0.2238, allocations: 31.97 kB / 431.9 MB, free: 3.238 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002361/0.224, allocations: 249.9 kB / 432.1 MB, free: 2.996 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.224, allocations: 0 / 432.1 MB, free: 2.996 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004405/0.2245, allocations: 144 kB / 432.3 MB, free: 2.855 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 (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 30} Notification: Performance of Backend phase and start with SimCode phase: time 0.0007155/0.2252, allocations: 393.2 kB / 432.7 MB, free: 2.586 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001299/0.2265, allocations: 0.6729 MB / 433.3 MB, free: 1.91 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.2265, allocations: 0 / 433.3 MB, free: 1.91 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006906/0.2272, allocations: 384.2 kB / 433.7 MB, free: 1.531 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004627/0.2277, allocations: 68.5 kB / 433.8 MB, free: 1.465 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002141/0.2298, allocations: 1.42 MB / 435.2 MB, free: 16 kB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003387/0.2302, allocations: 0.8212 MB / 436 MB, free: 15.16 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001941/0.2304, allocations: 59.33 kB / 436.1 MB, free: 15.11 MB / 314.7 MB Notification: Performance of SimCode: time 5.01e-07/0.2304, allocations: 3.938 kB / 436.1 MB, free: 15.1 MB / 314.7 MB Notification: Performance of Templates: time 0.009512/0.2399, allocations: 7.926 MB / 444 MB, free: 7.184 MB / 314.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.makefile (rm -f Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe >> ../files/Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.sim & ./Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2 --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo2/LossyGearDemo2.csv","../files/Modelica_trunk_cpp_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:Inertia2.phi,Inertia2.w,bearingFriction.mode,bearingFriction.startBackward,bearingFriction.startForward,gear.mode,time