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.001464/0.001464, allocations: 108.6 kB / 21.22 MB, free: 0.75 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.001775/0.001775, allocations: 192.8 kB / 24.5 MB, free: 4.02 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.378/1.378, allocations: 225.7 MB / 253.3 MB, free: 13.05 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Brake,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_Brake",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001452/0.001452, allocations: 47.92 kB / 371.2 MB, free: 9.902 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2526/0.254, allocations: 52.19 MB / 423.4 MB, free: 14.63 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.003598/0.2576, allocations: 2.469 MB / 425.9 MB, free: 12.14 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.000912/0.2585, allocations: 0.4953 MB / 426.4 MB, free: 11.65 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001045/0.2586, allocations: 7.938 kB / 426.4 MB, free: 11.64 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001876/0.2588, allocations: 43.58 kB / 426.4 MB, free: 11.6 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001482/0.259, allocations: 87.28 kB / 426.5 MB, free: 11.51 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004744/0.2594, allocations: 195.7 kB / 426.7 MB, free: 11.32 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004897/0.2599, allocations: 495 kB / 427.2 MB, free: 10.84 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000139/0.2601, allocations: 48.89 kB / 427.2 MB, free: 10.79 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002537/0.2603, allocations: 215.4 kB / 427.4 MB, free: 10.57 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000336/0.2607, allocations: 243.2 kB / 427.7 MB, free: 10.34 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.682e-05/0.2607, allocations: 36 kB / 427.7 MB, free: 10.3 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001625/0.2609, allocations: 91.95 kB / 427.8 MB, free: 10.21 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001144/0.261, allocations: 99.72 kB / 427.9 MB, free: 10.11 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001799/0.2612, allocations: 183.2 kB / 428.1 MB, free: 9.934 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005056/0.2617, allocations: 479 kB / 428.5 MB, free: 9.473 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.778e-06/0.2617, allocations: 0 / 428.5 MB, free: 9.473 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.082e-06/0.2617, allocations: 0 / 428.5 MB, free: 9.473 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.036e-05/0.2617, allocations: 0 / 428.5 MB, free: 9.473 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.00119/0.2629, allocations: 0.591 MB / 429.1 MB, free: 8.848 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.691e-05/0.2629, allocations: 8.031 kB / 429.1 MB, free: 8.84 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.622e-05/0.2629, allocations: 8.844 kB / 429.2 MB, free: 8.832 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.536e-05/0.263, allocations: 66.72 kB / 429.2 MB, free: 8.758 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.833e-05/0.2631, allocations: 44.7 kB / 429.3 MB, free: 8.715 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003547/0.2635, allocations: 226.9 kB / 429.5 MB, free: 8.469 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.476e-05/0.2635, allocations: 21.03 kB / 429.5 MB, free: 8.449 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.544e-05/0.2636, allocations: 24.38 kB / 429.5 MB, free: 8.426 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007/0.2643, allocations: 390.1 kB / 429.9 MB, free: 8.039 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.769e-05/0.2643, allocations: 7.938 kB / 429.9 MB, free: 8.031 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.83e-05/0.2643, allocations: 12 kB / 429.9 MB, free: 8.02 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.345e-05/0.2643, allocations: 7.984 kB / 429.9 MB, free: 8.012 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007694/0.2651, allocations: 410.4 kB / 430.3 MB, free: 7.613 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00189/0.267, allocations: 1.068 MB / 431.4 MB, free: 6.477 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005083/0.2675, allocations: 271.6 kB / 431.7 MB, free: 6.199 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003564/0.2679, allocations: 189.7 kB / 431.9 MB, free: 6.012 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.534e-05/0.2679, allocations: 4 kB / 431.9 MB, free: 6.008 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.665e-05/0.2679, allocations: 42.5 kB / 431.9 MB, free: 5.957 MB / 334.1 MB Notification: Performance of pre-optimization done (n=39): time 1.463e-06/0.2679, allocations: 0 / 431.9 MB, free: 5.957 MB / 334.1 MB Notification: Performance of matching and sorting (n=45): time 0.004346/0.2723, allocations: 1.727 MB / 433.6 MB, free: 4.168 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.601e-05/0.2723, allocations: 55.41 kB / 433.7 MB, free: 4.102 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002538/0.2726, allocations: 236.9 kB / 433.9 MB, free: 3.859 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.131e-05/0.2726, allocations: 37.7 kB / 433.9 MB, free: 3.816 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001216/0.2728, allocations: 157 kB / 434.1 MB, free: 3.66 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001462/0.2729, allocations: 170.6 kB / 434.3 MB, free: 3.492 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001753/0.2731, allocations: 102.1 kB / 434.4 MB, free: 3.387 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001545/0.2732, allocations: 342.8 kB / 434.7 MB, free: 3.043 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003942/0.2736, allocations: 204.9 kB / 434.9 MB, free: 2.844 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004443/0.2741, allocations: 284.2 kB / 435.2 MB, free: 2.543 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006454/0.2747, allocations: 377.7 kB / 435.6 MB, free: 2.148 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.2747, allocations: 0 / 435.6 MB, free: 2.148 MB / 334.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001441/0.2762, allocations: 0.6925 MB / 436.2 MB, free: 1.441 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.511e-05/0.2762, allocations: 4 kB / 436.2 MB, free: 1.438 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.861e-06/0.2762, allocations: 0 / 436.2 MB, free: 1.438 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008475/0.277, allocations: 497.6 kB / 436.7 MB, free: 0.9453 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002668/0.2773, allocations: 67.91 kB / 436.8 MB, free: 0.8789 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001305/0.2786, allocations: 1.39 MB / 438.2 MB, free: 15.44 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004035/0.279, allocations: 68.05 kB / 438.3 MB, free: 15.37 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.439e-05/0.2791, allocations: 19.98 kB / 438.3 MB, free: 15.35 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.0001945/0.2792, allocations: 166.9 kB / 438.4 MB, free: 15.18 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.634e-05/0.2793, allocations: 31.81 kB / 438.5 MB, free: 15.15 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000111/0.2794, allocations: 47.3 kB / 438.5 MB, free: 15.1 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.929e-06/0.2794, allocations: 8 kB / 438.5 MB, free: 15.09 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.08e-06/0.2794, allocations: 0 / 438.5 MB, free: 15.09 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.081e-06/0.2795, allocations: 3.984 kB / 438.5 MB, free: 15.09 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002666/0.2821, allocations: 1.311 MB / 439.8 MB, free: 13.7 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.613e-06/0.2821, allocations: 3.938 kB / 439.8 MB, free: 13.7 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002634/0.2824, allocations: 67.84 kB / 439.9 MB, free: 13.63 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007218/0.2831, allocations: 461.5 kB / 440.4 MB, free: 13.18 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.632e-05/0.2832, allocations: 24.03 kB / 440.4 MB, free: 13.15 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001218/0.2844, allocations: 1.347 MB / 441.7 MB, free: 11.75 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.833e-06/0.2844, allocations: 0 / 441.7 MB, free: 11.75 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001755/0.2861, allocations: 0.9329 MB / 442.7 MB, free: 10.79 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001689/0.2863, allocations: 83.72 kB / 442.7 MB, free: 10.7 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.89e-05/0.2864, allocations: 16 kB / 442.8 MB, free: 10.69 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002887/0.2867, allocations: 39.95 kB / 442.8 MB, free: 10.65 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001829/0.2868, allocations: 83.83 kB / 442.9 MB, free: 10.57 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.339e-05/0.2869, allocations: 19.98 kB / 442.9 MB, free: 10.55 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001634/0.287, allocations: 172.5 kB / 443.1 MB, free: 10.38 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.287, allocations: 0 / 443.1 MB, free: 10.38 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004214/0.2875, allocations: 100 kB / 443.2 MB, free: 10.28 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.002223/0.2897, allocations: 1.516 MB / 444.7 MB, free: 8.715 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001104/0.2908, allocations: 498.1 kB / 445.2 MB, free: 8.23 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.2908, allocations: 0 / 445.2 MB, free: 8.23 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005887/0.2914, allocations: 280 kB / 445.4 MB, free: 7.957 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004622/0.2918, allocations: 61.39 kB / 445.5 MB, free: 7.898 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006724/0.2986, allocations: 4.121 MB / 449.6 MB, free: 3.613 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003771/0.2989, allocations: 0.7801 MB / 450.4 MB, free: 2.805 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001281/0.2991, allocations: 30.97 kB / 450.4 MB, free: 2.777 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001514/0.2992, allocations: 95.39 kB / 450.5 MB, free: 2.684 MB / 350.1 MB Notification: Performance of SimCode: time 7.21e-07/0.2992, allocations: 0 / 450.5 MB, free: 2.684 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03742/0.3366, allocations: 12.22 MB / 462.7 MB, free: 6.641 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.11/12.45, allocations: 3.125 kB / 462.7 MB, free: 6.641 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: 14.87385238596471]