Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Brake,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Translational_Examples_Brake",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Brake,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Translational_Examples_Brake",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0006828/0.0006828, allocations: 94.08 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0007977/0.0007978, allocations: 202.6 kB / 18.28 MB, free: 5.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.206/1.206, allocations: 227.7 MB / 246.8 MB, free: 11.32 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0001938/0.0001939, allocations: 7.984 kB / 307.8 MB, free: 0.7148 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07949/0.0797, allocations: 51.52 MB / 359.4 MB, free: 13.19 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.002443/0.08218, allocations: 2.247 MB / 361.6 MB, free: 10.93 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008221/0.08301, allocations: 0.5617 MB / 362.2 MB, free: 10.37 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.482e-05/0.08312, allocations: 7.938 kB / 362.2 MB, free: 10.36 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002172/0.08334, allocations: 55.61 kB / 362.2 MB, free: 10.3 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002245/0.08358, allocations: 115.4 kB / 362.3 MB, free: 10.19 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002307/0.08382, allocations: 147.8 kB / 362.5 MB, free: 10.05 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004033/0.08423, allocations: 491 kB / 363 MB, free: 9.562 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001344/0.08437, allocations: 68.69 kB / 363 MB, free: 9.5 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002043/0.08458, allocations: 207.2 kB / 363.2 MB, free: 9.297 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002595/0.08485, allocations: 231.2 kB / 363.5 MB, free: 9.07 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.91e-05/0.0849, allocations: 24 kB / 363.5 MB, free: 9.047 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001391/0.08505, allocations: 67.98 kB / 363.5 MB, free: 8.98 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00012/0.08518, allocations: 103.6 kB / 363.7 MB, free: 8.879 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001579/0.08534, allocations: 196.8 kB / 363.8 MB, free: 8.68 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004111/0.08576, allocations: 482.6 kB / 364.3 MB, free: 8.207 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.638e-06/0.08577, allocations: 0 / 364.3 MB, free: 8.207 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.08578, allocations: 3.938 kB / 364.3 MB, free: 8.203 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.11e-06/0.08579, allocations: 3.938 kB / 364.3 MB, free: 8.199 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.001098/0.08689, allocations: 0.6551 MB / 365 MB, free: 7.488 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.131e-05/0.08693, allocations: 11.97 kB / 365 MB, free: 7.477 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.701e-05/0.08701, allocations: 62.73 kB / 365.1 MB, free: 7.406 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.905e-05/0.08709, allocations: 36.47 kB / 365.1 MB, free: 7.371 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003048/0.0874, allocations: 299.6 kB / 365.4 MB, free: 7.039 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.443e-05/0.08743, allocations: 21.03 kB / 365.4 MB, free: 7.02 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.529e-05/0.08751, allocations: 32.38 kB / 365.4 MB, free: 6.988 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006452/0.08816, allocations: 378.5 kB / 365.8 MB, free: 6.617 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.927e-05/0.08819, allocations: 11.94 kB / 365.8 MB, free: 6.605 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.624e-05/0.08823, allocations: 8 kB / 365.8 MB, free: 6.598 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.616e-06/0.08824, allocations: 8 kB / 365.8 MB, free: 6.59 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007401/0.08899, allocations: 386.4 kB / 366.2 MB, free: 6.211 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001814/0.09081, allocations: 1.159 MB / 367.4 MB, free: 4.98 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005573/0.09138, allocations: 341.8 kB / 367.7 MB, free: 4.637 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003294/0.09172, allocations: 197.4 kB / 367.9 MB, free: 4.441 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.635e-05/0.09176, allocations: 7.953 kB / 367.9 MB, free: 4.434 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.987e-05/0.0918, allocations: 42.56 kB / 367.9 MB, free: 4.383 MB / 302.1 MB Notification: Performance of pre-optimization done (n=43): time 1.573e-06/0.09181, allocations: 0 / 367.9 MB, free: 4.383 MB / 302.1 MB Notification: Performance of matching and sorting (n=49): time 0.00437/0.09618, allocations: 2.088 MB / 370 MB, free: 2.156 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.294e-05/0.09624, allocations: 59.84 kB / 370.1 MB, free: 2.086 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002416/0.09648, allocations: 249 kB / 370.3 MB, free: 1.828 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.024e-05/0.09654, allocations: 41.7 kB / 370.4 MB, free: 1.781 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.53e-05/0.09664, allocations: 160.8 kB / 370.5 MB, free: 1.617 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001242/0.09677, allocations: 169.7 kB / 370.7 MB, free: 1.449 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.344e-05/0.09685, allocations: 45.69 kB / 370.7 MB, free: 1.398 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001231/0.09698, allocations: 342.8 kB / 371.1 MB, free: 1.055 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003621/0.09735, allocations: 193 kB / 371.3 MB, free: 0.8672 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004533/0.09781, allocations: 268.8 kB / 371.5 MB, free: 0.582 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005809/0.0984, allocations: 361.6 kB / 371.9 MB, free: 212 kB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.007e-06/0.09842, allocations: 4 kB / 371.9 MB, free: 208 kB / 302.1 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.1403/0.2387, allocations: 0.606 MB / 372.5 MB, free: 18.68 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.969e-05/0.2388, allocations: 6.312 kB / 372.5 MB, free: 18.68 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.674e-06/0.2388, allocations: 2.75 kB / 372.5 MB, free: 18.68 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006564/0.2394, allocations: 345.9 kB / 372.8 MB, free: 18.66 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002585/0.2397, allocations: 74.36 kB / 372.9 MB, free: 18.66 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009281/0.2407, allocations: 1.367 MB / 374.3 MB, free: 17.63 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004739/0.2411, allocations: 94.83 kB / 374.4 MB, free: 17.63 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.594e-05/0.2412, allocations: 18.86 kB / 374.4 MB, free: 17.63 MB / 302.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 (47): * Single equations (assignments): 45 * 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,9), (1,8)} Notification: Performance of prepare postOptimizeDAE: time 0.0001679/0.2414, allocations: 171.9 kB / 374.6 MB, free: 17.52 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.778e-05/0.2414, allocations: 37.78 kB / 374.6 MB, free: 17.52 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001152/0.2416, allocations: 50.19 kB / 374.6 MB, free: 17.51 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.394e-06/0.2416, allocations: 6.547 kB / 374.6 MB, free: 17.51 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.461e-06/0.2416, allocations: 0.6094 kB / 374.6 MB, free: 17.51 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.232e-06/0.2416, allocations: 3.547 kB / 374.6 MB, free: 17.51 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002529/0.2441, allocations: 1.385 MB / 376 MB, free: 17.13 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.178e-06/0.2441, allocations: 3.75 kB / 376 MB, free: 17.13 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002488/0.2444, allocations: 62.36 kB / 376.1 MB, free: 17.13 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005358/0.2449, allocations: 315.9 kB / 376.4 MB, free: 17.09 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.829e-05/0.245, allocations: 21.31 kB / 376.4 MB, free: 17.09 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008691/0.2459, allocations: 1.319 MB / 377.7 MB, free: 16.05 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.053e-06/0.2459, allocations: 1 kB / 377.7 MB, free: 16.05 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001493/0.2474, allocations: 0.9186 MB / 378.7 MB, free: 15.77 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001506/0.2475, allocations: 158.6 kB / 378.8 MB, free: 15.66 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.885e-05/0.2476, allocations: 16.02 kB / 378.8 MB, free: 15.65 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003111/0.2479, allocations: 60.78 kB / 378.9 MB, free: 15.63 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001668/0.2481, allocations: 86.28 kB / 379 MB, free: 15.62 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.413e-05/0.2481, allocations: 25.64 kB / 379 MB, free: 15.61 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001384/0.2483, allocations: 180.3 kB / 379.2 MB, free: 15.51 MB / 302.1 MB Notification: Performance of sort global known variables: time 7.22e-07/0.2483, allocations: 4 kB / 379.2 MB, free: 15.51 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003797/0.2487, allocations: 100.6 kB / 379.3 MB, free: 15.49 MB / 302.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,7), (1,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002268/0.251, allocations: 1.716 MB / 381 MB, free: 14.39 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008914/0.2519, allocations: 0.5005 MB / 381.5 MB, free: 14.2 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.2519, allocations: 0 / 381.5 MB, free: 14.2 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005196/0.2524, allocations: 286.9 kB / 381.8 MB, free: 14.1 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005048/0.2529, allocations: 63.12 kB / 381.8 MB, free: 14.07 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005647/0.2586, allocations: 4.322 MB / 386.2 MB, free: 11.3 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002059/0.2588, allocations: 0.7908 MB / 387 MB, free: 10.59 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001363/0.2589, allocations: 39.78 kB / 387 MB, free: 10.58 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001398/0.2591, allocations: 99.2 kB / 387.1 MB, free: 10.52 MB / 302.1 MB Notification: Performance of SimCode: time 2.71e-07/0.2591, allocations: 1.438 kB / 387.1 MB, free: 10.52 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5722/0.8313, allocations: 10.82 MB / 397.9 MB, free: 6.355 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001753/0.8315, allocations: 272.3 kB / 398.2 MB, free: 5.996 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.904/2.736, allocations: 0 / 398.2 MB, free: 5.996 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_Translational_Examples_Brake_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_Translational_Examples_Brake.fmu > Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Mechanics.Translational.Examples.Brake.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches