Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4_0_0_Modelica_Mechanics_Translational_Examples_Brake",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Brake,fileNamePrefix="Modelica_4_0_0_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.001022/0.001022, allocations: 115 kB / 16.63 MB, free: 6.812 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.000955/0.000955, allocations: 186 kB / 17.55 MB, free: 5.934 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.254/1.254, allocations: 222.9 MB / 241.2 MB, free: 15.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001052/0.001052, allocations: 43.55 kB / 300.2 MB, free: 6.105 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08004/0.08111, allocations: 49.44 MB / 349.7 MB, free: 4.648 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.00319/0.08433, allocations: 2.476 MB / 352.2 MB, free: 2.156 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008915/0.08525, allocations: 495.1 kB / 352.6 MB, free: 1.672 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001264/0.08539, allocations: 4 kB / 352.6 MB, free: 1.668 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001842/0.08558, allocations: 47.67 kB / 352.7 MB, free: 1.621 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001468/0.08574, allocations: 63.47 kB / 352.8 MB, free: 1.559 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004134/0.08616, allocations: 175.8 kB / 352.9 MB, free: 1.387 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004211/0.0866, allocations: 491.1 kB / 353.4 MB, free: 0.9062 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001494/0.08675, allocations: 68.58 kB / 353.5 MB, free: 0.8359 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002365/0.087, allocations: 219.3 kB / 353.7 MB, free: 0.6211 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002556/0.08726, allocations: 239.2 kB / 353.9 MB, free: 396 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.765e-05/0.08733, allocations: 40 kB / 354 MB, free: 356 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000136/0.08747, allocations: 79.95 kB / 354 MB, free: 276 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 9.65e-05/0.08757, allocations: 99.72 kB / 354.1 MB, free: 176 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001597/0.08774, allocations: 187.3 kB / 354.3 MB, free: 15.98 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003983/0.08814, allocations: 462.6 kB / 354.8 MB, free: 15.54 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.475e-06/0.08815, allocations: 0 / 354.8 MB, free: 15.54 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.293e-06/0.08816, allocations: 0 / 354.8 MB, free: 15.54 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.564e-06/0.08817, allocations: 0 / 354.8 MB, free: 15.54 MB / 302.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.001104/0.08928, allocations: 0.6627 MB / 355.4 MB, free: 14.82 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.493e-05/0.08932, allocations: 8.031 kB / 355.4 MB, free: 14.81 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.368e-05/0.0894, allocations: 70.73 kB / 355.5 MB, free: 14.73 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.766e-05/0.08949, allocations: 32.56 kB / 355.5 MB, free: 14.7 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002772/0.08977, allocations: 284.6 kB / 355.8 MB, free: 14.39 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.27e-05/0.08981, allocations: 20.94 kB / 355.8 MB, free: 14.37 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.197e-05/0.08988, allocations: 32.28 kB / 355.9 MB, free: 14.34 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006485/0.09053, allocations: 373.2 kB / 356.2 MB, free: 13.97 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.818e-05/0.09056, allocations: 7.922 kB / 356.2 MB, free: 13.96 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.106e-05/0.0906, allocations: 20 kB / 356.3 MB, free: 13.94 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.025e-06/0.09062, allocations: 8 kB / 356.3 MB, free: 13.93 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007085/0.09133, allocations: 398 kB / 356.7 MB, free: 13.54 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001677/0.09302, allocations: 1.119 MB / 357.8 MB, free: 12.35 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004722/0.0935, allocations: 299.5 kB / 358.1 MB, free: 12.05 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003224/0.09383, allocations: 197.4 kB / 358.3 MB, free: 11.85 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.123e-05/0.09388, allocations: 7.938 kB / 358.3 MB, free: 11.84 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.225e-05/0.09391, allocations: 38.56 kB / 358.3 MB, free: 11.8 MB / 302.1 MB Notification: Performance of pre-optimization done (n=39): time 1.353e-06/0.09392, allocations: 0 / 358.3 MB, free: 11.8 MB / 302.1 MB Notification: Performance of matching and sorting (n=45): time 0.004069/0.09799, allocations: 2.021 MB / 360.3 MB, free: 9.641 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.244e-05/0.09803, allocations: 59.41 kB / 360.4 MB, free: 9.57 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002061/0.09825, allocations: 240.9 kB / 360.6 MB, free: 9.32 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.757e-05/0.09831, allocations: 41.64 kB / 360.7 MB, free: 9.273 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.969e-05/0.09839, allocations: 152.8 kB / 360.8 MB, free: 9.121 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001146/0.09851, allocations: 149.9 kB / 361 MB, free: 8.973 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000154/0.09867, allocations: 98.23 kB / 361.1 MB, free: 8.871 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001125/0.09879, allocations: 342.7 kB / 361.4 MB, free: 8.527 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003782/0.09917, allocations: 209 kB / 361.6 MB, free: 8.32 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003913/0.09958, allocations: 288.8 kB / 361.9 MB, free: 8.016 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005644/0.1001, allocations: 381.7 kB / 362.2 MB, free: 7.621 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/0.1002, allocations: 0 / 362.2 MB, free: 7.621 MB / 302.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001302/0.1015, allocations: 0.6963 MB / 362.9 MB, free: 6.914 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.442e-05/0.1015, allocations: 8 kB / 363 MB, free: 6.906 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.771e-06/0.1015, allocations: 0 / 363 MB, free: 6.906 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007818/0.1023, allocations: 493.5 kB / 363.4 MB, free: 6.418 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002519/0.1026, allocations: 71.91 kB / 363.5 MB, free: 6.348 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001115/0.1037, allocations: 1.39 MB / 364.9 MB, free: 4.906 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003612/0.104, allocations: 64.08 kB / 365 MB, free: 4.844 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.249e-05/0.1041, allocations: 27.98 kB / 365 MB, free: 4.816 MB / 302.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.0001705/0.1043, allocations: 161.5 kB / 365.1 MB, free: 4.648 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.712e-05/0.1043, allocations: 31.62 kB / 365.2 MB, free: 4.617 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.929e-05/0.1045, allocations: 51.3 kB / 365.2 MB, free: 4.566 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.228e-06/0.1045, allocations: 4 kB / 365.2 MB, free: 4.562 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.845e-06/0.1045, allocations: 8.047 kB / 365.2 MB, free: 4.555 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.961e-06/0.1045, allocations: 3.984 kB / 365.2 MB, free: 4.551 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00242/0.1069, allocations: 1.349 MB / 366.6 MB, free: 3.125 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.635e-06/0.1069, allocations: 0 / 366.6 MB, free: 3.125 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000253/0.1072, allocations: 63.84 kB / 366.6 MB, free: 3.062 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006431/0.1078, allocations: 465.5 kB / 367.1 MB, free: 2.602 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.989e-05/0.1079, allocations: 19.97 kB / 367.1 MB, free: 2.582 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001019/0.1089, allocations: 1.335 MB / 368.5 MB, free: 1.195 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.824e-06/0.1089, allocations: 0 / 368.5 MB, free: 1.195 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001584/0.1105, allocations: 0.9469 MB / 369.4 MB, free: 212 kB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001504/0.1107, allocations: 152.7 kB / 369.6 MB, free: 40 kB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.054e-05/0.1108, allocations: 23.94 kB / 369.6 MB, free: 16 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.1446/0.2553, allocations: 32.58 kB / 369.6 MB, free: 26.32 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000247/0.2556, allocations: 83.5 kB / 369.7 MB, free: 26.32 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.558e-05/0.2557, allocations: 20.55 kB / 369.7 MB, free: 26.32 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001687/0.2558, allocations: 171.6 kB / 369.9 MB, free: 26.24 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.2558, allocations: 0 / 369.9 MB, free: 26.24 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000528/0.2564, allocations: 107.4 kB / 370 MB, free: 26.24 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.002059/0.2584, allocations: 1.521 MB / 371.5 MB, free: 25.53 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.00109/0.2595, allocations: 0.5276 MB / 372 MB, free: 25.53 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.116e-06/0.2596, allocations: 1.688 kB / 372 MB, free: 25.53 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005634/0.2601, allocations: 299.6 kB / 372.3 MB, free: 25.52 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004906/0.2606, allocations: 58.12 kB / 372.4 MB, free: 25.52 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006092/0.2667, allocations: 4.246 MB / 376.6 MB, free: 22.97 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002452/0.267, allocations: 0.7798 MB / 377.4 MB, free: 22.27 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001557/0.2672, allocations: 36.92 kB / 377.4 MB, free: 22.26 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001417/0.2673, allocations: 92.09 kB / 377.5 MB, free: 22.2 MB / 302.1 MB Notification: Performance of SimCode: time 3.41e-07/0.2673, allocations: 0 / 377.5 MB, free: 22.2 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1883/0.4556, allocations: 11.4 MB / 388.9 MB, free: 18.27 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001861/0.4559, allocations: 224.1 kB / 389.2 MB, free: 18.02 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.123/2.579, allocations: 0 / 389.2 MB, free: 18.02 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_Brake_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_Brake.fmu > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/Brake/Brake.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches