Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_Modelica.Mechanics.Translational.Examples.Brake") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001377/0.001377, allocations: 193.8 kB / 17.43 MB, free: 4.398 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.676/1.676, allocations: 229.5 MB / 247.7 MB, free: 6.316 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007768/0.0007768, allocations: 94.59 kB / 299.9 MB, free: 5.328 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0001941/0.0001942, allocations: 11.98 kB / 360.6 MB, free: 8.461 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2008/0.201, allocations: 51.4 MB / 412 MB, free: 25.89 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.002877/0.204, allocations: 2.163 MB / 414.2 MB, free: 23.72 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001072/0.2051, allocations: 0.5499 MB / 414.8 MB, free: 23.18 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001408/0.2052, allocations: 4 kB / 414.8 MB, free: 23.17 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000285/0.2055, allocations: 51.69 kB / 414.8 MB, free: 23.12 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002958/0.2058, allocations: 118.9 kB / 414.9 MB, free: 23.01 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002784/0.2061, allocations: 139.7 kB / 415.1 MB, free: 22.87 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.000455/0.2066, allocations: 479.1 kB / 415.5 MB, free: 22.4 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001884/0.2068, allocations: 70.72 kB / 415.6 MB, free: 22.33 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002496/0.207, allocations: 199.3 kB / 415.8 MB, free: 22.14 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003026/0.2074, allocations: 227.1 kB / 416 MB, free: 21.91 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 7.484e-05/0.2075, allocations: 24 kB / 416 MB, free: 21.89 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000179/0.2076, allocations: 71.97 kB / 416.1 MB, free: 21.82 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001454/0.2078, allocations: 87.7 kB / 416.2 MB, free: 21.73 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001861/0.208, allocations: 204.7 kB / 416.4 MB, free: 21.53 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004685/0.2085, allocations: 468 kB / 416.9 MB, free: 21.07 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.538e-06/0.2085, allocations: 0 / 416.9 MB, free: 21.07 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.933e-06/0.2085, allocations: 4 kB / 416.9 MB, free: 21.07 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.741e-06/0.2085, allocations: 0 / 416.9 MB, free: 21.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: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.001352/0.2099, allocations: 0.655 MB / 417.5 MB, free: 20.36 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.746e-05/0.2099, allocations: 12.03 kB / 417.5 MB, free: 20.34 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.637e-05/0.21, allocations: 36.47 kB / 417.6 MB, free: 20.31 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003716/0.2104, allocations: 303.5 kB / 417.9 MB, free: 19.97 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.997e-05/0.2105, allocations: 25.03 kB / 417.9 MB, free: 19.95 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.498e-05/0.2106, allocations: 32.28 kB / 417.9 MB, free: 19.92 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008621/0.2114, allocations: 370.5 kB / 418.3 MB, free: 19.55 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.316e-05/0.2115, allocations: 4.172 kB / 418.3 MB, free: 19.55 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.447e-05/0.2115, allocations: 15.94 kB / 418.3 MB, free: 19.54 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.038e-05/0.2116, allocations: 12 kB / 418.3 MB, free: 19.52 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001029/0.2126, allocations: 378.3 kB / 418.7 MB, free: 19.15 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002239/0.2149, allocations: 1.147 MB / 419.8 MB, free: 17.93 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007263/0.2156, allocations: 322.6 kB / 420.1 MB, free: 17.6 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004528/0.2161, allocations: 184.8 kB / 420.3 MB, free: 17.42 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.691e-05/0.2161, allocations: 4.719 kB / 420.3 MB, free: 17.41 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.121e-05/0.2162, allocations: 38.56 kB / 420.4 MB, free: 17.37 MB / 298.7 MB Notification: Performance of pre-optimization done (n=43): time 3.096e-06/0.2162, allocations: 3.938 kB / 420.4 MB, free: 17.36 MB / 298.7 MB Notification: Performance of matching and sorting (n=49): time 0.004465/0.2206, allocations: 2.057 MB / 422.4 MB, free: 15.17 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.39e-05/0.2207, allocations: 59.84 kB / 422.5 MB, free: 15.1 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001895/0.2209, allocations: 260.8 kB / 422.7 MB, free: 14.83 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.343e-05/0.2209, allocations: 37.7 kB / 422.8 MB, free: 14.79 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.588e-05/0.221, allocations: 156.8 kB / 422.9 MB, free: 14.63 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.237e-05/0.2211, allocations: 161.8 kB / 423.1 MB, free: 14.47 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.59e-05/0.2211, allocations: 8 kB / 423.1 MB, free: 14.46 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.746e-05/0.2211, allocations: 342.8 kB / 423.4 MB, free: 14.12 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003128/0.2215, allocations: 189 kB / 423.6 MB, free: 13.94 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003472/0.2218, allocations: 256.8 kB / 423.9 MB, free: 13.66 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004802/0.2223, allocations: 353.6 kB / 424.2 MB, free: 13.29 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.2223, allocations: 0 / 424.2 MB, free: 13.29 MB / 298.7 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001485/0.2238, allocations: 0.5949 MB / 424.8 MB, free: 12.68 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.852e-05/0.2238, allocations: 11.98 kB / 424.8 MB, free: 12.67 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.913e-06/0.2239, allocations: 0 / 424.8 MB, free: 12.67 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008418/0.2247, allocations: 289.7 kB / 425.1 MB, free: 12.38 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003579/0.2251, allocations: 71.91 kB / 425.2 MB, free: 12.31 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001325/0.2264, allocations: 1.347 MB / 426.5 MB, free: 10.91 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006415/0.2271, allocations: 96.03 kB / 426.6 MB, free: 10.82 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.503e-05/0.2272, allocations: 20.19 kB / 426.6 MB, free: 10.8 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 (brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode,brake1.free,$PRE.brake1.startForward,brake1.startForward,$PRE.brake1.startBackward,brake1.startBackward,brake1.locked,$PRE.brake1.mode,brake1.mode) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (47): * Single equations (assignments): 45 * 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,9), (1,8)} Notification: Performance of prepare postOptimizeDAE: time 0.0002084/0.2274, allocations: 169.6 kB / 426.8 MB, free: 10.62 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001123/0.2275, allocations: 43.41 kB / 426.8 MB, free: 10.58 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.643e-05/0.2276, allocations: 47.62 kB / 426.9 MB, free: 10.54 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.079e-06/0.2276, allocations: 12 kB / 426.9 MB, free: 10.52 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.516e-06/0.2277, allocations: 4.031 kB / 426.9 MB, free: 10.52 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.776e-06/0.2277, allocations: 3.984 kB / 426.9 MB, free: 10.52 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003468/0.2312, allocations: 1.362 MB / 428.3 MB, free: 9.074 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.478e-06/0.2312, allocations: 0 / 428.3 MB, free: 9.074 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004532/0.2316, allocations: 63.97 kB / 428.3 MB, free: 9.012 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006848/0.2323, allocations: 261.7 kB / 428.6 MB, free: 8.75 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.932e-05/0.2324, allocations: 19.98 kB / 428.6 MB, free: 8.73 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001257/0.2337, allocations: 1.304 MB / 429.9 MB, free: 7.375 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.334e-06/0.2337, allocations: 3.984 kB / 429.9 MB, free: 7.371 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002168/0.2359, allocations: 0.8891 MB / 430.8 MB, free: 6.449 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002078/0.2361, allocations: 156.7 kB / 431 MB, free: 6.277 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001089/0.2362, allocations: 19.98 kB / 431 MB, free: 6.258 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003489/0.2366, allocations: 51.97 kB / 431 MB, free: 6.207 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001651/0.2368, allocations: 87.73 kB / 431.1 MB, free: 6.121 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.911e-05/0.2368, allocations: 27.97 kB / 431.1 MB, free: 6.094 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.000212/0.2371, allocations: 176.5 kB / 431.3 MB, free: 5.922 MB / 298.7 MB Notification: Performance of sort global known variables: time 2.51e-07/0.2371, allocations: 0 / 431.3 MB, free: 5.922 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0006473/0.2377, allocations: 104 kB / 431.4 MB, free: 5.82 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,7), (1,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001077/0.2388, allocations: 439.4 kB / 431.8 MB, free: 5.492 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001246/0.2401, allocations: 485.6 kB / 432.3 MB, free: 5.016 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.2401, allocations: 320 / 432.3 MB, free: 5.016 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007407/0.2408, allocations: 279.7 kB / 432.6 MB, free: 4.742 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007589/0.2416, allocations: 60.52 kB / 432.6 MB, free: 4.684 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002899/0.2445, allocations: 1.277 MB / 433.9 MB, free: 3.359 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002573/0.2448, allocations: 0.792 MB / 434.7 MB, free: 2.543 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0002155/0.245, allocations: 38.95 kB / 434.8 MB, free: 2.508 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001223/0.2452, allocations: 31.36 kB / 434.8 MB, free: 2.477 MB / 298.7 MB Notification: Performance of SimCode: time 3.31e-07/0.2452, allocations: 4 kB / 434.8 MB, free: 2.473 MB / 298.7 MB Notification: Performance of Templates: time 0.01667/0.2619, allocations: 7.796 MB / 442.6 MB, free: 10.71 MB / 314.7 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake.makefile (rm -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake.sim & ./Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/Brake/Brake.csv","../files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches