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.001177/0.001178, allocations: 114.4 kB / 17.74 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.001295/0.001295, allocations: 183.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.424/1.424, allocations: 205.1 MB / 224.5 MB, free: 12.28 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.001345/0.001345, allocations: 48.14 kB / 328 MB, free: 3.828 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09793/0.09929, allocations: 46.61 MB / 374.6 MB, free: 5.109 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.004182/0.1035, allocations: 2.431 MB / 377.1 MB, free: 2.66 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001332/0.1049, allocations: 0.4922 MB / 377.5 MB, free: 2.164 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002841/0.1052, allocations: 4 kB / 377.6 MB, free: 2.16 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003129/0.1056, allocations: 51.52 kB / 377.6 MB, free: 2.109 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003175/0.1059, allocations: 87.25 kB / 377.7 MB, free: 2.023 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006798/0.1066, allocations: 191.7 kB / 377.9 MB, free: 1.836 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000696/0.1073, allocations: 495.1 kB / 378.4 MB, free: 1.352 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002054/0.1075, allocations: 72.64 kB / 378.4 MB, free: 1.277 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003652/0.1079, allocations: 219.4 kB / 378.6 MB, free: 1.062 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004136/0.1083, allocations: 239.1 kB / 378.9 MB, free: 0.8281 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 9.996e-05/0.1085, allocations: 36 kB / 378.9 MB, free: 0.793 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002249/0.1087, allocations: 87.94 kB / 379 MB, free: 0.707 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001429/0.1088, allocations: 99.7 kB / 379.1 MB, free: 0.6094 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002395/0.1091, allocations: 183.1 kB / 379.3 MB, free: 440 kB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2095/0.3186, allocations: 459.8 kB / 379.7 MB, free: 10.24 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.564e-06/0.3186, allocations: 0.75 kB / 379.7 MB, free: 10.24 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.924e-06/0.3186, allocations: 0 / 379.7 MB, free: 10.24 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.548e-05/0.3187, allocations: 0.75 kB / 379.7 MB, free: 10.24 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.001332/0.32, allocations: 0.6743 MB / 380.4 MB, free: 9.781 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.421e-05/0.3201, allocations: 9.281 kB / 380.4 MB, free: 9.781 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.73e-05/0.3201, allocations: 62.94 kB / 380.5 MB, free: 9.742 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.509e-05/0.3202, allocations: 37.8 kB / 380.5 MB, free: 9.723 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003472/0.3206, allocations: 283.8 kB / 380.8 MB, free: 9.5 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.711e-05/0.3206, allocations: 23.19 kB / 380.8 MB, free: 9.5 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.839e-05/0.3207, allocations: 35.67 kB / 380.8 MB, free: 9.496 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006957/0.3214, allocations: 381.2 kB / 381.2 MB, free: 9.461 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.891e-05/0.3214, allocations: 5.812 kB / 381.2 MB, free: 9.457 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.918e-05/0.3215, allocations: 10.38 kB / 381.2 MB, free: 9.457 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.158e-05/0.3215, allocations: 7.438 kB / 381.2 MB, free: 9.457 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007284/0.3222, allocations: 402 kB / 381.6 MB, free: 9.453 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001944/0.3242, allocations: 1.1 MB / 382.7 MB, free: 9.016 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006129/0.3248, allocations: 300.5 kB / 383 MB, free: 8.988 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003382/0.3252, allocations: 195.8 kB / 383.2 MB, free: 8.98 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.87e-05/0.3252, allocations: 3.75 kB / 383.2 MB, free: 8.98 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.498e-05/0.3252, allocations: 37.38 kB / 383.3 MB, free: 8.941 MB / 318.1 MB Notification: Performance of pre-optimization done (n=39): time 1.733e-06/0.3253, allocations: 3.75 kB / 383.3 MB, free: 8.941 MB / 318.1 MB Notification: Performance of matching and sorting (n=45): time 0.004535/0.3298, allocations: 2.048 MB / 385.3 MB, free: 8.113 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.657e-05/0.3298, allocations: 56.69 kB / 385.4 MB, free: 8.051 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002198/0.3301, allocations: 233.3 kB / 385.6 MB, free: 7.91 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.549e-05/0.3301, allocations: 40.72 kB / 385.6 MB, free: 7.871 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.254e-05/0.3302, allocations: 151.8 kB / 385.8 MB, free: 7.734 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001083/0.3303, allocations: 161.1 kB / 385.9 MB, free: 7.617 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001533/0.3305, allocations: 106.8 kB / 386 MB, free: 7.559 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.627e-05/0.3305, allocations: 342.5 kB / 386.4 MB, free: 7.23 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003873/0.3309, allocations: 206.8 kB / 386.6 MB, free: 7.16 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004163/0.3314, allocations: 283.5 kB / 386.9 MB, free: 7.008 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005915/0.332, allocations: 378.7 kB / 387.2 MB, free: 6.824 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.414e-06/0.332, allocations: 1.156 kB / 387.2 MB, free: 6.824 MB / 318.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001483/0.3335, allocations: 0.6953 MB / 387.9 MB, free: 6.555 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.147e-05/0.3335, allocations: 8.406 kB / 387.9 MB, free: 6.555 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.875e-06/0.3335, allocations: 1.562 kB / 387.9 MB, free: 6.555 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008847/0.3344, allocations: 497.8 kB / 388.4 MB, free: 6.418 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002869/0.3347, allocations: 74.45 kB / 388.5 MB, free: 6.414 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001032/0.3357, allocations: 1.386 MB / 389.9 MB, free: 5.242 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004494/0.3362, allocations: 70.3 kB / 389.9 MB, free: 5.23 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.629e-05/0.3362, allocations: 19.88 kB / 390 MB, free: 5.227 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.000201/0.3365, allocations: 172.2 kB / 390.1 MB, free: 5.074 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.35e-05/0.3365, allocations: 31.03 kB / 390.2 MB, free: 5.059 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.788e-05/0.3366, allocations: 47.8 kB / 390.2 MB, free: 5.02 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.578e-06/0.3367, allocations: 9.234 kB / 390.2 MB, free: 5.016 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.12e-05/0.3367, allocations: 0 / 390.2 MB, free: 5.016 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.588e-06/0.3367, allocations: 5.984 kB / 390.2 MB, free: 5.016 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002798/0.3395, allocations: 1.359 MB / 391.6 MB, free: 4.332 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.039e-06/0.3395, allocations: 3.188 kB / 391.6 MB, free: 4.332 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002775/0.3398, allocations: 61.55 kB / 391.6 MB, free: 4.328 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007478/0.3406, allocations: 467.1 kB / 392.1 MB, free: 4.207 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.084e-05/0.3406, allocations: 19.36 kB / 392.1 MB, free: 4.199 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008585/0.3415, allocations: 1.337 MB / 393.5 MB, free: 3.055 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.975e-06/0.3415, allocations: 2.312 kB / 393.5 MB, free: 3.055 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001699/0.3432, allocations: 0.9445 MB / 394.4 MB, free: 2.582 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001831/0.3434, allocations: 160 kB / 394.6 MB, free: 2.449 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.75e-05/0.3435, allocations: 22.62 kB / 394.6 MB, free: 2.434 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003001/0.3438, allocations: 35.55 kB / 394.6 MB, free: 2.43 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001979/0.344, allocations: 89.44 kB / 394.7 MB, free: 2.414 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.168e-05/0.344, allocations: 21.58 kB / 394.7 MB, free: 2.41 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001585/0.3442, allocations: 168.4 kB / 394.9 MB, free: 2.309 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.3442, allocations: 1.094 kB / 394.9 MB, free: 2.309 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0004948/0.3447, allocations: 105.2 kB / 395 MB, free: 2.293 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.00199/0.3467, allocations: 1.523 MB / 396.5 MB, free: 1.289 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001065/0.3478, allocations: 0.5197 MB / 397 MB, free: 1.121 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.355e-06/0.3478, allocations: 0 / 397 MB, free: 1.121 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005849/0.3484, allocations: 291.5 kB / 397.3 MB, free: 1.031 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005272/0.3489, allocations: 53.44 kB / 397.4 MB, free: 1.012 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006799/0.3557, allocations: 4.141 MB / 401.5 MB, free: 14.51 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000388/0.3561, allocations: 0.7785 MB / 402.3 MB, free: 13.8 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001643/0.3563, allocations: 32.14 kB / 402.3 MB, free: 13.8 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001863/0.3565, allocations: 93.47 kB / 402.4 MB, free: 13.74 MB / 334.1 MB Notification: Performance of SimCode: time 6.61e-07/0.3565, allocations: 0 / 402.4 MB, free: 13.74 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03414/0.3907, allocations: 11.67 MB / 414.1 MB, free: 7.18 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.8/12.19, allocations: 7.938 kB / 414.1 MB, free: 7.172 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 & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 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.csv","/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