Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake.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.Translational.Examples.Brake,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|mass1.s|mass1.v|mass2.s|mass2.v|brake.mode|brake.startBackward|brake.startForward|brake1.mode|brake1.startBackward|brake1.startForward",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake") translateModel(Modelica.Mechanics.Translational.Examples.Brake,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|mass1.s|mass1.v|mass2.s|mass2.v|brake.mode|brake.startBackward|brake.startForward|brake1.mode|brake1.startBackward|brake1.startForward",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00105/0.00105, allocations: 187 kB / 17.92 MB, free: 3.855 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.19/1.19, allocations: 205.1 MB / 223.7 MB, free: 8.477 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.0009826/0.0009826, allocations: 100.9 kB / 271.2 MB, free: 8.434 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0008466/0.0008468, allocations: 32.09 kB / 327.2 MB, free: 336 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2078/0.2087, allocations: 46.62 MB / 373.8 MB, free: 45.66 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.003057/0.2118, allocations: 2.477 MB / 376.3 MB, free: 43.86 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007431/0.2126, allocations: 0.4992 MB / 376.8 MB, free: 43.45 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.555e-05/0.2127, allocations: 7.625 kB / 376.8 MB, free: 43.44 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001699/0.2129, allocations: 35.39 kB / 376.8 MB, free: 43.41 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001085/0.213, allocations: 72.17 kB / 376.9 MB, free: 43.36 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003241/0.2133, allocations: 167.2 kB / 377.1 MB, free: 43.22 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003375/0.2137, allocations: 463.6 kB / 377.5 MB, free: 42.96 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001347/0.2138, allocations: 73.34 kB / 377.6 MB, free: 42.93 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001739/0.214, allocations: 189.2 kB / 377.8 MB, free: 42.83 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002201/0.2142, allocations: 221.2 kB / 378 MB, free: 42.69 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.448e-05/0.2143, allocations: 28.91 kB / 378 MB, free: 42.68 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001395/0.2144, allocations: 68.14 kB / 378.1 MB, free: 42.66 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 8.933e-05/0.2145, allocations: 78.36 kB / 378.2 MB, free: 42.59 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000134/0.2146, allocations: 167.5 kB / 378.3 MB, free: 42.48 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003554/0.215, allocations: 440.4 kB / 378.8 MB, free: 42.16 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.956e-06/0.215, allocations: 0 / 378.8 MB, free: 42.16 MB / 298.7 MB Notification: Performance of FrontEnd: time 8.51e-07/0.215, allocations: 0 / 378.8 MB, free: 42.16 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.37e-06/0.215, allocations: 1.188 kB / 378.8 MB, free: 42.16 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: 69 * Number of variables: 69 Notification: Performance of Generate backend data structure: time 0.00103/0.2161, allocations: 0.6613 MB / 379.4 MB, free: 41.58 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.61e-05/0.2161, allocations: 9.5 kB / 379.4 MB, free: 41.58 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.825e-05/0.2162, allocations: 37.84 kB / 379.5 MB, free: 41.56 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002469/0.2165, allocations: 280.8 kB / 379.7 MB, free: 41.28 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.524e-05/0.2165, allocations: 24.56 kB / 379.8 MB, free: 41.27 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.09e-05/0.2166, allocations: 31.72 kB / 379.8 MB, free: 41.25 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005829/0.2171, allocations: 377.4 kB / 380.2 MB, free: 41.02 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.64e-05/0.2172, allocations: 5.469 kB / 380.2 MB, free: 41.02 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.383e-05/0.2172, allocations: 14.44 kB / 380.2 MB, free: 41 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.546e-06/0.2172, allocations: 6.688 kB / 380.2 MB, free: 41 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006896/0.2179, allocations: 403.4 kB / 380.6 MB, free: 40.82 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001649/0.2196, allocations: 1.104 MB / 381.7 MB, free: 39.93 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004409/0.22, allocations: 291.7 kB / 382 MB, free: 39.79 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002997/0.2203, allocations: 200.1 kB / 382.2 MB, free: 39.69 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.081e-05/0.2204, allocations: 11.8 kB / 382.2 MB, free: 39.68 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.928e-05/0.2204, allocations: 43.84 kB / 382.2 MB, free: 39.63 MB / 298.7 MB Notification: Performance of pre-optimization done (n=39): time 1.463e-06/0.2204, allocations: 1.625 kB / 382.2 MB, free: 39.63 MB / 298.7 MB Notification: Performance of matching and sorting (n=45): time 0.003793/0.2242, allocations: 2.029 MB / 384.3 MB, free: 38.26 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.154e-05/0.2243, allocations: 55.94 kB / 384.3 MB, free: 38.2 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001745/0.2244, allocations: 240.2 kB / 384.5 MB, free: 38.02 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.381e-05/0.2245, allocations: 39.2 kB / 384.6 MB, free: 37.98 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.648e-05/0.2245, allocations: 154.3 kB / 384.7 MB, free: 37.84 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.253e-05/0.2246, allocations: 152.9 kB / 384.9 MB, free: 37.7 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001408/0.2248, allocations: 96.17 kB / 385 MB, free: 37.64 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.356e-05/0.2248, allocations: 341.4 kB / 385.3 MB, free: 37.3 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003438/0.2252, allocations: 209 kB / 385.5 MB, free: 37.21 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003733/0.2256, allocations: 289.5 kB / 385.8 MB, free: 37.02 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005119/0.2261, allocations: 380.2 kB / 386.2 MB, free: 36.73 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.973e-06/0.2261, allocations: 0 / 386.2 MB, free: 36.73 MB / 298.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001101/0.2272, allocations: 0.6809 MB / 386.8 MB, free: 36.03 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.532e-05/0.2272, allocations: 15.94 kB / 386.9 MB, free: 36.02 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.541e-06/0.2273, allocations: 0 / 386.9 MB, free: 36.02 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006711/0.2279, allocations: 0.4896 MB / 387.4 MB, free: 35.52 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002435/0.2282, allocations: 79.83 kB / 387.4 MB, free: 35.44 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008609/0.2291, allocations: 1.394 MB / 388.8 MB, free: 34 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003961/0.2295, allocations: 59.92 kB / 388.9 MB, free: 33.94 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.05e-05/0.2295, allocations: 23.98 kB / 388.9 MB, free: 33.91 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 16 (brake1.mode,$PRE.brake1.mode,brake1.locked,brake1.startBackward,$PRE.brake1.startBackward,brake1.startForward,$PRE.brake1.startForward,brake1.free,brake.mode,$PRE.brake.mode,brake.locked,brake.startBackward,$PRE.brake.startBackward,brake.startForward,$PRE.brake.startForward,brake.free) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (49): * Single equations (assignments): 47 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(1,7), (1,6)} Notification: Performance of prepare postOptimizeDAE: time 0.0001411/0.2297, allocations: 162.7 kB / 389.1 MB, free: 33.75 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.461e-05/0.2297, allocations: 31.56 kB / 389.1 MB, free: 33.71 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001062/0.2298, allocations: 51.3 kB / 389.1 MB, free: 33.67 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.148e-06/0.2299, allocations: 4 kB / 389.2 MB, free: 33.66 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.244e-06/0.2299, allocations: 0 / 389.2 MB, free: 33.66 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.262e-06/0.2299, allocations: 3.984 kB / 389.2 MB, free: 33.66 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002152/0.232, allocations: 1.357 MB / 390.5 MB, free: 32.23 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.086e-06/0.2321, allocations: 0 / 390.5 MB, free: 32.23 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002317/0.2323, allocations: 63.91 kB / 390.6 MB, free: 32.16 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005337/0.2328, allocations: 469.5 kB / 391 MB, free: 31.7 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.822e-05/0.2329, allocations: 23.97 kB / 391.1 MB, free: 31.68 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007396/0.2336, allocations: 1.331 MB / 392.4 MB, free: 30.29 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.735e-06/0.2336, allocations: 4.031 kB / 392.4 MB, free: 30.29 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01073/0.2444, allocations: 8.34 MB / 400.7 MB, free: 21.46 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001434/0.2446, allocations: 152.7 kB / 400.9 MB, free: 21.3 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.73e-05/0.2446, allocations: 20 kB / 400.9 MB, free: 21.28 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002605/0.2449, allocations: 35.95 kB / 400.9 MB, free: 21.24 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001636/0.2451, allocations: 87.73 kB / 401 MB, free: 21.16 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.411e-05/0.2451, allocations: 23.97 kB / 401 MB, free: 21.13 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001078/0.2452, allocations: 168.5 kB / 401.2 MB, free: 20.96 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2452, allocations: 0 / 401.2 MB, free: 20.96 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0005897/0.2458, allocations: 172 kB / 401.4 MB, free: 20.8 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 4 (mass1.s,mass1.v,mass2.s,mass2.v) * Number of discrete variables: 10 (brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,brake1.free,brake1.startForward,brake1.startBackward,brake1.locked,brake1.mode) * Number of discrete states: 6 (brake1.mode,brake1.startForward,brake1.startBackward,brake.mode,brake.startForward,brake.startBackward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (35): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(1,5), (1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002323/0.2461, allocations: 151.2 kB / 401.5 MB, free: 20.64 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0008428/0.2469, allocations: 0.5145 MB / 402 MB, free: 20.13 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.2469, allocations: 0 / 402 MB, free: 20.13 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004692/0.2474, allocations: 288 kB / 402.3 MB, free: 19.85 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004432/0.2479, allocations: 67.64 kB / 402.4 MB, free: 19.79 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002061/0.2499, allocations: 1.622 MB / 404 MB, free: 18.08 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001746/0.2501, allocations: 0.7917 MB / 404.8 MB, free: 17.26 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001393/0.2503, allocations: 34.97 kB / 404.8 MB, free: 17.23 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.059e-05/0.2504, allocations: 35.42 kB / 404.9 MB, free: 17.2 MB / 298.7 MB Notification: Performance of SimCode: time 2.41e-07/0.2504, allocations: 3.938 kB / 404.9 MB, free: 17.19 MB / 298.7 MB Notification: Performance of Templates: time 0.0116/0.262, allocations: 10.87 MB / 415.7 MB, free: 6.336 MB / 298.7 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake.sim & ./Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Translational/Examples/Brake/Brake.csv","../files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches