Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Brake,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Translational_Examples_Brake",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Brake,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Translational_Examples_Brake",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001387/0.001387, allocations: 121.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001355/0.001355, allocations: 204.6 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.508/1.508, allocations: 227.4 MB / 246.9 MB, free: 10.41 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002838/0.002839, allocations: 67.88 kB / 358.2 MB, free: 13.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3205/0.3234, allocations: 50.54 MB / 408.7 MB, free: 1.539 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.005047/0.3284, allocations: 2.572 MB / 411.3 MB, free: 14.96 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00159/0.3301, allocations: 0.5888 MB / 411.9 MB, free: 14.38 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003004/0.3304, allocations: 4 kB / 411.9 MB, free: 14.37 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003969/0.3309, allocations: 67.42 kB / 412 MB, free: 14.3 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005693/0.3314, allocations: 131.1 kB / 412.1 MB, free: 14.17 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004841/0.3319, allocations: 163.7 kB / 412.3 MB, free: 14.01 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008316/0.3328, allocations: 0.5108 MB / 412.8 MB, free: 13.5 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002374/0.333, allocations: 72.69 kB / 412.8 MB, free: 13.42 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004334/0.3335, allocations: 231.2 kB / 413.1 MB, free: 13.2 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005052/0.334, allocations: 247.2 kB / 413.3 MB, free: 12.95 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000145/0.3341, allocations: 40 kB / 413.4 MB, free: 12.91 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000331/0.3345, allocations: 95.98 kB / 413.4 MB, free: 12.82 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002159/0.3347, allocations: 119.6 kB / 413.6 MB, free: 12.7 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003118/0.335, allocations: 195.1 kB / 413.8 MB, free: 12.51 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007866/0.3358, allocations: 0.501 MB / 414.3 MB, free: 12.01 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.823e-06/0.3358, allocations: 4 kB / 414.3 MB, free: 12.01 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.3359, allocations: 0 / 414.3 MB, free: 12.01 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.36e-05/0.3359, allocations: 0 / 414.3 MB, free: 12.01 MB / 334.1 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.001409/0.3373, allocations: 0.7088 MB / 415 MB, free: 11.25 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.774e-05/0.3373, allocations: 12.03 kB / 415 MB, free: 11.23 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.262e-05/0.3374, allocations: 70.66 kB / 415 MB, free: 11.16 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001048/0.3376, allocations: 40.7 kB / 415.1 MB, free: 11.12 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005519/0.3381, allocations: 303.7 kB / 415.4 MB, free: 10.78 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.232e-05/0.3382, allocations: 25.03 kB / 415.4 MB, free: 10.76 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.979e-05/0.3383, allocations: 28.38 kB / 415.4 MB, free: 10.73 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007822/0.339, allocations: 370.5 kB / 415.8 MB, free: 10.36 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.734e-05/0.3391, allocations: 15.88 kB / 415.8 MB, free: 10.35 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.307e-05/0.3391, allocations: 12 kB / 415.8 MB, free: 10.34 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.043e-05/0.3391, allocations: 8 kB / 415.8 MB, free: 10.33 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008159/0.34, allocations: 386.3 kB / 416.2 MB, free: 9.953 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002107/0.3421, allocations: 1.12 MB / 417.3 MB, free: 8.754 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006466/0.3427, allocations: 342.5 kB / 417.7 MB, free: 8.406 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003911/0.3432, allocations: 188.8 kB / 417.8 MB, free: 8.219 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.606e-05/0.3432, allocations: 4 kB / 417.9 MB, free: 8.215 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.493e-05/0.3432, allocations: 38.56 kB / 417.9 MB, free: 8.168 MB / 334.1 MB Notification: Performance of pre-optimization done (n=43): time 2.265e-06/0.3433, allocations: 0 / 417.9 MB, free: 8.168 MB / 334.1 MB Notification: Performance of matching and sorting (n=49): time 0.004773/0.348, allocations: 2.008 MB / 419.9 MB, free: 6.023 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.937e-05/0.3481, allocations: 59.83 kB / 420 MB, free: 5.953 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003233/0.3484, allocations: 256.9 kB / 420.2 MB, free: 5.695 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.85e-05/0.3485, allocations: 45.69 kB / 420.3 MB, free: 5.645 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001248/0.3486, allocations: 153.1 kB / 420.4 MB, free: 5.492 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001596/0.3488, allocations: 174.6 kB / 420.6 MB, free: 5.32 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001718/0.349, allocations: 98.19 kB / 420.7 MB, free: 5.219 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001794/0.3492, allocations: 338.8 kB / 421 MB, free: 4.879 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003995/0.3496, allocations: 193 kB / 421.2 MB, free: 4.691 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00046/0.35, allocations: 264.8 kB / 421.4 MB, free: 4.406 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006317/0.3507, allocations: 361.6 kB / 421.8 MB, free: 4.031 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.33e-06/0.3507, allocations: 4 kB / 421.8 MB, free: 4.027 MB / 334.1 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001212/0.3519, allocations: 0.6185 MB / 422.4 MB, free: 3.395 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.014e-05/0.352, allocations: 8 kB / 422.4 MB, free: 3.387 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.593e-06/0.352, allocations: 0 / 422.4 MB, free: 3.387 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007326/0.3527, allocations: 341.6 kB / 422.8 MB, free: 3.047 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002769/0.353, allocations: 67.91 kB / 422.8 MB, free: 2.98 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001402/0.3544, allocations: 1.362 MB / 424.2 MB, free: 1.566 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000416/0.3548, allocations: 75.98 kB / 424.3 MB, free: 1.492 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.027e-05/0.3549, allocations: 16 kB / 424.3 MB, free: 1.477 MB / 334.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 (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.0002334/0.3551, allocations: 169.6 kB / 424.4 MB, free: 1.301 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.57e-05/0.3552, allocations: 35.75 kB / 424.5 MB, free: 1.266 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001194/0.3553, allocations: 55.66 kB / 424.5 MB, free: 1.211 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.968e-06/0.3554, allocations: 7.984 kB / 424.5 MB, free: 1.203 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.843e-06/0.3554, allocations: 4 kB / 424.5 MB, free: 1.199 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.853e-06/0.3554, allocations: 3.984 kB / 424.6 MB, free: 1.195 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002845/0.3582, allocations: 1.335 MB / 425.9 MB, free: 15.78 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.907e-06/0.3583, allocations: 0 / 425.9 MB, free: 15.78 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002815/0.3585, allocations: 63.91 kB / 425.9 MB, free: 15.72 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006174/0.3592, allocations: 301.6 kB / 426.2 MB, free: 15.42 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.084e-05/0.3592, allocations: 27.91 kB / 426.3 MB, free: 15.39 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001398/0.3606, allocations: 1.312 MB / 427.6 MB, free: 14.03 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.3607, allocations: 0 / 427.6 MB, free: 14.03 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001797/0.3625, allocations: 0.9216 MB / 428.5 MB, free: 13.07 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002039/0.3627, allocations: 164.8 kB / 428.7 MB, free: 12.89 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.095e-05/0.3628, allocations: 16 kB / 428.7 MB, free: 12.88 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003308/0.3631, allocations: 39.95 kB / 428.7 MB, free: 12.84 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002052/0.3633, allocations: 91.78 kB / 428.8 MB, free: 12.75 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.136e-05/0.3634, allocations: 19.98 kB / 428.8 MB, free: 12.73 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001994/0.3636, allocations: 180.5 kB / 429 MB, free: 12.55 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.3636, allocations: 4 kB / 429 MB, free: 12.55 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004775/0.3641, allocations: 104.1 kB / 429.1 MB, free: 12.45 MB / 350.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,7), (1,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003402/0.3675, allocations: 1.722 MB / 430.8 MB, free: 10.79 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001165/0.3687, allocations: 0.4979 MB / 431.3 MB, free: 10.29 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.921e-06/0.3687, allocations: 4 kB / 431.3 MB, free: 10.29 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006268/0.3693, allocations: 287.7 kB / 431.6 MB, free: 10.01 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000566/0.3699, allocations: 63.83 kB / 431.7 MB, free: 9.953 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007566/0.3775, allocations: 4.07 MB / 435.7 MB, free: 5.715 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005444/0.378, allocations: 0.7878 MB / 436.5 MB, free: 4.902 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001666/0.3782, allocations: 34.97 kB / 436.6 MB, free: 4.863 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001995/0.3784, allocations: 103.3 kB / 436.7 MB, free: 4.762 MB / 350.1 MB Notification: Performance of SimCode: time 9.12e-07/0.3784, allocations: 0 / 436.7 MB, free: 4.762 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04524/0.4237, allocations: 11.86 MB / 448.5 MB, free: 9.066 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.17/12.6, allocations: 8 kB / 448.5 MB, free: 9.062 MB / 366.1 MB (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 & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Mechanics_Translational_Examples_Brake.fmu > Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Translational/Examples/Brake/Brake.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches