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) 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 4.0.0+maint.om/package.mo", uses=false) 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Brake,fileNamePrefix="Modelica_4_0_0_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.001496/0.001496, allocations: 107.9 kB / 17.06 MB, free: 6.004 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.001217/0.001217, allocations: 189.4 kB / 18 MB, free: 5.09 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.321/1.321, allocations: 222.9 MB / 241.7 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001404/0.001404, allocations: 51.92 kB / 350.8 MB, free: 3.77 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2308/0.2322, allocations: 49.42 MB / 400.2 MB, free: 8.426 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.003503/0.2357, allocations: 2.46 MB / 402.7 MB, free: 6.367 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009534/0.2367, allocations: 495.3 kB / 403.2 MB, free: 5.883 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001207/0.2368, allocations: 7.938 kB / 403.2 MB, free: 5.875 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002097/0.2371, allocations: 43.58 kB / 403.2 MB, free: 5.832 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000166/0.2372, allocations: 87.28 kB / 403.3 MB, free: 5.746 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004388/0.2377, allocations: 195.6 kB / 403.5 MB, free: 5.555 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004584/0.2382, allocations: 491.1 kB / 404 MB, free: 5.074 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001586/0.2383, allocations: 64.7 kB / 404 MB, free: 5.008 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000227/0.2386, allocations: 215.4 kB / 404.2 MB, free: 4.797 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002967/0.2389, allocations: 239.2 kB / 404.5 MB, free: 4.562 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.554e-05/0.2389, allocations: 36 kB / 404.5 MB, free: 4.527 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001608/0.2391, allocations: 83.95 kB / 404.6 MB, free: 4.445 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001179/0.2392, allocations: 99.7 kB / 404.7 MB, free: 4.348 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001805/0.2394, allocations: 183.2 kB / 404.9 MB, free: 4.168 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005212/0.2399, allocations: 473.3 kB / 405.3 MB, free: 3.707 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.008e-06/0.24, allocations: 4 kB / 405.3 MB, free: 3.703 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.24, allocations: 0 / 405.3 MB, free: 3.703 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.302e-06/0.24, allocations: 0 / 405.3 MB, free: 3.703 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.001239/0.2412, allocations: 0.6662 MB / 406 MB, free: 2.984 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.806e-05/0.2413, allocations: 11.89 kB / 406 MB, free: 2.973 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.385e-05/0.2413, allocations: 66.72 kB / 406.1 MB, free: 2.898 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.886e-05/0.2414, allocations: 40.7 kB / 406.1 MB, free: 2.859 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003623/0.2418, allocations: 292.6 kB / 406.4 MB, free: 2.535 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.109e-05/0.2418, allocations: 20.94 kB / 406.4 MB, free: 2.516 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.45e-05/0.2419, allocations: 28.38 kB / 406.4 MB, free: 2.488 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006741/0.2426, allocations: 377.2 kB / 406.8 MB, free: 2.113 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.198e-05/0.2426, allocations: 7.938 kB / 406.8 MB, free: 2.105 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.821e-05/0.2427, allocations: 12 kB / 406.8 MB, free: 2.094 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.112e-05/0.2427, allocations: 8 kB / 406.8 MB, free: 2.086 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007577/0.2434, allocations: 405.9 kB / 407.2 MB, free: 1.691 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001838/0.2453, allocations: 1.108 MB / 408.3 MB, free: 0.5039 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005099/0.2458, allocations: 299.3 kB / 408.6 MB, free: 208 kB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003477/0.2462, allocations: 201.8 kB / 408.8 MB, free: 4 kB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.549e-05/0.2462, allocations: 8.047 kB / 408.8 MB, free: 15.99 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.452e-05/0.2463, allocations: 38.44 kB / 408.9 MB, free: 15.95 MB / 334.1 MB Notification: Performance of pre-optimization done (n=39): time 1.553e-06/0.2463, allocations: 0 / 408.9 MB, free: 15.95 MB / 334.1 MB Notification: Performance of matching and sorting (n=45): time 0.004488/0.2508, allocations: 2.03 MB / 410.9 MB, free: 13.78 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.246e-05/0.2508, allocations: 55.41 kB / 411 MB, free: 13.71 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002434/0.2511, allocations: 245 kB / 411.2 MB, free: 13.47 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.121e-05/0.2511, allocations: 41.7 kB / 411.2 MB, free: 13.42 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000105/0.2512, allocations: 157 kB / 411.4 MB, free: 13.27 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001367/0.2514, allocations: 162.7 kB / 411.6 MB, free: 13.11 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001626/0.2516, allocations: 98.12 kB / 411.6 MB, free: 13 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001478/0.2517, allocations: 342.8 kB / 412 MB, free: 12.66 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003889/0.2521, allocations: 205 kB / 412.2 MB, free: 12.46 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004471/0.2526, allocations: 288.8 kB / 412.5 MB, free: 12.15 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006505/0.2532, allocations: 377.7 kB / 412.8 MB, free: 11.76 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.2532, allocations: 0 / 412.8 MB, free: 11.76 MB / 334.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001437/0.2547, allocations: 0.7004 MB / 413.5 MB, free: 11.05 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.867e-05/0.2547, allocations: 7.984 kB / 413.5 MB, free: 11.04 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.975e-06/0.2547, allocations: 4 kB / 413.5 MB, free: 11.04 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008766/0.2556, allocations: 485.5 kB / 414 MB, free: 10.55 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002857/0.2559, allocations: 79.89 kB / 414.1 MB, free: 10.48 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001289/0.2572, allocations: 1.386 MB / 415.5 MB, free: 9.039 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004002/0.2576, allocations: 63.92 kB / 415.5 MB, free: 8.977 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.432e-05/0.2577, allocations: 19.98 kB / 415.6 MB, free: 8.957 MB / 334.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.0001928/0.2579, allocations: 174.3 kB / 415.7 MB, free: 8.777 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.268e-05/0.2579, allocations: 31.81 kB / 415.8 MB, free: 8.746 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001102/0.2581, allocations: 47.3 kB / 415.8 MB, free: 8.699 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.977e-06/0.2581, allocations: 7.984 kB / 415.8 MB, free: 8.691 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.923e-06/0.2581, allocations: 0 / 415.8 MB, free: 8.691 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.993e-06/0.2581, allocations: 3.984 kB / 415.8 MB, free: 8.688 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002746/0.2608, allocations: 1.342 MB / 417.2 MB, free: 7.27 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.306e-06/0.2609, allocations: 0 / 417.2 MB, free: 7.27 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002695/0.2611, allocations: 67.84 kB / 417.2 MB, free: 7.203 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007456/0.2619, allocations: 461.5 kB / 417.7 MB, free: 6.746 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.434e-05/0.262, allocations: 23.97 kB / 417.7 MB, free: 6.723 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001228/0.2632, allocations: 1.335 MB / 419 MB, free: 5.336 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.914e-06/0.2632, allocations: 0 / 419 MB, free: 5.336 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001786/0.265, allocations: 0.9484 MB / 420 MB, free: 4.348 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001917/0.2652, allocations: 156.9 kB / 420.1 MB, free: 4.176 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.286e-05/0.2653, allocations: 19.94 kB / 420.2 MB, free: 4.156 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000286/0.2656, allocations: 39.95 kB / 420.2 MB, free: 4.117 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000228/0.2658, allocations: 79.86 kB / 420.3 MB, free: 4.039 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.272e-05/0.2659, allocations: 27.92 kB / 420.3 MB, free: 4.012 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001679/0.266, allocations: 172.5 kB / 420.5 MB, free: 3.844 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.266, allocations: 0 / 420.5 MB, free: 3.844 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004281/0.2665, allocations: 107.9 kB / 420.6 MB, free: 3.738 MB / 334.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.00226/0.2687, allocations: 1.53 MB / 422.1 MB, free: 2.16 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001095/0.2699, allocations: 0.5099 MB / 422.6 MB, free: 1.652 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.2699, allocations: 0 / 422.6 MB, free: 1.652 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005997/0.2705, allocations: 296.2 kB / 422.9 MB, free: 1.363 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004793/0.271, allocations: 52.55 kB / 423 MB, free: 1.312 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006652/0.2776, allocations: 4.127 MB / 427.1 MB, free: 13.02 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003809/0.278, allocations: 0.78 MB / 427.9 MB, free: 12.21 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000133/0.2782, allocations: 38.95 kB / 427.9 MB, free: 12.18 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001502/0.2783, allocations: 99.39 kB / 428 MB, free: 12.08 MB / 350.1 MB Notification: Performance of SimCode: time 3.8e-07/0.2783, allocations: 4 kB / 428 MB, free: 12.07 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03935/0.3177, allocations: 11.67 MB / 439.7 MB, free: 0.5547 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.35/11.67, allocations: 3.938 kB / 439.7 MB, free: 0.5508 MB / 350.1 MB (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 --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) 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) Reference file matches