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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00124/0.00124, allocations: 105.5 kB / 20.43 MB, free: 1.473 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001323/0.001323, allocations: 188.3 kB / 23.72 MB, free: 4.719 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.4/1.4, allocations: 225.6 MB / 252.5 MB, free: 13.04 MB / 206.1 MB " [Timeout remaining time 178] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001533/0.001533, allocations: 47.92 kB / 370.4 MB, free: 9.863 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2621/0.2636, allocations: 52.19 MB / 422.6 MB, free: 14.6 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.004261/0.2679, allocations: 2.465 MB / 425.1 MB, free: 12.12 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001221/0.2691, allocations: 0.4953 MB / 425.6 MB, free: 11.62 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001552/0.2693, allocations: 7.938 kB / 425.6 MB, free: 11.62 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002252/0.2695, allocations: 51.5 kB / 425.6 MB, free: 11.57 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001706/0.2697, allocations: 83.33 kB / 425.7 MB, free: 11.48 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005254/0.2702, allocations: 195.6 kB / 425.9 MB, free: 11.29 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005261/0.2707, allocations: 499 kB / 426.4 MB, free: 10.8 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001521/0.2709, allocations: 44.92 kB / 426.4 MB, free: 10.76 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002541/0.2711, allocations: 211.4 kB / 426.6 MB, free: 10.55 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003435/0.2715, allocations: 243.2 kB / 426.9 MB, free: 10.31 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.777e-05/0.2715, allocations: 40 kB / 426.9 MB, free: 10.27 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001788/0.2717, allocations: 91.94 kB / 427 MB, free: 10.18 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001341/0.2718, allocations: 103.7 kB / 427.1 MB, free: 10.08 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001878/0.272, allocations: 187.1 kB / 427.3 MB, free: 9.898 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005721/0.2726, allocations: 466.7 kB / 427.8 MB, free: 9.449 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.05e-06/0.2726, allocations: 4 kB / 427.8 MB, free: 9.445 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.014e-06/0.2726, allocations: 0 / 427.8 MB, free: 9.445 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.745e-06/0.2726, allocations: 0 / 427.8 MB, free: 9.445 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: 69 * Number of variables: 69 Notification: Performance of Generate backend data structure: time 0.001303/0.2739, allocations: 0.5949 MB / 428.4 MB, free: 8.816 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.084e-05/0.274, allocations: 8.031 kB / 428.4 MB, free: 8.809 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.651e-05/0.274, allocations: 66.72 kB / 428.4 MB, free: 8.734 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.072e-05/0.2741, allocations: 40.7 kB / 428.5 MB, free: 8.695 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004219/0.2746, allocations: 226.9 kB / 428.7 MB, free: 8.449 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.795e-05/0.2746, allocations: 28.91 kB / 428.7 MB, free: 8.422 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.408e-05/0.2747, allocations: 32.38 kB / 428.7 MB, free: 8.391 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006993/0.2754, allocations: 378.5 kB / 429.1 MB, free: 8.02 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.012e-05/0.2754, allocations: 3.938 kB / 429.1 MB, free: 8.016 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001099/0.2755, allocations: 15.98 kB / 429.1 MB, free: 8 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.267e-06/0.2755, allocations: 8 kB / 429.1 MB, free: 7.992 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007716/0.2763, allocations: 402.3 kB / 429.5 MB, free: 7.598 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001938/0.2782, allocations: 1.061 MB / 430.6 MB, free: 6.469 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004997/0.2787, allocations: 276.8 kB / 430.9 MB, free: 6.188 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000351/0.2791, allocations: 193.7 kB / 431.1 MB, free: 5.996 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.147e-05/0.2791, allocations: 4 kB / 431.1 MB, free: 5.992 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.932e-05/0.2791, allocations: 46.5 kB / 431.1 MB, free: 5.938 MB / 334.1 MB Notification: Performance of pre-optimization done (n=39): time 2.004e-06/0.2791, allocations: 0 / 431.1 MB, free: 5.938 MB / 334.1 MB Notification: Performance of matching and sorting (n=45): time 0.004385/0.2835, allocations: 1.723 MB / 432.8 MB, free: 4.152 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.362e-05/0.2836, allocations: 59.41 kB / 432.9 MB, free: 4.082 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002655/0.2838, allocations: 240.9 kB / 433.1 MB, free: 3.836 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.913e-05/0.2839, allocations: 37.7 kB / 433.2 MB, free: 3.793 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001128/0.284, allocations: 157 kB / 433.3 MB, free: 3.637 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001558/0.2842, allocations: 166.7 kB / 433.5 MB, free: 3.473 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001686/0.2843, allocations: 98.12 kB / 433.6 MB, free: 3.371 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001574/0.2845, allocations: 342.8 kB / 433.9 MB, free: 3.027 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003913/0.2849, allocations: 204.9 kB / 434.1 MB, free: 2.828 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004509/0.2853, allocations: 288.2 kB / 434.4 MB, free: 2.523 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006387/0.286, allocations: 373.7 kB / 434.7 MB, free: 2.133 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.286, allocations: 0 / 434.7 MB, free: 2.133 MB / 334.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001471/0.2874, allocations: 0.6925 MB / 435.4 MB, free: 1.426 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.085e-05/0.2875, allocations: 4 kB / 435.4 MB, free: 1.422 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.257e-06/0.2875, allocations: 4 kB / 435.5 MB, free: 1.418 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009078/0.2884, allocations: 493.5 kB / 435.9 MB, free: 0.9297 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002943/0.2887, allocations: 75.84 kB / 436 MB, free: 0.8555 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001364/0.29, allocations: 1.39 MB / 437.4 MB, free: 15.41 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004126/0.2904, allocations: 67.91 kB / 437.5 MB, free: 15.35 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.461e-05/0.2905, allocations: 23.97 kB / 437.5 MB, free: 15.32 MB / 350.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.0002258/0.2907, allocations: 163.1 kB / 437.6 MB, free: 15.16 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.82e-05/0.2908, allocations: 31.81 kB / 437.7 MB, free: 15.12 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001217/0.2909, allocations: 47.3 kB / 437.7 MB, free: 15.07 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.162e-06/0.2909, allocations: 4 kB / 437.7 MB, free: 15.07 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.147e-06/0.2909, allocations: 0 / 437.7 MB, free: 15.07 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.701e-06/0.2909, allocations: 0 / 437.7 MB, free: 15.07 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002776/0.2937, allocations: 1.319 MB / 439 MB, free: 13.68 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.797e-06/0.2937, allocations: 0 / 439 MB, free: 13.68 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002748/0.294, allocations: 75.84 kB / 439.1 MB, free: 13.61 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008114/0.2948, allocations: 465.5 kB / 439.6 MB, free: 13.14 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.182e-05/0.2948, allocations: 19.97 kB / 439.6 MB, free: 13.12 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001308/0.2962, allocations: 1.335 MB / 440.9 MB, free: 11.74 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.943e-06/0.2962, allocations: 0 / 440.9 MB, free: 11.74 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00176/0.2979, allocations: 0.9407 MB / 441.9 MB, free: 10.76 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001919/0.2981, allocations: 75.8 kB / 441.9 MB, free: 10.69 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.533e-05/0.2982, allocations: 19.92 kB / 442 MB, free: 10.67 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002723/0.2985, allocations: 35.97 kB / 442 MB, free: 10.63 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001799/0.2986, allocations: 91.81 kB / 442.1 MB, free: 10.54 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.784e-05/0.2987, allocations: 19.98 kB / 442.1 MB, free: 10.52 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001704/0.2988, allocations: 168.5 kB / 442.3 MB, free: 10.36 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2988, allocations: 0 / 442.3 MB, free: 10.36 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004472/0.2993, allocations: 104 kB / 442.4 MB, free: 10.26 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,5), (1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002217/0.3015, allocations: 1.519 MB / 443.9 MB, free: 8.688 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001049/0.3026, allocations: 494.1 kB / 444.4 MB, free: 8.207 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.9e-06/0.3026, allocations: 4.312 kB / 444.4 MB, free: 8.203 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005789/0.3031, allocations: 284 kB / 444.7 MB, free: 7.926 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004841/0.3036, allocations: 44.67 kB / 444.7 MB, free: 7.883 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007095/0.3107, allocations: 4.115 MB / 448.8 MB, free: 3.602 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004084/0.3111, allocations: 0.7762 MB / 449.6 MB, free: 2.797 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001452/0.3113, allocations: 42.97 kB / 449.6 MB, free: 2.758 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001573/0.3114, allocations: 91.39 kB / 449.7 MB, free: 2.668 MB / 350.1 MB Notification: Performance of SimCode: time 7.01e-07/0.3114, allocations: 0 / 449.7 MB, free: 2.668 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04351/0.3549, allocations: 12.19 MB / 461.9 MB, free: 6.641 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.55/12.9, allocations: 11.38 kB / 461.9 MB, free: 6.633 MB / 366.1 MB " [Timeout remaining time 647] (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 --stepSize=0.001 --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) [Timeout 52.5] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.313436497934163]