Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.HeatLosses.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.Translational.Examples.HeatLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|damper.s_rel|damper.v_rel|massWithStopAndFriction.s|massWithStopAndFriction.v|springDamper.s_rel|springDamper.v_rel|springDamper1.s_rel|springDamper1.v_rel|brake.mode|brake.startBackward|brake.startForward|massWithStopAndFriction.mode|massWithStopAndFriction.startBackward|massWithStopAndFriction.startForward|supportFriction.mode|supportFriction.startBackward|supportFriction.startForward",fileNamePrefix="Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.HeatLosses") translateModel(Modelica.Mechanics.Translational.Examples.HeatLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|damper.s_rel|damper.v_rel|massWithStopAndFriction.s|massWithStopAndFriction.v|springDamper.s_rel|springDamper.v_rel|springDamper1.s_rel|springDamper1.v_rel|brake.mode|brake.startBackward|brake.startForward|massWithStopAndFriction.mode|massWithStopAndFriction.startBackward|massWithStopAndFriction.startForward|supportFriction.mode|supportFriction.startBackward|supportFriction.startForward",fileNamePrefix="Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.HeatLosses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001412/0.001412, allocations: 195 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.282/1.282, allocations: 226.5 MB / 244.7 MB, free: 6.508 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000973/0.000973, allocations: 100.9 kB / 296.8 MB, free: 6.703 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002268/0.0002269, allocations: 7.984 kB / 356.7 MB, free: 10.72 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1876/0.1878, allocations: 51.3 MB / 408 MB, free: 27.7 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.HeatLosses): time 0.003123/0.191, allocations: 3.838 MB / 411.9 MB, free: 23.85 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002208/0.1932, allocations: 1.463 MB / 413.3 MB, free: 22.39 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000342/0.1936, allocations: 12.84 kB / 413.4 MB, free: 22.38 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003338/0.1939, allocations: 99.25 kB / 413.5 MB, free: 22.28 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004802/0.1944, allocations: 236.6 kB / 413.7 MB, free: 22.05 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007144/0.1951, allocations: 315.5 kB / 414 MB, free: 21.75 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007534/0.1959, allocations: 1.014 MB / 415 MB, free: 20.72 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002966/0.1962, allocations: 222.9 kB / 415.2 MB, free: 20.5 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005148/0.1967, allocations: 434.4 kB / 415.6 MB, free: 20.07 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003982/0.1971, allocations: 466.3 kB / 416.1 MB, free: 19.61 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 9.548e-05/0.1972, allocations: 48 kB / 416.2 MB, free: 19.57 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002613/0.1975, allocations: 112 kB / 416.3 MB, free: 19.46 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001708/0.1977, allocations: 187.3 kB / 416.4 MB, free: 19.27 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002928/0.198, allocations: 411.9 kB / 416.8 MB, free: 18.86 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005592/0.1986, allocations: 0.784 MB / 417.6 MB, free: 18.08 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.34e-06/0.1986, allocations: 3.984 kB / 417.6 MB, free: 18.07 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.493e-06/0.1986, allocations: 0 / 417.6 MB, free: 18.07 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.733e-05/0.1986, allocations: 0 / 417.6 MB, free: 18.07 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: 173 * Number of variables: 173 Notification: Performance of Generate backend data structure: time 0.002629/0.2012, allocations: 1.248 MB / 418.9 MB, free: 16.78 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.789e-05/0.2013, allocations: 8.031 kB / 418.9 MB, free: 16.77 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004491/0.2017, allocations: 119.9 kB / 419 MB, free: 16.65 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000497/0.2023, allocations: 457.4 kB / 419.5 MB, free: 16.16 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.102e-05/0.2023, allocations: 54.38 kB / 419.5 MB, free: 16.11 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000111/0.2024, allocations: 76.36 kB / 419.6 MB, free: 16.04 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001458/0.2039, allocations: 0.8038 MB / 420.4 MB, free: 15.22 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.878e-05/0.2039, allocations: 15.91 kB / 420.4 MB, free: 15.21 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.878e-05/0.204, allocations: 31.97 kB / 420.4 MB, free: 15.18 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.232e-05/0.204, allocations: 20 kB / 420.5 MB, free: 15.16 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001768/0.2058, allocations: 0.8666 MB / 421.3 MB, free: 14.29 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003755/0.2096, allocations: 2.47 MB / 423.8 MB, free: 11.69 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001311/0.2109, allocations: 0.7479 MB / 424.5 MB, free: 10.93 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008203/0.2118, allocations: 472.3 kB / 425 MB, free: 10.46 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.241e-05/0.2118, allocations: 13 kB / 425 MB, free: 10.45 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00103/0.2129, allocations: 0.5593 MB / 425.6 MB, free: 9.879 MB / 298.7 MB Notification: Performance of pre-optimization done (n=89): time 3.066e-06/0.2129, allocations: 0 / 425.6 MB, free: 9.879 MB / 298.7 MB Notification: Performance of matching and sorting (n=109): time 0.009484/0.2224, allocations: 4.373 MB / 429.9 MB, free: 5.383 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.88e-05/0.2225, allocations: 64.41 kB / 430 MB, free: 5.305 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003811/0.2229, allocations: 401.9 kB / 430.4 MB, free: 4.906 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 7.928e-05/0.2229, allocations: 53.7 kB / 430.4 MB, free: 4.848 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001264/0.2231, allocations: 277 kB / 430.7 MB, free: 4.57 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001879/0.2233, allocations: 370.8 kB / 431.1 MB, free: 4.203 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.25e-05/0.2233, allocations: 28 kB / 431.1 MB, free: 4.176 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.156e-05/0.2234, allocations: 374.7 kB / 431.5 MB, free: 3.801 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008519/0.2243, allocations: 426.4 kB / 431.9 MB, free: 3.387 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008871/0.2252, allocations: 0.5189 MB / 432.4 MB, free: 2.848 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001469/0.2267, allocations: 0.7714 MB / 433.2 MB, free: 2.059 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.406e-06/0.2267, allocations: 0 / 433.2 MB, free: 2.059 MB / 298.7 MB Notification: Performance of matching and sorting (n=136) (initialization): time 0.002602/0.2293, allocations: 1.307 MB / 434.5 MB, free: 0.7344 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.911e-05/0.2293, allocations: 4 kB / 434.5 MB, free: 0.7305 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.506e-06/0.2293, allocations: 4 kB / 434.5 MB, free: 0.7266 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000864/0.2302, allocations: 0.4982 MB / 435 MB, free: 224 kB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007404/0.231, allocations: 203.7 kB / 435.2 MB, free: 20 kB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003926/0.2349, allocations: 3.259 MB / 438.5 MB, free: 12.57 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001223/0.2361, allocations: 243.9 kB / 438.7 MB, free: 12.33 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.113e-05/0.2362, allocations: 35.98 kB / 438.7 MB, free: 12.3 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 27 (supportFriction.free,$whenCondition1,elastoGap.contact,$PRE.supportFriction.startForward,supportFriction.startForward,$PRE.supportFriction.startBackward,supportFriction.startBackward,supportFriction.locked,$PRE.supportFriction.mode,supportFriction.mode,brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode,massWithStopAndFriction.free,$PRE.massWithStopAndFriction.startForward,massWithStopAndFriction.startForward,$PRE.massWithStopAndFriction.startBackward,massWithStopAndFriction.startBackward,massWithStopAndFriction.locked,$PRE.massWithStopAndFriction.mode,massWithStopAndFriction.mode,massWithStopAndFriction.stopped) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (114): * Single equations (assignments): 111 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 9,1 5,1 8} Notification: Performance of prepare postOptimizeDAE: time 0.0003929/0.2366, allocations: 225.6 kB / 438.9 MB, free: 12.07 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001245/0.2368, allocations: 75.09 kB / 439 MB, free: 12 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002186/0.237, allocations: 107.2 kB / 439.1 MB, free: 11.89 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.767e-06/0.237, allocations: 16 kB / 439.1 MB, free: 11.87 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.232e-06/0.237, allocations: 128 / 439.1 MB, free: 11.87 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.21e-05/0.237, allocations: 7.984 kB / 439.1 MB, free: 11.86 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00435/0.2414, allocations: 2.516 MB / 441.7 MB, free: 9.234 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.943e-06/0.2414, allocations: 4 kB / 441.7 MB, free: 9.23 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007996/0.2422, allocations: 179.8 kB / 441.8 MB, free: 9.055 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009272/0.2432, allocations: 466.3 kB / 442.3 MB, free: 8.59 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.645e-05/0.2433, allocations: 31.97 kB / 442.3 MB, free: 8.559 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003471/0.2467, allocations: 3.092 MB / 445.4 MB, free: 5.285 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.395e-06/0.2468, allocations: 4.031 kB / 445.4 MB, free: 5.281 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003824/0.2506, allocations: 1.844 MB / 447.3 MB, free: 3.391 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000371/0.251, allocations: 236.1 kB / 447.5 MB, free: 3.141 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001303/0.2511, allocations: 36 kB / 447.5 MB, free: 3.105 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001274/0.2524, allocations: 275.7 kB / 447.8 MB, free: 2.836 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009097/0.2533, allocations: 424.1 kB / 448.2 MB, free: 2.422 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001002/0.2534, allocations: 47.89 kB / 448.3 MB, free: 2.375 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0003001/0.2537, allocations: 283.1 kB / 448.5 MB, free: 2.098 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.2537, allocations: 0 / 448.5 MB, free: 2.098 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0007483/0.2545, allocations: 243.9 kB / 448.8 MB, free: 1.859 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 8 (springDamper.s_rel,springDamper.v_rel,elastoGap.s_rel,elastoGap.v_rel,massWithStopAndFriction.s,massWithStopAndFriction.v,springDamper1.s_rel,springDamper1.v_rel) * Number of discrete variables: 17 ($whenCondition1,elastoGap.contact,supportFriction.startForward,supportFriction.startBackward,supportFriction.locked,supportFriction.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,massWithStopAndFriction.free,massWithStopAndFriction.startForward,massWithStopAndFriction.startBackward,massWithStopAndFriction.locked,massWithStopAndFriction.mode,massWithStopAndFriction.stopped) * Number of discrete states: 9 (massWithStopAndFriction.mode,massWithStopAndFriction.startBackward,massWithStopAndFriction.startForward,brake.mode,brake.startForward,brake.startBackward,supportFriction.mode,supportFriction.startForward,supportFriction.startBackward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (89): * Single equations (assignments): 86 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 7,1 8,1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.000825/0.2553, allocations: 410.9 kB / 449.2 MB, free: 1.574 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002433/0.2578, allocations: 1.169 MB / 450.4 MB, free: 408 kB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.2578, allocations: 320 / 450.4 MB, free: 408 kB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001415/0.2592, allocations: 0.7232 MB / 451.1 MB, free: 15.66 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008527/0.2601, allocations: 133.8 kB / 451.2 MB, free: 15.53 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003955/0.2641, allocations: 2.467 MB / 453.7 MB, free: 13.01 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004894/0.2646, allocations: 0.9478 MB / 454.6 MB, free: 12.03 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002426/0.2648, allocations: 71.34 kB / 454.7 MB, free: 11.96 MB / 330.7 MB Notification: Performance of SimCode: time 8.71e-07/0.2648, allocations: 0 / 454.7 MB, free: 11.96 MB / 330.7 MB Notification: Performance of Templates: time 0.01958/0.2844, allocations: 17.85 MB / 472.5 MB, free: 10.09 MB / 346.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.HeatLosses.makefile (rm -f Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe >> ../files/Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.HeatLosses.sim & ./Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.HeatLosses --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.HeatLosses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/HeatLosses/HeatLosses.csv","../files/Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.HeatLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches