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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Brake,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_Brake",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Brake,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_Brake",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001752/0.001752, allocations: 105.3 kB / 17.58 MB, free: 5.559 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002248/0.002248, allocations: 192 kB / 18.51 MB, free: 4.641 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.536/2.536, allocations: 205.1 MB / 224.4 MB, free: 12.3 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002426/0.002426, allocations: 51.92 kB / 280.7 MB, free: 3.066 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1921/0.1946, allocations: 46.63 MB / 327.4 MB, free: 4.371 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.008628/0.2033, allocations: 2.42 MB / 329.8 MB, free: 1.926 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002589/0.2059, allocations: 0.4998 MB / 330.3 MB, free: 1.422 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005184/0.2065, allocations: 8 kB / 330.3 MB, free: 1.414 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004908/0.2071, allocations: 51.5 kB / 330.4 MB, free: 1.363 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005757/0.2077, allocations: 83.27 kB / 330.4 MB, free: 1.281 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001039/0.2088, allocations: 187.7 kB / 330.6 MB, free: 1.098 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.001061/0.2099, allocations: 495.1 kB / 331.1 MB, free: 0.6133 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003258/0.2102, allocations: 68.94 kB / 331.2 MB, free: 0.5508 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006676/0.2109, allocations: 211.4 kB / 331.4 MB, free: 352 kB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007271/0.2117, allocations: 235.2 kB / 331.6 MB, free: 116 kB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001965/0.2119, allocations: 44 kB / 331.7 MB, free: 72 kB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004716/0.2124, allocations: 87.94 kB / 331.7 MB, free: 15.98 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002957/0.2127, allocations: 95.67 kB / 331.8 MB, free: 15.89 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005392/0.2133, allocations: 183.1 kB / 332 MB, free: 15.71 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009421/0.2142, allocations: 462.5 kB / 332.5 MB, free: 15.26 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.456e-06/0.2143, allocations: 0 / 332.5 MB, free: 15.26 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.124e-06/0.2143, allocations: 0 / 332.5 MB, free: 15.26 MB / 286.1 MB Notification: Performance of Transformations before backend: time 2.566e-05/0.2143, allocations: 7.938 kB / 332.5 MB, free: 15.25 MB / 286.1 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.002555/0.2169, allocations: 0.651 MB / 333.1 MB, free: 14.55 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.89e-05/0.217, allocations: 12.03 kB / 333.1 MB, free: 14.54 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001739/0.2172, allocations: 62.72 kB / 333.2 MB, free: 14.46 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001976/0.2174, allocations: 36.47 kB / 333.2 MB, free: 14.43 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006212/0.218, allocations: 288.6 kB / 333.5 MB, free: 14.11 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.698e-05/0.2181, allocations: 20.94 kB / 333.5 MB, free: 14.09 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001414/0.2183, allocations: 32.28 kB / 333.6 MB, free: 14.06 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00143/0.2197, allocations: 381.2 kB / 333.9 MB, free: 13.68 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.456e-05/0.2198, allocations: 7.938 kB / 333.9 MB, free: 13.67 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.073e-05/0.2199, allocations: 8 kB / 333.9 MB, free: 13.66 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.213e-05/0.2199, allocations: 8 kB / 334 MB, free: 13.66 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001535/0.2215, allocations: 402 kB / 334.3 MB, free: 13.27 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003681/0.2252, allocations: 1.108 MB / 335.5 MB, free: 12.08 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001047/0.2263, allocations: 303.5 kB / 335.8 MB, free: 11.77 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000737/0.227, allocations: 197.4 kB / 335.9 MB, free: 11.58 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.245e-05/0.2271, allocations: 11.94 kB / 336 MB, free: 11.57 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.613e-05/0.2272, allocations: 38.56 kB / 336 MB, free: 11.52 MB / 286.1 MB Notification: Performance of pre-optimization done (n=39): time 4.097e-06/0.2272, allocations: 0 / 336 MB, free: 11.52 MB / 286.1 MB Notification: Performance of matching and sorting (n=45): time 0.008176/0.2354, allocations: 2.025 MB / 338 MB, free: 9.359 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.381e-05/0.2355, allocations: 55.41 kB / 338.1 MB, free: 9.293 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003751/0.2359, allocations: 241 kB / 338.3 MB, free: 9.047 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 8.194e-05/0.236, allocations: 41.7 kB / 338.4 MB, free: 9 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001825/0.2362, allocations: 152.7 kB / 338.5 MB, free: 8.844 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002196/0.2364, allocations: 154 kB / 338.7 MB, free: 8.691 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000255/0.2367, allocations: 94.14 kB / 338.7 MB, free: 8.594 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0002143/0.2369, allocations: 342.8 kB / 339.1 MB, free: 8.25 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006433/0.2376, allocations: 205 kB / 339.3 MB, free: 8.051 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007256/0.2383, allocations: 292.8 kB / 339.6 MB, free: 7.738 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001241/0.2396, allocations: 373.7 kB / 339.9 MB, free: 7.348 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.903e-06/0.2396, allocations: 4 kB / 339.9 MB, free: 7.344 MB / 286.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.002944/0.2426, allocations: 0.7002 MB / 340.6 MB, free: 6.629 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.744e-05/0.2426, allocations: 7.984 kB / 340.6 MB, free: 6.621 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.566e-05/0.2427, allocations: 0 / 340.6 MB, free: 6.621 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001666/0.2444, allocations: 493.5 kB / 341.1 MB, free: 6.133 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006017/0.245, allocations: 79.84 kB / 341.2 MB, free: 6.055 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00264/0.2476, allocations: 1.39 MB / 342.6 MB, free: 4.613 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008188/0.2485, allocations: 59.92 kB / 342.6 MB, free: 4.555 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.482e-05/0.2486, allocations: 23.92 kB / 342.7 MB, free: 4.531 MB / 286.1 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.0004485/0.2491, allocations: 181.3 kB / 342.8 MB, free: 4.344 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001847/0.2493, allocations: 31.62 kB / 342.9 MB, free: 4.312 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000171/0.2495, allocations: 47.3 kB / 342.9 MB, free: 4.27 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.256e-05/0.2495, allocations: 4 kB / 342.9 MB, free: 4.266 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.207e-05/0.2495, allocations: 0 / 342.9 MB, free: 4.266 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.537e-05/0.2495, allocations: 3.984 kB / 342.9 MB, free: 4.262 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005336/0.2549, allocations: 1.349 MB / 344.3 MB, free: 2.836 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.236e-05/0.2549, allocations: 4 kB / 344.3 MB, free: 2.832 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005832/0.2555, allocations: 63.84 kB / 344.3 MB, free: 2.77 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001446/0.257, allocations: 461.4 kB / 344.8 MB, free: 2.312 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.65e-05/0.2571, allocations: 23.97 kB / 344.8 MB, free: 2.289 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002372/0.2595, allocations: 1.335 MB / 346.2 MB, free: 0.9023 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.025e-06/0.2595, allocations: 4.219 kB / 346.2 MB, free: 0.8984 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003602/0.2631, allocations: 0.9393 MB / 347.1 MB, free: 15.92 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003735/0.2635, allocations: 156.7 kB / 347.3 MB, free: 15.75 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001498/0.2637, allocations: 19.94 kB / 347.3 MB, free: 15.73 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005927/0.2643, allocations: 43.95 kB / 347.3 MB, free: 15.69 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003208/0.2647, allocations: 79.86 kB / 347.4 MB, free: 15.61 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.761e-05/0.2648, allocations: 15.98 kB / 347.4 MB, free: 15.59 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003242/0.2651, allocations: 176.5 kB / 347.6 MB, free: 15.42 MB / 302.1 MB Notification: Performance of sort global known variables: time 4.538e-06/0.2651, allocations: 0 / 347.6 MB, free: 15.42 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000937/0.2661, allocations: 107.9 kB / 347.7 MB, free: 15.31 MB / 302.1 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.004381/0.2705, allocations: 1.511 MB / 349.2 MB, free: 13.75 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002186/0.2727, allocations: 0.5259 MB / 349.7 MB, free: 13.23 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.03e-06/0.2727, allocations: 0 / 349.7 MB, free: 13.23 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001184/0.2739, allocations: 295.7 kB / 350 MB, free: 12.94 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009556/0.2749, allocations: 57.17 kB / 350.1 MB, free: 12.89 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01425/0.2892, allocations: 4.13 MB / 354.2 MB, free: 8.586 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007147/0.29, allocations: 0.7761 MB / 355 MB, free: 7.785 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003128/0.2903, allocations: 38.95 kB / 355 MB, free: 7.746 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002643/0.2906, allocations: 91.41 kB / 355.1 MB, free: 7.656 MB / 302.1 MB Notification: Performance of SimCode: time 2.154e-06/0.2906, allocations: 0 / 355.1 MB, free: 7.656 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06769/0.3583, allocations: 11.51 MB / 366.6 MB, free: 12.07 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 18.38/18.73, allocations: 7.984 kB / 366.6 MB, free: 12.07 MB / 318.1 MB (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 & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_Brake.fmu > Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Translational/Examples/Brake/Brake.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches