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.00131/0.00131, allocations: 113.4 kB / 17.73 MB, free: 5.355 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.001325/0.001325, allocations: 184.1 kB / 18.66 MB, free: 4.434 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.398/1.398, 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.001639/0.001639, allocations: 63.89 kB / 328 MB, free: 3.824 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0951/0.09675, allocations: 46.61 MB / 374.6 MB, free: 5.102 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.00361/0.1004, allocations: 2.431 MB / 377.1 MB, free: 2.652 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009884/0.1014, allocations: 500 kB / 377.6 MB, free: 2.16 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001133/0.1016, allocations: 4 kB / 377.6 MB, free: 2.156 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002137/0.1018, allocations: 55.5 kB / 377.6 MB, free: 2.102 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001643/0.102, allocations: 83.27 kB / 377.7 MB, free: 2.02 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004874/0.1025, allocations: 195.7 kB / 377.9 MB, free: 1.828 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005233/0.103, allocations: 491.1 kB / 378.4 MB, free: 1.348 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001905/0.1032, allocations: 80.66 kB / 378.4 MB, free: 1.266 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002495/0.1034, allocations: 207.4 kB / 378.6 MB, free: 1.062 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000346/0.1038, allocations: 239.2 kB / 378.9 MB, free: 0.8281 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.027e-05/0.1039, allocations: 36 kB / 378.9 MB, free: 0.793 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001845/0.1041, allocations: 91.89 kB / 379 MB, free: 0.7031 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001325/0.1042, allocations: 99.7 kB / 379.1 MB, free: 0.6055 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001966/0.1044, allocations: 179.2 kB / 379.3 MB, free: 440 kB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1759/0.2803, allocations: 467.9 kB / 379.7 MB, free: 10.31 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.634e-06/0.2804, allocations: 0.8438 kB / 379.7 MB, free: 10.31 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.2804, allocations: 0 / 379.7 MB, free: 10.31 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.707e-05/0.2804, allocations: 1.031 kB / 379.7 MB, free: 10.31 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.001286/0.2817, allocations: 0.6678 MB / 380.4 MB, free: 9.855 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.26e-05/0.2818, allocations: 9.625 kB / 380.4 MB, free: 9.855 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.425e-05/0.2819, allocations: 63.66 kB / 380.5 MB, free: 9.816 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.55e-05/0.282, allocations: 42.64 kB / 380.5 MB, free: 9.797 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003562/0.2823, allocations: 283.2 kB / 380.8 MB, free: 9.574 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.707e-05/0.2824, allocations: 22.75 kB / 380.8 MB, free: 9.574 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.116e-05/0.2824, allocations: 34.31 kB / 380.8 MB, free: 9.57 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006658/0.2831, allocations: 374.8 kB / 381.2 MB, free: 9.535 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.119e-05/0.2831, allocations: 5.594 kB / 381.2 MB, free: 9.531 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.558e-05/0.2832, allocations: 11.81 kB / 381.2 MB, free: 9.531 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.079e-05/0.2832, allocations: 11.34 kB / 381.2 MB, free: 9.531 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007215/0.2839, allocations: 401.8 kB / 381.6 MB, free: 9.527 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001863/0.2858, allocations: 1.094 MB / 382.7 MB, free: 9.09 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005798/0.2864, allocations: 303.8 kB / 383 MB, free: 9.062 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003275/0.2867, allocations: 197 kB / 383.2 MB, free: 9.055 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.027e-05/0.2868, allocations: 8.188 kB / 383.2 MB, free: 9.055 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.018e-05/0.2868, allocations: 32.94 kB / 383.3 MB, free: 9.016 MB / 318.1 MB Notification: Performance of pre-optimization done (n=39): time 1.533e-06/0.2868, allocations: 0 / 383.3 MB, free: 9.016 MB / 318.1 MB Notification: Performance of matching and sorting (n=45): time 0.004226/0.291, allocations: 2.048 MB / 385.3 MB, free: 8.172 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.442e-05/0.2911, allocations: 64.22 kB / 385.4 MB, free: 8.105 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002053/0.2913, allocations: 232.1 kB / 385.6 MB, free: 7.965 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.004e-05/0.2913, allocations: 41.11 kB / 385.6 MB, free: 7.926 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.599e-05/0.2914, allocations: 152 kB / 385.8 MB, free: 7.789 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001004/0.2915, allocations: 162.2 kB / 385.9 MB, free: 7.672 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001602/0.2917, allocations: 96.34 kB / 386 MB, free: 7.621 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.332e-05/0.2918, allocations: 342.9 kB / 386.4 MB, free: 7.293 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003707/0.2921, allocations: 213.8 kB / 386.6 MB, free: 7.215 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004084/0.2926, allocations: 280.3 kB / 386.9 MB, free: 7.066 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000572/0.2931, allocations: 382.5 kB / 387.2 MB, free: 6.879 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.854e-06/0.2931, allocations: 0 / 387.2 MB, free: 6.879 MB / 318.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001344/0.2945, allocations: 0.6932 MB / 387.9 MB, free: 6.613 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.863e-05/0.2945, allocations: 6.781 kB / 387.9 MB, free: 6.613 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.154e-06/0.2945, allocations: 2.188 kB / 387.9 MB, free: 6.613 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000841/0.2954, allocations: 498 kB / 388.4 MB, free: 6.48 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002864/0.2957, allocations: 74.83 kB / 388.5 MB, free: 6.477 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001132/0.2968, allocations: 1.396 MB / 389.9 MB, free: 5.297 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004372/0.2973, allocations: 65.23 kB / 389.9 MB, free: 5.289 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.981e-05/0.2973, allocations: 23.77 kB / 390 MB, free: 5.281 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.0001767/0.2975, allocations: 172.2 kB / 390.1 MB, free: 5.129 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.775e-05/0.2976, allocations: 31.22 kB / 390.2 MB, free: 5.113 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001128/0.2977, allocations: 47.89 kB / 390.2 MB, free: 5.074 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.955e-06/0.2977, allocations: 5.219 kB / 390.2 MB, free: 5.074 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.057e-05/0.2978, allocations: 0 / 390.2 MB, free: 5.074 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.947e-06/0.2978, allocations: 3.391 kB / 390.2 MB, free: 5.074 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002737/0.3005, allocations: 1.359 MB / 391.6 MB, free: 4.395 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.14e-06/0.3005, allocations: 1.812 kB / 391.6 MB, free: 4.395 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000275/0.3008, allocations: 73.58 kB / 391.7 MB, free: 4.383 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008414/0.3017, allocations: 461.5 kB / 392.1 MB, free: 4.262 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.418e-05/0.3017, allocations: 20.16 kB / 392.1 MB, free: 4.254 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009146/0.3026, allocations: 1.336 MB / 393.5 MB, free: 3.109 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.145e-06/0.3026, allocations: 6.156 kB / 393.5 MB, free: 3.105 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001604/0.3043, allocations: 0.9456 MB / 394.4 MB, free: 2.633 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001342/0.3044, allocations: 151.1 kB / 394.6 MB, free: 2.508 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.932e-05/0.3045, allocations: 28.95 kB / 394.6 MB, free: 2.492 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002726/0.3048, allocations: 36.67 kB / 394.6 MB, free: 2.484 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001772/0.3049, allocations: 84.56 kB / 394.7 MB, free: 2.469 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.263e-05/0.305, allocations: 22.86 kB / 394.7 MB, free: 2.465 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.000148/0.3051, allocations: 166.1 kB / 394.9 MB, free: 2.367 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3051, allocations: 0 / 394.9 MB, free: 2.367 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0004371/0.3056, allocations: 110.5 kB / 395 MB, free: 2.348 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.001886/0.3075, allocations: 1.513 MB / 396.5 MB, free: 1.348 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0009956/0.3085, allocations: 0.5178 MB / 397 MB, free: 1.18 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.896e-06/0.3085, allocations: 5.25 kB / 397 MB, free: 1.176 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005382/0.309, allocations: 293.8 kB / 397.3 MB, free: 1.086 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004563/0.3095, allocations: 48.56 kB / 397.4 MB, free: 1.066 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00649/0.316, allocations: 4.138 MB / 401.5 MB, free: 14.54 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004593/0.3165, allocations: 0.7778 MB / 402.3 MB, free: 13.84 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001498/0.3167, allocations: 36.34 kB / 402.3 MB, free: 13.83 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001643/0.3168, allocations: 92.61 kB / 402.4 MB, free: 13.77 MB / 334.1 MB Notification: Performance of SimCode: time 2.7e-07/0.3168, allocations: 0 / 402.4 MB, free: 13.77 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03883/0.3557, allocations: 11.68 MB / 414.1 MB, free: 7.164 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.62/11.97, allocations: 0 / 414.1 MB, free: 7.164 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