Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.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.LossyGearDemo3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_3.2.3_cpp_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_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001125/0.00113, allocations: 179.2 kB / 16.41 MB, free: 5.707 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.391/1.391, allocations: 205.4 MB / 222.5 MB, free: 9.113 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.0007558/0.0007559, allocations: 79.89 kB / 270.9 MB, free: 8.367 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002669/0.0002669, allocations: 8 kB / 327 MB, free: 204 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1898/0.1901, allocations: 47.57 MB / 374.5 MB, free: 45.39 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.001956/0.1921, allocations: 1.954 MB / 376.5 MB, free: 43.88 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001353/0.1934, allocations: 0.9161 MB / 377.4 MB, free: 43.15 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002003/0.1937, allocations: 3.25 kB / 377.4 MB, free: 43.15 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001715/0.1939, allocations: 31.7 kB / 377.5 MB, free: 43.12 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004132/0.1943, allocations: 104.8 kB / 377.6 MB, free: 43.05 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000317/0.1946, allocations: 141.6 kB / 377.7 MB, free: 42.95 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003759/0.195, allocations: 367.5 kB / 378.1 MB, free: 42.73 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001365/0.1951, allocations: 56.98 kB / 378.1 MB, free: 42.7 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002374/0.1954, allocations: 154.5 kB / 378.3 MB, free: 42.62 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002744/0.1957, allocations: 194.4 kB / 378.4 MB, free: 42.51 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 6.572e-05/0.1957, allocations: 17.38 kB / 378.5 MB, free: 42.51 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002133/0.196, allocations: 85.06 kB / 378.5 MB, free: 42.48 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 9.883e-05/0.1961, allocations: 81.27 kB / 378.6 MB, free: 42.42 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 8.258e-05/0.1962, allocations: 78.86 kB / 378.7 MB, free: 42.36 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003172/0.1965, allocations: 316.5 kB / 379 MB, free: 42.14 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.89e-06/0.1965, allocations: 4 kB / 379 MB, free: 42.14 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.833e-06/0.1965, allocations: 5.219 kB / 379 MB, free: 42.13 MB / 298.7 MB Notification: Performance of Transformations before backend: time 8.837e-06/0.1965, allocations: 0 / 379 MB, free: 42.13 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.0009909/0.1975, allocations: 0.584 MB / 379.6 MB, free: 41.62 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.914e-05/0.1976, allocations: 9.156 kB / 379.6 MB, free: 41.62 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003062/0.1979, allocations: 47.2 kB / 379.7 MB, free: 41.6 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003773/0.1983, allocations: 298.9 kB / 380 MB, free: 41.32 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001023/0.1984, allocations: 83.92 kB / 380 MB, free: 41.24 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.817e-05/0.1985, allocations: 29.34 kB / 380.1 MB, free: 41.23 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000664/0.1991, allocations: 378.1 kB / 380.4 MB, free: 40.98 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.698e-05/0.1992, allocations: 1.156 kB / 380.4 MB, free: 40.98 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.706e-05/0.1992, allocations: 10.81 kB / 380.4 MB, free: 40.98 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.858e-06/0.1992, allocations: 6.938 kB / 380.5 MB, free: 40.98 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008425/0.2001, allocations: 432.4 kB / 380.9 MB, free: 40.79 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001841/0.2019, allocations: 1.247 MB / 382.1 MB, free: 39.8 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006497/0.2026, allocations: 363.2 kB / 382.5 MB, free: 39.63 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00036/0.2029, allocations: 192.6 kB / 382.7 MB, free: 39.54 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.235e-05/0.203, allocations: 7.594 kB / 382.7 MB, free: 39.54 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.466e-05/0.203, allocations: 40.95 kB / 382.7 MB, free: 39.49 MB / 298.7 MB Notification: Performance of pre-optimization done (n=43): time 2.745e-06/0.203, allocations: 0 / 382.7 MB, free: 39.49 MB / 298.7 MB Notification: Performance of matching and sorting (n=45): time 0.004526/0.2076, allocations: 1.954 MB / 384.7 MB, free: 38.23 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.111e-05/0.2076, allocations: 85.45 kB / 384.7 MB, free: 38.13 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002667/0.2079, allocations: 243 kB / 385 MB, free: 37.97 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.326e-05/0.2079, allocations: 35.78 kB / 385 MB, free: 37.93 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.802e-05/0.208, allocations: 134.5 kB / 385.2 MB, free: 37.8 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.766e-05/0.2081, allocations: 155.6 kB / 385.3 MB, free: 37.67 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.31e-05/0.2081, allocations: 6.188 kB / 385.3 MB, free: 37.66 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.237e-05/0.2082, allocations: 337.2 kB / 385.6 MB, free: 37.33 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003327/0.2085, allocations: 166.4 kB / 385.8 MB, free: 37.2 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003313/0.2089, allocations: 237.9 kB / 386 MB, free: 36.95 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003037/0.2092, allocations: 164.7 kB / 386.2 MB, free: 36.79 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.563e-06/0.2092, allocations: 4.031 kB / 386.2 MB, free: 36.79 MB / 298.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0009281/0.2101, allocations: 0.5638 MB / 386.8 MB, free: 36.21 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.507e-05/0.2101, allocations: 4.125 kB / 386.8 MB, free: 36.21 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.162e-06/0.2102, allocations: 4 kB / 386.8 MB, free: 36.2 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006442/0.2108, allocations: 250.2 kB / 387 MB, free: 35.96 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002211/0.211, allocations: 55.91 kB / 387.1 MB, free: 35.9 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002922/0.214, allocations: 2.641 MB / 389.7 MB, free: 33.13 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002615/0.2143, allocations: 36.08 kB / 389.7 MB, free: 33.09 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.688e-05/0.2143, allocations: 19.98 kB / 389.8 MB, free: 33.07 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.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 (27): * Single equations (assignments): 26 * 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 24} Notification: Performance of prepare postOptimizeDAE: time 0.0001337/0.2144, allocations: 149.8 kB / 389.9 MB, free: 32.92 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.938e-05/0.2145, allocations: 27.72 kB / 389.9 MB, free: 32.89 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.278e-05/0.2146, allocations: 42.98 kB / 390 MB, free: 32.85 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.506e-06/0.2146, allocations: 4 kB / 390 MB, free: 32.84 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.627e-06/0.2146, allocations: 7.938 kB / 390 MB, free: 32.84 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.182e-06/0.2146, allocations: 11.92 kB / 390 MB, free: 32.82 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001487/0.2161, allocations: 1.1 MB / 391.1 MB, free: 31.66 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.935e-06/0.2161, allocations: 4 kB / 391.1 MB, free: 31.66 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002103/0.2163, allocations: 55.84 kB / 391.2 MB, free: 31.61 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005859/0.2169, allocations: 236.9 kB / 391.4 MB, free: 31.37 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.027e-05/0.217, allocations: 11.94 kB / 391.4 MB, free: 31.36 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002762/0.2197, allocations: 2.596 MB / 394 MB, free: 28.63 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.2198, allocations: 0 / 394 MB, free: 28.63 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001234/0.221, allocations: 0.8333 MB / 394.8 MB, free: 27.78 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001138/0.2211, allocations: 144.8 kB / 395 MB, free: 27.62 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.74e-05/0.2212, allocations: 16.05 kB / 395 MB, free: 27.61 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002635/0.2215, allocations: 27.98 kB / 395 MB, free: 27.58 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001292/0.2216, allocations: 71.86 kB / 395.1 MB, free: 27.51 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.876e-05/0.2216, allocations: 8 kB / 395.1 MB, free: 27.5 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001568/0.2218, allocations: 188.2 kB / 395.3 MB, free: 27.32 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.71e-07/0.2218, allocations: 0 / 395.3 MB, free: 27.32 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004988/0.2223, allocations: 136 kB / 395.4 MB, free: 27.18 MB / 298.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 (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.0001732/0.2225, allocations: 143.1 kB / 395.6 MB, free: 27.04 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001012/0.2235, allocations: 0.6213 MB / 396.2 MB, free: 26.4 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.2235, allocations: 0 / 396.2 MB, free: 26.4 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005738/0.2241, allocations: 429.3 kB / 396.6 MB, free: 25.96 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003593/0.2245, allocations: 45.91 kB / 396.6 MB, free: 25.93 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001038/0.2255, allocations: 0.8521 MB / 397.5 MB, free: 25.05 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001737/0.2257, allocations: 0.7764 MB / 398.3 MB, free: 24.24 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.442e-05/0.2258, allocations: 35.41 kB / 398.3 MB, free: 24.21 MB / 298.7 MB Notification: Performance of SimCode: time 2.41e-07/0.2258, allocations: 0 / 398.3 MB, free: 24.21 MB / 298.7 MB Notification: Performance of Templates: time 0.006073/0.2319, allocations: 5.178 MB / 403.5 MB, free: 19.03 MB / 298.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.sim & ./Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3 --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/LossyGearDemo3/LossyGearDemo3.csv","../files/Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches