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.00174/0.00174, allocations: 108.5 kB / 17.06 MB, free: 6.016 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.001894/0.001894, allocations: 192 kB / 18 MB, free: 5.098 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.297/1.297, allocations: 222.9 MB / 241.7 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0008988/0.0008988, allocations: 35.94 kB / 350.8 MB, free: 3.789 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2314/0.2323, allocations: 49.45 MB / 400.2 MB, free: 8.566 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.003821/0.2361, allocations: 2.44 MB / 402.7 MB, free: 6.52 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001195/0.2374, allocations: 499.3 kB / 403.1 MB, free: 6.031 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002455/0.2376, allocations: 7.938 kB / 403.2 MB, free: 6.023 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002514/0.2379, allocations: 43.58 kB / 403.2 MB, free: 5.98 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002696/0.2382, allocations: 83.27 kB / 403.3 MB, free: 5.898 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005697/0.2388, allocations: 199.6 kB / 403.5 MB, free: 5.703 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005349/0.2393, allocations: 487.1 kB / 403.9 MB, free: 5.227 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001676/0.2395, allocations: 64.69 kB / 404 MB, free: 5.16 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002992/0.2398, allocations: 219.3 kB / 404.2 MB, free: 4.945 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003374/0.2402, allocations: 239.2 kB / 404.5 MB, free: 4.711 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.488e-05/0.2403, allocations: 40 kB / 404.5 MB, free: 4.672 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001832/0.2404, allocations: 87.95 kB / 404.6 MB, free: 4.586 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001123/0.2406, allocations: 103.7 kB / 404.7 MB, free: 4.484 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001829/0.2408, allocations: 179.2 kB / 404.9 MB, free: 4.309 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005302/0.2413, allocations: 468.1 kB / 405.3 MB, free: 3.852 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.2413, allocations: 0 / 405.3 MB, free: 3.852 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.2413, allocations: 0 / 405.3 MB, free: 3.852 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.189e-05/0.2413, allocations: 0 / 405.3 MB, free: 3.852 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.001357/0.2427, allocations: 0.6627 MB / 406 MB, free: 3.137 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.578e-05/0.2427, allocations: 8.031 kB / 406 MB, free: 3.129 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.737e-05/0.2428, allocations: 66.72 kB / 406.1 MB, free: 3.055 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.649e-05/0.2429, allocations: 40.47 kB / 406.1 MB, free: 3.016 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004082/0.2433, allocations: 284.6 kB / 406.4 MB, free: 2.699 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.227e-05/0.2434, allocations: 20.94 kB / 406.4 MB, free: 2.68 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.457e-05/0.2434, allocations: 32.38 kB / 406.4 MB, free: 2.648 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006838/0.2441, allocations: 377.2 kB / 406.8 MB, free: 2.273 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.02e-05/0.2442, allocations: 11.84 kB / 406.8 MB, free: 2.262 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.774e-05/0.2442, allocations: 8 kB / 406.8 MB, free: 2.254 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.014e-05/0.2442, allocations: 15.92 kB / 406.8 MB, free: 2.238 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007352/0.245, allocations: 402 kB / 407.2 MB, free: 1.848 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001931/0.2469, allocations: 1.1 MB / 408.3 MB, free: 0.668 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005209/0.2474, allocations: 303.6 kB / 408.6 MB, free: 368 kB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003493/0.2478, allocations: 193.8 kB / 408.8 MB, free: 172 kB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.351e-05/0.2479, allocations: 4 kB / 408.8 MB, free: 168 kB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.971e-05/0.2479, allocations: 42.5 kB / 408.9 MB, free: 116 kB / 318.1 MB Notification: Performance of pre-optimization done (n=39): time 1.904e-06/0.2479, allocations: 0 / 408.9 MB, free: 116 kB / 318.1 MB Notification: Performance of matching and sorting (n=45): time 0.004566/0.2525, allocations: 2.029 MB / 410.9 MB, free: 13.95 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.981e-05/0.2525, allocations: 59.39 kB / 410.9 MB, free: 13.88 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002521/0.2528, allocations: 237 kB / 411.2 MB, free: 13.64 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.735e-05/0.2529, allocations: 41.7 kB / 411.2 MB, free: 13.59 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001076/0.253, allocations: 156.7 kB / 411.4 MB, free: 13.43 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001281/0.2531, allocations: 149.9 kB / 411.5 MB, free: 13.29 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001712/0.2533, allocations: 102.1 kB / 411.6 MB, free: 13.18 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001234/0.2534, allocations: 338.8 kB / 411.9 MB, free: 12.84 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004034/0.2538, allocations: 205 kB / 412.1 MB, free: 12.64 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000422/0.2543, allocations: 284.8 kB / 412.4 MB, free: 12.34 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006241/0.2549, allocations: 381.7 kB / 412.8 MB, free: 11.94 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.2549, allocations: 0 / 412.8 MB, free: 11.94 MB / 334.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001372/0.2563, allocations: 0.6962 MB / 413.5 MB, free: 11.23 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.771e-05/0.2563, allocations: 11.94 kB / 413.5 MB, free: 11.22 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.622e-06/0.2563, allocations: 0 / 413.5 MB, free: 11.22 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008135/0.2571, allocations: 0.4898 MB / 414 MB, free: 10.72 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002769/0.2574, allocations: 71.91 kB / 414.1 MB, free: 10.65 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001215/0.2587, allocations: 1.39 MB / 415.4 MB, free: 9.211 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004117/0.2591, allocations: 64.08 kB / 415.5 MB, free: 9.148 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.78e-05/0.2591, allocations: 23.98 kB / 415.5 MB, free: 9.125 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.0001884/0.2593, allocations: 166.1 kB / 415.7 MB, free: 8.953 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.508e-05/0.2594, allocations: 31.62 kB / 415.7 MB, free: 8.922 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001102/0.2595, allocations: 55.36 kB / 415.8 MB, free: 8.867 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.141e-06/0.2595, allocations: 8 kB / 415.8 MB, free: 8.859 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.433e-06/0.2596, allocations: 0 / 415.8 MB, free: 8.859 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.963e-06/0.2596, allocations: 3.984 kB / 415.8 MB, free: 8.855 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002645/0.2622, allocations: 1.338 MB / 417.1 MB, free: 7.441 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.577e-06/0.2623, allocations: 4 kB / 417.1 MB, free: 7.438 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002716/0.2625, allocations: 67.84 kB / 417.2 MB, free: 7.371 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006908/0.2632, allocations: 461.5 kB / 417.7 MB, free: 6.914 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.499e-05/0.2633, allocations: 19.97 kB / 417.7 MB, free: 6.895 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001198/0.2645, allocations: 1.339 MB / 419 MB, free: 5.504 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.927e-06/0.2645, allocations: 4 kB / 419 MB, free: 5.5 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001692/0.2662, allocations: 0.9402 MB / 420 MB, free: 4.52 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001863/0.2664, allocations: 148.8 kB / 420.1 MB, free: 4.355 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.817e-05/0.2665, allocations: 23.94 kB / 420.1 MB, free: 4.332 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002918/0.2668, allocations: 39.95 kB / 420.2 MB, free: 4.293 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000181/0.267, allocations: 79.86 kB / 420.2 MB, free: 4.215 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.098e-05/0.267, allocations: 19.98 kB / 420.3 MB, free: 4.195 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000156/0.2672, allocations: 168.5 kB / 420.4 MB, free: 4.031 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2672, allocations: 0 / 420.4 MB, free: 4.031 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004536/0.2677, allocations: 112 kB / 420.5 MB, free: 3.922 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.002122/0.2698, allocations: 1.53 MB / 422.1 MB, free: 2.344 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001075/0.2709, allocations: 0.5177 MB / 422.6 MB, free: 1.828 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.37e-06/0.2709, allocations: 4 kB / 422.6 MB, free: 1.824 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005853/0.2715, allocations: 287.7 kB / 422.9 MB, free: 1.543 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005023/0.272, allocations: 61.22 kB / 422.9 MB, free: 1.484 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00667/0.2787, allocations: 4.112 MB / 427 MB, free: 13.21 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003408/0.2791, allocations: 0.78 MB / 427.8 MB, free: 12.4 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001506/0.2792, allocations: 38.95 kB / 427.9 MB, free: 12.36 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001539/0.2794, allocations: 91.39 kB / 427.9 MB, free: 12.27 MB / 350.1 MB Notification: Performance of SimCode: time 8.92e-07/0.2794, allocations: 0 / 427.9 MB, free: 12.27 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05605/0.3354, allocations: 12.03 MB / 440 MB, free: 404 kB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.79/14.12, allocations: 7.984 kB / 440 MB, free: 396 kB / 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