Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ElectricBraking_ElectricBraking.Examples.Translational.DCPMBraking.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001286/0.001286, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00149/0.00149, allocations: 165.9 kB / 22.46 MB, free: 2.105 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9884/0.9884, allocations: 177.2 MB / 202.8 MB, free: 5.734 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricBraking 1.0.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricBraking 1.0.0/package.mo): time 0.004903/0.004903, allocations: 1.191 MB / 260.4 MB, free: 12.1 MB / 250.7 MB " [Timeout remaining time 180] Using package ElectricBraking with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricBraking 1.0.0/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ElectricBraking.Examples.Translational.DCPMBraking,fileNamePrefix="ElectricBraking_ElectricBraking_Examples_Translational_DCPMBraking",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ElectricBraking.Examples.Translational.DCPMBraking,fileNamePrefix="ElectricBraking_ElectricBraking_Examples_Translational_DCPMBraking",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.655e-06/2.655e-06, allocations: 0 / 383 MB, free: 13.67 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.634e-05/2.9e-05, allocations: 6.219 kB / 383 MB, free: 13.66 MB / 314.7 MB Notification: Performance of NFInst.instantiate(ElectricBraking.Examples.Translational.DCPMBraking): time 0.006028/0.006057, allocations: 4.087 MB / 387.1 MB, free: 9.555 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.002929/0.008986, allocations: 1.359 MB / 388.5 MB, free: 8.188 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004169/0.009403, allocations: 11.94 kB / 388.5 MB, free: 8.176 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007725/0.01018, allocations: 214.4 kB / 388.7 MB, free: 7.965 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005158/0.01069, allocations: 218.2 kB / 388.9 MB, free: 7.75 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002719/0.01096, allocations: 127.8 kB / 389 MB, free: 7.625 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.000781/0.01174, allocations: 0.7074 MB / 389.8 MB, free: 6.914 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003563/0.0121, allocations: 181 kB / 389.9 MB, free: 6.734 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000698/0.0128, allocations: 403 kB / 390.3 MB, free: 6.34 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000331/0.01313, allocations: 191.4 kB / 390.5 MB, free: 6.152 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 9.349e-05/0.01322, allocations: 60 kB / 390.6 MB, free: 6.094 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001717/0.01339, allocations: 87.91 kB / 390.7 MB, free: 6.008 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001172/0.01351, allocations: 131.5 kB / 390.8 MB, free: 5.879 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002461/0.01376, allocations: 215.4 kB / 391 MB, free: 5.668 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008595/0.01462, allocations: 0.7049 MB / 391.7 MB, free: 4.961 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.031e-06/0.01462, allocations: 4 kB / 391.7 MB, free: 4.957 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.924e-06/0.01463, allocations: 0 / 391.7 MB, free: 4.957 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.441e-05/0.01464, allocations: 0 / 391.7 MB, free: 4.957 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 129 * Number of variables: 129 Notification: Performance of Generate backend data structure: time 0.001356/0.016, allocations: 0.7926 MB / 392.5 MB, free: 4.137 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.933e-05/0.01604, allocations: 12.03 kB / 392.5 MB, free: 4.125 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001121/0.01616, allocations: 90.7 kB / 392.6 MB, free: 4.027 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002559/0.01641, allocations: 80.5 kB / 392.7 MB, free: 3.949 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006752/0.01709, allocations: 342.6 kB / 393 MB, free: 3.586 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.382e-05/0.01713, allocations: 41.69 kB / 393.1 MB, free: 3.543 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001373/0.01727, allocations: 60.5 kB / 393.1 MB, free: 3.484 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009729/0.01824, allocations: 0.5389 MB / 393.6 MB, free: 2.914 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.623e-05/0.01827, allocations: 192 / 393.6 MB, free: 2.914 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.366e-05/0.01832, allocations: 27.94 kB / 393.7 MB, free: 2.887 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.39e-05/0.01834, allocations: 12 kB / 393.7 MB, free: 2.875 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006198/0.01896, allocations: 303.8 kB / 394 MB, free: 2.582 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002465/0.02142, allocations: 1.556 MB / 395.5 MB, free: 0.9453 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005142/0.02193, allocations: 251 kB / 395.8 MB, free: 0.6914 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002228/0.02216, allocations: 110.2 kB / 395.9 MB, free: 0.582 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.95e-05/0.02218, allocations: 8.266 kB / 395.9 MB, free: 0.5742 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.048e-05/0.02221, allocations: 34.84 kB / 395.9 MB, free: 0.5312 MB / 314.7 MB Notification: Performance of pre-optimization done (n=33): time 2.425e-06/0.02221, allocations: 0 / 395.9 MB, free: 0.5312 MB / 314.7 MB Notification: Performance of matching and sorting (n=38): time 0.002204/0.02441, allocations: 1.101 MB / 397 MB, free: 15.37 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.991e-05/0.02444, allocations: 55.41 kB / 397.1 MB, free: 15.3 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003154/0.02476, allocations: 373.6 kB / 397.5 MB, free: 14.93 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.158e-05/0.02478, allocations: 37.7 kB / 397.5 MB, free: 14.89 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001277/0.02491, allocations: 276.3 kB / 397.8 MB, free: 14.62 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.926e-05/0.02498, allocations: 130.8 kB / 397.9 MB, free: 14.49 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.202e-05/0.02506, allocations: 82.08 kB / 398 MB, free: 14.4 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001032/0.02516, allocations: 354.7 kB / 398.3 MB, free: 14.05 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001317/0.02529, allocations: 96.95 kB / 398.4 MB, free: 13.95 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001678/0.02546, allocations: 196.1 kB / 398.6 MB, free: 13.72 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003202/0.02578, allocations: 319 kB / 398.9 MB, free: 13.37 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.02578, allocations: 0 / 398.9 MB, free: 13.37 MB / 330.7 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0004523/0.02624, allocations: 417.4 kB / 399.3 MB, free: 12.95 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.917e-05/0.02626, allocations: 11.94 kB / 399.3 MB, free: 12.94 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.985e-06/0.02626, allocations: 7.984 kB / 399.3 MB, free: 12.93 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001418/0.02641, allocations: 37.19 kB / 399.4 MB, free: 12.89 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001836/0.02659, allocations: 91.89 kB / 399.5 MB, free: 12.8 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001035/0.02762, allocations: 1.437 MB / 400.9 MB, free: 11.25 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001185/0.02774, allocations: 12 kB / 400.9 MB, free: 11.24 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.818e-05/0.02776, allocations: 15.94 kB / 400.9 MB, free: 11.23 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 2 (switch.control,integrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (49): * Single equations (assignments): 48 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001601/0.02792, allocations: 181.8 kB / 401.1 MB, free: 11.04 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.18e-05/0.02796, allocations: 43.83 kB / 401.2 MB, free: 11 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.883e-05/0.02801, allocations: 44.25 kB / 401.2 MB, free: 10.95 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.655e-06/0.02801, allocations: 4 kB / 401.2 MB, free: 10.95 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.01e-06/0.02802, allocations: 0 / 401.2 MB, free: 10.95 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.969e-06/0.02802, allocations: 3.984 kB / 401.2 MB, free: 10.94 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009216/0.02895, allocations: 0.8622 MB / 402.1 MB, free: 10.02 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.986e-06/0.02895, allocations: 7.875 kB / 402.1 MB, free: 10.02 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001813/0.02913, allocations: 71.91 kB / 402.1 MB, free: 9.945 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.177e-05/0.02921, allocations: 36.86 kB / 402.2 MB, free: 9.906 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.429e-05/0.02923, allocations: 4 kB / 402.2 MB, free: 9.902 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000743/0.02997, allocations: 1.381 MB / 403.6 MB, free: 8.402 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.02997, allocations: 0 / 403.6 MB, free: 8.402 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005286/0.0305, allocations: 0.5403 MB / 404.1 MB, free: 7.84 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.828e-05/0.03059, allocations: 67.8 kB / 404.2 MB, free: 7.773 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.978e-05/0.03062, allocations: 12.12 kB / 404.2 MB, free: 7.762 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001134/0.03073, allocations: 16 kB / 404.2 MB, free: 7.746 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.058e-05/0.03078, allocations: 27.94 kB / 404.2 MB, free: 7.719 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.166e-05/0.03079, allocations: 11.94 kB / 404.2 MB, free: 7.707 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001955/0.03099, allocations: 259.2 kB / 404.5 MB, free: 7.453 MB / 330.7 MB Notification: Performance of sort global known variables: time 5e-08/0.03099, allocations: 0 / 404.5 MB, free: 7.453 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003051/0.03129, allocations: 112 kB / 404.6 MB, free: 7.344 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 5 (massLoad.s,massLoad.v,integrator.y,heatCapacitor.T,dcpm.armatureInductance.i) * Number of discrete variables: 1 (switch.control) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (35): * Single equations (assignments): 34 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0007207/0.03201, allocations: 1.092 MB / 405.7 MB, free: 6.219 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0005338/0.03255, allocations: 386 kB / 406.1 MB, free: 5.828 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.03255, allocations: 4 kB / 406.1 MB, free: 5.824 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002112/0.03276, allocations: 255.2 kB / 406.3 MB, free: 5.562 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003696/0.03313, allocations: 65.41 kB / 406.4 MB, free: 5.5 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003957/0.03709, allocations: 3.989 MB / 410.4 MB, free: 1.336 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001642/0.03725, allocations: 242.2 kB / 410.6 MB, free: 1.074 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0001253/0.03738, allocations: 47.3 kB / 410.7 MB, free: 1.027 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001564/0.03753, allocations: 168.4 kB / 410.8 MB, free: 0.8594 MB / 330.7 MB Notification: Performance of SimCode: time 7.22e-07/0.03753, allocations: 4 kB / 410.8 MB, free: 0.8555 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2337/0.2712, allocations: 9.551 MB / 420.4 MB, free: 37.32 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.419/7.69, allocations: 14.88 kB / 420.4 MB, free: 37.31 MB / 330.7 MB " [Timeout remaining time 652] (rm -f ElectricBraking_ElectricBraking.Examples.Translational.DCPMBraking.pipe ; mkfifo ElectricBraking_ElectricBraking.Examples.Translational.DCPMBraking.pipe ; head -c 1048576 < ElectricBraking_ElectricBraking.Examples.Translational.DCPMBraking.pipe >> ../files/ElectricBraking_ElectricBraking.Examples.Translational.DCPMBraking.sim & (cd run_OMSimulator && /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --stripRoot --tempDir=temp_ElectricBraking_ElectricBraking_Examples_Translational_DCPMBraking_fmu --startTime=0 --stopTime=10 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 ../ElectricBraking_ElectricBraking_Examples_Translational_DCPMBraking.fmu) > ElectricBraking_ElectricBraking.Examples.Translational.DCPMBraking.pipe 2>&1) [Timeout 52.5] (rm -f ElectricBraking_ElectricBraking.Examples.Translational.DCPMBraking_fmpy.pipe ; mkfifo ElectricBraking_ElectricBraking.Examples.Translational.DCPMBraking_fmpy.pipe ; head -c 1048576 < ElectricBraking_ElectricBraking.Examples.Translational.DCPMBraking_fmpy.pipe >> /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ElectricBraking_ElectricBraking.Examples.Translational.DCPMBraking_fmpy.sim & (cd run_fmpy && python3 -m fmpy simulate --output-file ../ElectricBraking_ElectricBraking.Examples.Translational.DCPMBraking_fmpy_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 ../ElectricBraking_ElectricBraking_Examples_Translational_DCPMBraking.fmu) > ElectricBraking_ElectricBraking.Examples.Translational.DCPMBraking_fmpy.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 11.949315246194601]