Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_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_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_trunk_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001065/0.001065, allocations: 199.3 kB / 17.38 MB, free: 4.43 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.325/1.325, allocations: 226.6 MB / 244.7 MB, free: 8.184 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008167/0.0008168, allocations: 101.9 kB / 296.8 MB, free: 6.895 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002158/0.000216, allocations: 11.98 kB / 356.7 MB, free: 10.92 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1914/0.1916, allocations: 51.29 MB / 408 MB, free: 27.73 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.00191/0.1935, allocations: 2.061 MB / 410.1 MB, free: 25.66 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00109/0.1946, allocations: 0.9938 MB / 411.1 MB, free: 24.66 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.208e-05/0.1948, allocations: 4 kB / 411.1 MB, free: 24.66 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002081/0.195, allocations: 44.33 kB / 411.1 MB, free: 24.62 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002659/0.1952, allocations: 136.8 kB / 411.3 MB, free: 24.48 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002406/0.1955, allocations: 135.6 kB / 411.4 MB, free: 24.36 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.000295/0.1958, allocations: 406.7 kB / 411.8 MB, free: 23.96 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001162/0.1959, allocations: 62.47 kB / 411.9 MB, free: 23.9 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001384/0.1961, allocations: 175.5 kB / 412 MB, free: 23.73 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001967/0.1963, allocations: 215.3 kB / 412.2 MB, free: 23.52 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.568e-05/0.1963, allocations: 20 kB / 412.3 MB, free: 23.5 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001519/0.1965, allocations: 95.91 kB / 412.4 MB, free: 23.4 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 8.533e-05/0.1966, allocations: 87.75 kB / 412.4 MB, free: 23.32 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001184/0.1967, allocations: 177 kB / 412.6 MB, free: 23.14 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000256/0.197, allocations: 372 kB / 413 MB, free: 22.77 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.978e-06/0.197, allocations: 0 / 413 MB, free: 22.77 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.342e-06/0.197, allocations: 0 / 413 MB, free: 22.77 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.799e-06/0.197, allocations: 0 / 413 MB, free: 22.77 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.000856/0.1979, allocations: 0.6005 MB / 413.6 MB, free: 22.12 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.04e-05/0.1979, allocations: 8.031 kB / 413.6 MB, free: 22.12 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000257/0.1982, allocations: 48.55 kB / 413.6 MB, free: 22.07 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003239/0.1985, allocations: 313.3 kB / 413.9 MB, free: 21.72 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.535e-05/0.1986, allocations: 84.52 kB / 414 MB, free: 21.63 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.895e-05/0.1987, allocations: 28.38 kB / 414.1 MB, free: 21.6 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005911/0.1993, allocations: 389.3 kB / 414.4 MB, free: 21.2 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.535e-05/0.1993, allocations: 0 / 414.4 MB, free: 21.2 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.447e-05/0.1993, allocations: 16 kB / 414.4 MB, free: 21.19 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.823e-06/0.1993, allocations: 4 kB / 414.5 MB, free: 21.18 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007548/0.2001, allocations: 425.9 kB / 414.9 MB, free: 20.77 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001678/0.2018, allocations: 1.276 MB / 416.1 MB, free: 19.42 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005865/0.2024, allocations: 354.9 kB / 416.5 MB, free: 19.07 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003272/0.2027, allocations: 180.8 kB / 416.7 MB, free: 18.89 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.622e-05/0.2028, allocations: 12.14 kB / 416.7 MB, free: 18.88 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.449e-05/0.2028, allocations: 34.55 kB / 416.7 MB, free: 18.83 MB / 298.7 MB Notification: Performance of pre-optimization done (n=43): time 1.503e-06/0.2028, allocations: 0 / 416.7 MB, free: 18.83 MB / 298.7 MB Notification: Performance of matching and sorting (n=45): time 0.004125/0.2069, allocations: 1.957 MB / 418.7 MB, free: 16.76 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.685e-05/0.207, allocations: 84.86 kB / 418.8 MB, free: 16.66 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002343/0.2072, allocations: 246.5 kB / 419 MB, free: 16.41 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.172e-05/0.2073, allocations: 33.7 kB / 419 MB, free: 16.37 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.127e-05/0.2073, allocations: 136.7 kB / 419.2 MB, free: 16.23 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.835e-05/0.2074, allocations: 153.8 kB / 419.3 MB, free: 16.08 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.685e-05/0.2074, allocations: 11.94 kB / 419.3 MB, free: 16.07 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.627e-05/0.2075, allocations: 338.8 kB / 419.7 MB, free: 15.73 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003424/0.2078, allocations: 172.7 kB / 419.8 MB, free: 15.56 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003524/0.2082, allocations: 225.9 kB / 420 MB, free: 15.32 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006049/0.2088, allocations: 343.2 kB / 420.4 MB, free: 14.97 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.373e-06/0.2088, allocations: 4 kB / 420.4 MB, free: 14.97 MB / 298.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0009785/0.2098, allocations: 0.5513 MB / 420.9 MB, free: 14.41 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.429e-05/0.2098, allocations: 12.03 kB / 420.9 MB, free: 14.39 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.28e-06/0.2098, allocations: 0 / 420.9 MB, free: 14.39 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000705/0.2105, allocations: 292.5 kB / 421.2 MB, free: 14.11 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002283/0.2108, allocations: 63.89 kB / 421.3 MB, free: 14.04 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00297/0.2138, allocations: 2.648 MB / 423.9 MB, free: 11.26 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002552/0.214, allocations: 32.03 kB / 424 MB, free: 11.23 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.433e-05/0.2141, allocations: 20 kB / 424 MB, free: 11.21 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.0001411/0.2142, allocations: 157 kB / 424.1 MB, free: 11.05 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.238e-05/0.2143, allocations: 35.5 kB / 424.2 MB, free: 11.02 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.179e-05/0.2144, allocations: 46.98 kB / 424.2 MB, free: 10.97 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.027e-06/0.2144, allocations: 12 kB / 424.2 MB, free: 10.96 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.254e-06/0.2144, allocations: 0 / 424.2 MB, free: 10.96 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.731e-06/0.2144, allocations: 0 / 424.2 MB, free: 10.96 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001606/0.216, allocations: 1.12 MB / 425.4 MB, free: 9.777 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.535e-06/0.2161, allocations: 0 / 425.4 MB, free: 9.777 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002147/0.2163, allocations: 51.89 kB / 425.4 MB, free: 9.727 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006382/0.2169, allocations: 284.8 kB / 425.7 MB, free: 9.445 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.378e-05/0.217, allocations: 11.98 kB / 425.7 MB, free: 9.434 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002747/0.2197, allocations: 2.602 MB / 428.3 MB, free: 6.691 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/0.2197, allocations: 3.938 kB / 428.3 MB, free: 6.688 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001295/0.221, allocations: 0.8255 MB / 429.1 MB, free: 5.844 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001313/0.2212, allocations: 156.7 kB / 429.3 MB, free: 5.672 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.149e-05/0.2212, allocations: 12.06 kB / 429.3 MB, free: 5.66 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002596/0.2215, allocations: 31.97 kB / 429.3 MB, free: 5.629 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001415/0.2217, allocations: 71.84 kB / 429.4 MB, free: 5.559 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.095e-05/0.2217, allocations: 19.98 kB / 429.4 MB, free: 5.539 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001692/0.2219, allocations: 176.5 kB / 429.6 MB, free: 5.367 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.2219, allocations: 0 / 429.6 MB, free: 5.367 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0005297/0.2224, allocations: 140 kB / 429.7 MB, free: 5.23 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.0007172/0.2231, allocations: 377 kB / 430.1 MB, free: 4.977 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001069/0.2242, allocations: 0.625 MB / 430.7 MB, free: 4.336 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.2242, allocations: 256 / 430.7 MB, free: 4.336 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000598/0.2248, allocations: 441.2 kB / 431.1 MB, free: 3.891 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004028/0.2253, allocations: 42.84 kB / 431.2 MB, free: 3.852 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00107/0.2263, allocations: 0.8601 MB / 432 MB, free: 2.965 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001576/0.2265, allocations: 0.7725 MB / 432.8 MB, free: 2.168 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001292/0.2266, allocations: 47.39 kB / 432.9 MB, free: 2.125 MB / 298.7 MB Notification: Performance of SimCode: time 3.6e-07/0.2266, allocations: 0 / 432.9 MB, free: 2.125 MB / 298.7 MB Notification: Performance of Templates: time 0.007311/0.234, allocations: 5.856 MB / 438.7 MB, free: 12.26 MB / 314.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.makefile (rm -f Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe >> ../files/Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.sim & ./Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3 --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo3/LossyGearDemo3.csv","../files/Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches