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.001476/0.001476, allocations: 122.2 kB / 18.5 MB, free: 4.562 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.001749/0.001749, allocations: 215.1 kB / 21.45 MB, free: 1.617 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.455/1.455, allocations: 230.6 MB / 254.8 MB, free: 15.1 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.001511/0.001511, allocations: 47.94 kB / 373.7 MB, free: 10.22 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1098/0.1113, allocations: 53.33 MB / 427 MB, free: 4.797 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.004145/0.1154, allocations: 2.587 MB / 429.6 MB, free: 2.195 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00115/0.1166, allocations: 0.5732 MB / 430.2 MB, free: 1.621 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001213/0.1167, allocations: 8 kB / 430.2 MB, free: 1.613 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003054/0.117, allocations: 63.44 kB / 430.2 MB, free: 1.551 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003019/0.1173, allocations: 139 kB / 430.4 MB, free: 1.414 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003174/0.1176, allocations: 167.7 kB / 430.5 MB, free: 1.25 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005581/0.1182, allocations: 0.5069 MB / 431 MB, free: 0.7383 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001655/0.1184, allocations: 52.67 kB / 431.1 MB, free: 0.6836 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002675/0.1186, allocations: 231.4 kB / 431.3 MB, free: 468 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003406/0.119, allocations: 255.1 kB / 431.6 MB, free: 212 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.898e-05/0.119, allocations: 40 kB / 431.6 MB, free: 172 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000192/0.1192, allocations: 99.91 kB / 431.7 MB, free: 72 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.2057/0.3249, allocations: 106.8 kB / 431.8 MB, free: 8.105 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003025/0.3252, allocations: 194.1 kB / 432 MB, free: 8.098 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006987/0.3259, allocations: 0.5005 MB / 432.5 MB, free: 8.031 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.54e-06/0.3259, allocations: 4.938 kB / 432.5 MB, free: 8.031 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.3259, allocations: 0.9688 kB / 432.5 MB, free: 8.031 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.755e-06/0.3259, allocations: 0 / 432.5 MB, free: 8.031 MB / 350.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.001375/0.3273, allocations: 0.7173 MB / 433.2 MB, free: 7.539 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.207e-05/0.3273, allocations: 11.44 kB / 433.2 MB, free: 7.539 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.621e-05/0.3274, allocations: 10.31 kB / 433.2 MB, free: 7.539 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.65e-05/0.3275, allocations: 65.64 kB / 433.3 MB, free: 7.5 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001046/0.3276, allocations: 38.92 kB / 433.3 MB, free: 7.48 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004151/0.328, allocations: 298.5 kB / 433.6 MB, free: 7.258 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.232e-05/0.328, allocations: 24.12 kB / 433.7 MB, free: 7.258 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.172e-05/0.3281, allocations: 28.59 kB / 433.7 MB, free: 7.258 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006827/0.3288, allocations: 383.4 kB / 434.1 MB, free: 7.215 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.922e-05/0.3288, allocations: 3.953 kB / 434.1 MB, free: 7.211 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.278e-05/0.3288, allocations: 14.22 kB / 434.1 MB, free: 7.211 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.044e-05/0.3288, allocations: 10.94 kB / 434.1 MB, free: 7.211 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007234/0.3296, allocations: 387.2 kB / 434.5 MB, free: 7.211 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001814/0.3314, allocations: 1.129 MB / 435.6 MB, free: 6.766 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005958/0.332, allocations: 312.3 kB / 435.9 MB, free: 6.734 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003534/0.3323, allocations: 177.9 kB / 436.1 MB, free: 6.727 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.898e-05/0.3324, allocations: 6.531 kB / 436.1 MB, free: 6.727 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.563e-05/0.3324, allocations: 48.33 kB / 436.1 MB, free: 6.684 MB / 350.1 MB Notification: Performance of pre-optimization done (n=43): time 1.843e-06/0.3324, allocations: 0 / 436.1 MB, free: 6.684 MB / 350.1 MB Notification: Performance of matching and sorting (n=49): time 0.004619/0.337, allocations: 2 MB / 438.1 MB, free: 5.914 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.383e-05/0.337, allocations: 61.09 kB / 438.2 MB, free: 5.848 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002576/0.3373, allocations: 253.4 kB / 438.4 MB, free: 5.699 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.395e-05/0.3373, allocations: 40.11 kB / 438.5 MB, free: 5.66 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.768e-05/0.3374, allocations: 159.2 kB / 438.6 MB, free: 5.52 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001155/0.3375, allocations: 180.7 kB / 438.8 MB, free: 5.387 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001507/0.3377, allocations: 93.62 kB / 438.9 MB, free: 5.336 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.219e-05/0.3377, allocations: 343.9 kB / 439.2 MB, free: 5.008 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003642/0.3381, allocations: 191.6 kB / 439.4 MB, free: 4.934 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003973/0.3385, allocations: 272.9 kB / 439.7 MB, free: 4.781 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005782/0.3391, allocations: 349.7 kB / 440 MB, free: 4.586 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.3391, allocations: 5.438 kB / 440 MB, free: 4.582 MB / 350.1 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001126/0.3402, allocations: 0.6071 MB / 440.6 MB, free: 4.316 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.032e-05/0.3402, allocations: 10.52 kB / 440.7 MB, free: 4.312 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.013e-06/0.3402, allocations: 1.094 kB / 440.7 MB, free: 4.312 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007106/0.341, allocations: 341 kB / 441 MB, free: 4.191 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002682/0.3412, allocations: 66.88 kB / 441.1 MB, free: 4.191 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001029/0.3423, allocations: 1.366 MB / 442.4 MB, free: 3.004 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004717/0.3427, allocations: 71.02 kB / 442.5 MB, free: 2.992 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.98e-05/0.3428, allocations: 19.02 kB / 442.5 MB, free: 2.988 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.0001814/0.343, allocations: 164.8 kB / 442.7 MB, free: 2.844 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.455e-05/0.343, allocations: 36.64 kB / 442.7 MB, free: 2.824 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001254/0.3432, allocations: 51.69 kB / 442.8 MB, free: 2.785 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.122e-06/0.3432, allocations: 6.812 kB / 442.8 MB, free: 2.785 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.997e-06/0.3432, allocations: 0.7031 kB / 442.8 MB, free: 2.785 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.193e-06/0.3432, allocations: 2.672 kB / 442.8 MB, free: 2.785 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002799/0.346, allocations: 1.33 MB / 444.1 MB, free: 2.086 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.653e-06/0.346, allocations: 2.594 kB / 444.1 MB, free: 2.086 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002768/0.3463, allocations: 69.27 kB / 444.2 MB, free: 2.078 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006297/0.3469, allocations: 308 kB / 444.5 MB, free: 1.973 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.975e-05/0.347, allocations: 22.75 kB / 444.5 MB, free: 1.961 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00101/0.348, allocations: 1.313 MB / 445.8 MB, free: 0.8047 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.979e-06/0.348, allocations: 5.969 kB / 445.8 MB, free: 0.8008 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001641/0.3496, allocations: 0.909 MB / 446.7 MB, free: 320 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001756/0.3498, allocations: 158.5 kB / 446.9 MB, free: 184 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.278e-05/0.3499, allocations: 15.48 kB / 446.9 MB, free: 176 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003085/0.3502, allocations: 43.06 kB / 446.9 MB, free: 164 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002162/0.3504, allocations: 94.17 kB / 447 MB, free: 144 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.58e-05/0.3504, allocations: 20.23 kB / 447 MB, free: 140 kB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000235/0.3507, allocations: 184.8 kB / 447.2 MB, free: 32 kB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3507, allocations: 0 / 447.2 MB, free: 32 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005192/0.3512, allocations: 95.67 kB / 447.3 MB, free: 20 kB / 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.003446/0.3546, allocations: 1.719 MB / 449 MB, free: 14.94 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001108/0.3557, allocations: 469 kB / 449.5 MB, free: 14.79 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.878e-06/0.3557, allocations: 0 / 449.5 MB, free: 14.79 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006238/0.3564, allocations: 280.9 kB / 449.8 MB, free: 14.69 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005498/0.3569, allocations: 72.02 kB / 449.8 MB, free: 14.66 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007529/0.3644, allocations: 4.06 MB / 453.9 MB, free: 12.1 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000432/0.3649, allocations: 0.7864 MB / 454.7 MB, free: 11.4 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001729/0.365, allocations: 40.67 kB / 454.7 MB, free: 11.39 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001857/0.3652, allocations: 105.9 kB / 454.8 MB, free: 11.32 MB / 366.1 MB Notification: Performance of SimCode: time 6.01e-07/0.3652, allocations: 0 / 454.8 MB, free: 11.32 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0355/0.4007, allocations: 11.95 MB / 466.8 MB, free: 6.438 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.71/12.11, allocations: 2.531 kB / 466.8 MB, free: 6.438 MB / 366.1 MB " [Timeout remaining time 648] (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: 14.679475962999277]