Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Mechanics_Translational_Examples_Brake",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Brake,fileNamePrefix="Modelica_3_2_3_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.001057/0.001057, allocations: 114.5 kB / 17.73 MB, free: 5.328 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.001055/0.001055, allocations: 187 kB / 18.66 MB, free: 4.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.315/1.315, allocations: 205.1 MB / 224.5 MB, free: 12.24 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001313/0.001313, allocations: 51.92 kB / 328 MB, free: 3.816 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08459/0.08591, allocations: 46.62 MB / 374.6 MB, free: 5.09 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.003837/0.08979, allocations: 2.427 MB / 377.1 MB, free: 2.645 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001122/0.09093, allocations: 0.4961 MB / 377.5 MB, free: 2.145 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002229/0.09118, allocations: 4 kB / 377.6 MB, free: 2.141 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002441/0.09146, allocations: 47.52 kB / 377.6 MB, free: 2.094 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002403/0.09172, allocations: 87.25 kB / 377.7 MB, free: 2.008 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006141/0.09234, allocations: 187.7 kB / 377.9 MB, free: 1.824 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006356/0.09299, allocations: 499.1 kB / 378.4 MB, free: 1.336 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002048/0.09321, allocations: 76.86 kB / 378.4 MB, free: 1.258 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003483/0.09357, allocations: 215.4 kB / 378.6 MB, free: 1.047 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003977/0.09398, allocations: 239.2 kB / 378.9 MB, free: 0.8125 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 9.309e-05/0.09408, allocations: 36 kB / 378.9 MB, free: 0.7773 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002108/0.0943, allocations: 95.86 kB / 379 MB, free: 0.6836 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00014/0.09445, allocations: 95.72 kB / 379.1 MB, free: 0.5898 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000204/0.09466, allocations: 183.1 kB / 379.3 MB, free: 420 kB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1669/0.2615, allocations: 458.6 kB / 379.7 MB, free: 10.21 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.693e-06/0.2616, allocations: 0.9062 kB / 379.7 MB, free: 10.21 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.903e-06/0.2616, allocations: 0 / 379.7 MB, free: 10.21 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.883e-05/0.2616, allocations: 0 / 379.7 MB, free: 10.21 MB / 318.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.001161/0.2628, allocations: 0.6596 MB / 380.4 MB, free: 9.773 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.856e-05/0.2628, allocations: 14.5 kB / 380.4 MB, free: 9.773 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.867e-05/0.2629, allocations: 64.7 kB / 380.5 MB, free: 9.734 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.819e-05/0.263, allocations: 33.12 kB / 380.5 MB, free: 9.719 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003372/0.2633, allocations: 288.3 kB / 380.8 MB, free: 9.496 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.286e-05/0.2634, allocations: 19.94 kB / 380.8 MB, free: 9.496 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.833e-05/0.2635, allocations: 29.23 kB / 380.8 MB, free: 9.496 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006498/0.2641, allocations: 382.5 kB / 381.2 MB, free: 9.461 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.77e-05/0.2641, allocations: 8 kB / 381.2 MB, free: 9.457 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.784e-05/0.2642, allocations: 10.16 kB / 381.2 MB, free: 9.457 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.576e-06/0.2642, allocations: 6.25 kB / 381.2 MB, free: 9.457 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007118/0.2649, allocations: 404.1 kB / 381.6 MB, free: 9.453 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00183/0.2668, allocations: 1.091 MB / 382.7 MB, free: 9.012 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005496/0.2673, allocations: 303.9 kB / 383 MB, free: 8.984 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003216/0.2676, allocations: 200.9 kB / 383.2 MB, free: 8.977 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.564e-05/0.2677, allocations: 4.188 kB / 383.2 MB, free: 8.977 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.137e-05/0.2677, allocations: 33.23 kB / 383.2 MB, free: 8.938 MB / 318.1 MB Notification: Performance of pre-optimization done (n=39): time 1.853e-06/0.2677, allocations: 0 / 383.2 MB, free: 8.938 MB / 318.1 MB Notification: Performance of matching and sorting (n=45): time 0.004124/0.2719, allocations: 2.038 MB / 385.3 MB, free: 8.113 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.818e-05/0.2719, allocations: 56.09 kB / 385.3 MB, free: 8.051 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000228/0.2721, allocations: 241.3 kB / 385.6 MB, free: 7.902 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.206e-05/0.2722, allocations: 40.55 kB / 385.6 MB, free: 7.863 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.414e-05/0.2723, allocations: 154.2 kB / 385.8 MB, free: 7.73 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001034/0.2724, allocations: 155.4 kB / 385.9 MB, free: 7.613 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000154/0.2725, allocations: 100.1 kB / 386 MB, free: 7.562 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.667e-05/0.2726, allocations: 345.5 kB / 386.3 MB, free: 7.23 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003569/0.273, allocations: 206.4 kB / 386.5 MB, free: 7.16 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004052/0.2734, allocations: 286.8 kB / 386.8 MB, free: 7.008 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005513/0.2739, allocations: 379.9 kB / 387.2 MB, free: 6.824 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.315e-06/0.274, allocations: 1.062 kB / 387.2 MB, free: 6.824 MB / 318.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001321/0.2753, allocations: 0.6918 MB / 387.9 MB, free: 6.559 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.685e-05/0.2753, allocations: 4.938 kB / 387.9 MB, free: 6.559 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.294e-06/0.2753, allocations: 3.25 kB / 387.9 MB, free: 6.559 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007732/0.2761, allocations: 499.9 kB / 388.4 MB, free: 6.426 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002801/0.2764, allocations: 78.78 kB / 388.5 MB, free: 6.418 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009762/0.2774, allocations: 1.387 MB / 389.8 MB, free: 5.246 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003875/0.2778, allocations: 69.8 kB / 389.9 MB, free: 5.234 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.082e-05/0.2778, allocations: 19.91 kB / 389.9 MB, free: 5.23 MB / 318.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.0001551/0.278, allocations: 164.7 kB / 390.1 MB, free: 5.082 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.131e-05/0.2781, allocations: 28.09 kB / 390.1 MB, free: 5.07 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.533e-05/0.2782, allocations: 53.58 kB / 390.2 MB, free: 5.027 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.301e-06/0.2782, allocations: 6.594 kB / 390.2 MB, free: 5.027 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.025e-06/0.2782, allocations: 5.062 kB / 390.2 MB, free: 5.023 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.763e-06/0.2782, allocations: 2.344 kB / 390.2 MB, free: 5.023 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002523/0.2807, allocations: 1.356 MB / 391.5 MB, free: 4.344 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.651e-06/0.2808, allocations: 1.766 kB / 391.5 MB, free: 4.344 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002603/0.281, allocations: 66.03 kB / 391.6 MB, free: 4.336 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006478/0.2817, allocations: 460.9 kB / 392.1 MB, free: 4.219 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.332e-05/0.2817, allocations: 22.58 kB / 392.1 MB, free: 4.211 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008166/0.2826, allocations: 1.336 MB / 393.4 MB, free: 3.066 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.705e-06/0.2826, allocations: 2.406 kB / 393.4 MB, free: 3.066 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001552/0.2841, allocations: 0.9408 MB / 394.4 MB, free: 2.598 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000153/0.2843, allocations: 154.9 kB / 394.5 MB, free: 2.469 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.426e-05/0.2844, allocations: 19.42 kB / 394.5 MB, free: 2.457 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002836/0.2847, allocations: 43.5 kB / 394.6 MB, free: 2.445 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001605/0.2848, allocations: 82.44 kB / 394.7 MB, free: 2.434 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.424e-05/0.2849, allocations: 21.61 kB / 394.7 MB, free: 2.43 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001244/0.285, allocations: 172.3 kB / 394.8 MB, free: 2.328 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.285, allocations: 0 / 394.8 MB, free: 2.328 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0004469/0.2855, allocations: 104.5 kB / 394.9 MB, free: 2.312 MB / 318.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.001823/0.2873, allocations: 1.512 MB / 396.5 MB, free: 1.312 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.000959/0.2883, allocations: 0.5171 MB / 397 MB, free: 1.141 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.287e-06/0.2883, allocations: 1.5 kB / 397 MB, free: 1.141 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005262/0.2888, allocations: 297.4 kB / 397.3 MB, free: 1.047 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004682/0.2893, allocations: 57.69 kB / 397.3 MB, free: 1.023 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006306/0.2956, allocations: 4.119 MB / 401.4 MB, free: 14.52 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003357/0.296, allocations: 0.781 MB / 402.2 MB, free: 13.82 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001358/0.2961, allocations: 32.92 kB / 402.3 MB, free: 13.81 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001431/0.2962, allocations: 97.08 kB / 402.4 MB, free: 13.75 MB / 334.1 MB Notification: Performance of SimCode: time 8.32e-07/0.2963, allocations: 0 / 402.4 MB, free: 13.75 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03661/0.3329, allocations: 12.03 MB / 414.4 MB, free: 6.801 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.16/11.49, allocations: 7.938 kB / 414.4 MB, free: 6.793 MB / 334.1 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_Brake_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_Brake.fmu > Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Translational/Examples/Brake/Brake.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches