Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Brake.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001217/0.001217, allocations: 107.5 kB / 21.21 MB, free: 0.6523 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001376/0.001376, allocations: 211.7 kB / 24.51 MB, free: 3.941 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.355/1.355, allocations: 230.6 MB / 258.3 MB, free: 7.801 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Brake,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_Translational_Examples_Brake",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Brake,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_Translational_Examples_Brake",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001425/0.001425, allocations: 43.94 kB / 378.5 MB, free: 2.992 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2256/0.2271, allocations: 53.36 MB / 431.8 MB, free: 6.664 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.003788/0.2309, allocations: 2.417 MB / 434.3 MB, free: 4.242 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009934/0.2318, allocations: 0.5693 MB / 434.8 MB, free: 3.672 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.756e-05/0.2319, allocations: 7.938 kB / 434.8 MB, free: 3.664 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002509/0.2322, allocations: 71.42 kB / 434.9 MB, free: 3.594 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000291/0.2325, allocations: 139.1 kB / 435 MB, free: 3.457 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002977/0.2328, allocations: 167.7 kB / 435.2 MB, free: 3.293 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005166/0.2333, allocations: 0.5109 MB / 435.7 MB, free: 2.777 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001449/0.2334, allocations: 54.95 kB / 435.8 MB, free: 2.727 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002608/0.2337, allocations: 235.3 kB / 436 MB, free: 2.496 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003414/0.2341, allocations: 255.1 kB / 436.3 MB, free: 2.246 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.517e-05/0.2341, allocations: 40 kB / 436.3 MB, free: 2.207 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001772/0.2343, allocations: 95.97 kB / 436.4 MB, free: 2.113 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001582/0.2345, allocations: 115.7 kB / 436.5 MB, free: 2 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001934/0.2347, allocations: 171.2 kB / 436.7 MB, free: 1.832 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000576/0.2352, allocations: 0.5059 MB / 437.2 MB, free: 1.324 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.226e-06/0.2352, allocations: 0 / 437.2 MB, free: 1.324 MB / 334.1 MB Notification: Performance of FrontEnd: time 4.278e-06/0.2352, allocations: 4 kB / 437.2 MB, free: 1.32 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.432e-06/0.2352, allocations: 0 / 437.2 MB, free: 1.32 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.001279/0.2365, allocations: 0.6335 MB / 437.8 MB, free: 0.6523 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.261e-05/0.2366, allocations: 12.03 kB / 437.8 MB, free: 0.6406 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.684e-05/0.2366, allocations: 8.844 kB / 437.8 MB, free: 0.6328 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.534e-05/0.2367, allocations: 66.72 kB / 437.9 MB, free: 0.5586 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.32e-05/0.2368, allocations: 44.69 kB / 437.9 MB, free: 0.5156 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004189/0.2372, allocations: 245.8 kB / 438.2 MB, free: 256 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.932e-05/0.2372, allocations: 25.03 kB / 438.2 MB, free: 232 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.094e-05/0.2373, allocations: 32.36 kB / 438.2 MB, free: 200 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007345/0.238, allocations: 378.2 kB / 438.6 MB, free: 15.82 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.708e-05/0.238, allocations: 3.953 kB / 438.6 MB, free: 15.82 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.336e-05/0.2381, allocations: 16 kB / 438.6 MB, free: 15.8 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.174e-06/0.2381, allocations: 4 kB / 438.6 MB, free: 15.8 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008294/0.2389, allocations: 390.2 kB / 439 MB, free: 15.42 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001966/0.2409, allocations: 1.018 MB / 440 MB, free: 14.33 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000605/0.2415, allocations: 303.1 kB / 440.3 MB, free: 14.02 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000355/0.2418, allocations: 180.8 kB / 440.5 MB, free: 13.84 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.028e-05/0.2419, allocations: 8 kB / 440.5 MB, free: 13.83 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.111e-05/0.2419, allocations: 38.56 kB / 440.5 MB, free: 13.79 MB / 350.1 MB Notification: Performance of pre-optimization done (n=43): time 1.643e-06/0.2419, allocations: 0 / 440.5 MB, free: 13.79 MB / 350.1 MB Notification: Performance of matching and sorting (n=49): time 0.004445/0.2463, allocations: 1.695 MB / 442.2 MB, free: 12.03 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.175e-05/0.2464, allocations: 59.84 kB / 442.3 MB, free: 11.96 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002803/0.2467, allocations: 264.9 kB / 442.6 MB, free: 11.69 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.839e-05/0.2467, allocations: 45.62 kB / 442.6 MB, free: 11.64 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001057/0.2468, allocations: 153.1 kB / 442.8 MB, free: 11.49 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001483/0.247, allocations: 178.6 kB / 442.9 MB, free: 11.31 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001631/0.2472, allocations: 94.3 kB / 443 MB, free: 11.21 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001554/0.2473, allocations: 350.7 kB / 443.4 MB, free: 10.86 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003771/0.2477, allocations: 185.2 kB / 443.5 MB, free: 10.68 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004509/0.2481, allocations: 281.7 kB / 443.8 MB, free: 10.38 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006096/0.2487, allocations: 345.7 kB / 444.2 MB, free: 10.02 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.2487, allocations: 4 kB / 444.2 MB, free: 10.02 MB / 350.1 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001186/0.2499, allocations: 0.6068 MB / 444.8 MB, free: 9.398 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.633e-05/0.25, allocations: 8 kB / 444.8 MB, free: 9.391 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.842e-06/0.25, allocations: 0 / 444.8 MB, free: 9.391 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007173/0.2507, allocations: 341.6 kB / 445.1 MB, free: 9.051 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002587/0.2509, allocations: 71.91 kB / 445.2 MB, free: 8.98 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001394/0.2523, allocations: 1.366 MB / 446.5 MB, free: 7.562 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003959/0.2527, allocations: 71.84 kB / 446.6 MB, free: 7.492 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.075e-05/0.2528, allocations: 16 kB / 446.6 MB, free: 7.477 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 (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.0002018/0.253, allocations: 162.5 kB / 446.8 MB, free: 7.309 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.815e-05/0.2531, allocations: 39.7 kB / 446.8 MB, free: 7.27 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001177/0.2532, allocations: 55.61 kB / 446.9 MB, free: 7.211 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.16e-06/0.2532, allocations: 4.188 kB / 446.9 MB, free: 7.207 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.588e-06/0.2532, allocations: 0 / 446.9 MB, free: 7.207 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.398e-06/0.2532, allocations: 3.938 kB / 446.9 MB, free: 7.203 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00275/0.2559, allocations: 1.236 MB / 448.1 MB, free: 5.895 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.667e-06/0.2559, allocations: 0 / 448.1 MB, free: 5.895 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002705/0.2562, allocations: 67.89 kB / 448.2 MB, free: 5.828 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006021/0.2568, allocations: 297.6 kB / 448.5 MB, free: 5.531 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.741e-05/0.2569, allocations: 23.92 kB / 448.5 MB, free: 5.508 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001263/0.2581, allocations: 1.316 MB / 449.8 MB, free: 4.141 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.15e-06/0.2581, allocations: 3.938 kB / 449.8 MB, free: 4.137 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001734/0.2599, allocations: 0.9025 MB / 450.7 MB, free: 3.195 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000187/0.26, allocations: 87.67 kB / 450.8 MB, free: 3.109 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.814e-05/0.2601, allocations: 24.05 kB / 450.8 MB, free: 3.086 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002949/0.2604, allocations: 40.03 kB / 450.9 MB, free: 3.047 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001896/0.2606, allocations: 91.75 kB / 451 MB, free: 2.957 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.952e-05/0.2607, allocations: 19.98 kB / 451 MB, free: 2.938 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001869/0.2608, allocations: 184.5 kB / 451.2 MB, free: 2.758 MB / 350.1 MB Notification: Performance of sort global known variables: time 6e-08/0.2608, allocations: 0 / 451.2 MB, free: 2.758 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004255/0.2613, allocations: 96 kB / 451.3 MB, free: 2.664 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.003338/0.2646, allocations: 1.758 MB / 453 MB, free: 1.02 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001062/0.2657, allocations: 465.2 kB / 453.5 MB, free: 0.5625 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.2657, allocations: 0 / 453.5 MB, free: 0.5625 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005969/0.2663, allocations: 280.3 kB / 453.7 MB, free: 296 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005265/0.2668, allocations: 62.03 kB / 453.8 MB, free: 236 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006794/0.2736, allocations: 4.049 MB / 457.9 MB, free: 12.02 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001888/0.2738, allocations: 189.7 kB / 458 MB, free: 11.81 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001487/0.2739, allocations: 38.89 kB / 458.1 MB, free: 11.77 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001762/0.2741, allocations: 103.4 kB / 458.2 MB, free: 11.67 MB / 366.1 MB Notification: Performance of SimCode: time 7.62e-07/0.2741, allocations: 4 kB / 458.2 MB, free: 11.66 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03523/0.3093, allocations: 11.08 MB / 469.3 MB, free: 0.7148 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.35/12.66, allocations: 8 kB / 469.3 MB, free: 0.707 MB / 366.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Brake.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Brake.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Brake.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Brake.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Brake_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Mechanics_Translational_Examples_Brake_fmu --startTime=0 --stopTime=2 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Mechanics_Translational_Examples_Brake.fmu > Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Brake.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Brake_res.mat","/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_4.1.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.104960093041882]