Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ElectricBraking_ElectricBraking.Examples.Rotational.MechanicalBraking.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.0007132/0.0007132, allocations: 109.5 kB / 18.95 MB, free: 1.184 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.0007059/0.0007059, allocations: 221.2 kB / 22.25 MB, free: 3.734 MB / 13.93 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.8819/0.8819, allocations: 230.6 MB / 256 MB, free: 9.613 MB / 202.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.009141/0.009141, allocations: 1.598 MB / 314 MB, free: 384 kB / 234.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.Rotational.MechanicalBraking,fileNamePrefix="ElectricBraking_ElectricBraking_Examples_Rotational_MechanicalBraking",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ElectricBraking.Examples.Rotational.MechanicalBraking,fileNamePrefix="ElectricBraking_ElectricBraking_Examples_Rotational_MechanicalBraking",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: ElectricBraking requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0009002/0.0009002, allocations: 70.3 kB / 436.6 MB, free: 46.42 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06385/0.06475, allocations: 53.78 MB / 490.4 MB, free: 10.53 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ElectricBraking.Examples.Rotational.MechanicalBraking): time 0.00272/0.06747, allocations: 2.323 MB / 492.7 MB, free: 8.195 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.00088/0.06835, allocations: 0.9077 MB / 493.6 MB, free: 7.281 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.529e-05/0.06845, allocations: 7.938 kB / 493.6 MB, free: 7.273 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003061/0.06875, allocations: 87.39 kB / 493.7 MB, free: 7.188 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000176/0.06893, allocations: 103.2 kB / 493.8 MB, free: 7.086 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000145/0.06908, allocations: 111.8 kB / 493.9 MB, free: 6.977 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002429/0.06932, allocations: 347.5 kB / 494.3 MB, free: 6.633 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001126/0.06943, allocations: 41.47 kB / 494.3 MB, free: 6.59 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001906/0.06962, allocations: 155.5 kB / 494.5 MB, free: 6.438 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001604/0.06978, allocations: 159.3 kB / 494.6 MB, free: 6.281 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 2.941e-05/0.06981, allocations: 24 kB / 494.6 MB, free: 6.258 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.497e-05/0.06991, allocations: 83.92 kB / 494.7 MB, free: 6.176 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001103/0.07002, allocations: 67.81 kB / 494.8 MB, free: 6.109 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 8.999e-05/0.07011, allocations: 119.4 kB / 494.9 MB, free: 5.992 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000304/0.07041, allocations: 358.6 kB / 495.3 MB, free: 5.641 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.509e-06/0.07041, allocations: 0 / 495.3 MB, free: 5.641 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.495e-06/0.07042, allocations: 7.984 kB / 495.3 MB, free: 5.633 MB / 346.7 MB Notification: Performance of Transformations before backend: time 5.881e-06/0.07042, allocations: 0 / 495.3 MB, free: 5.633 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 48 * Number of variables: 48 Notification: Performance of Generate backend data structure: time 0.0006835/0.07111, allocations: 0.5166 MB / 495.8 MB, free: 5.086 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.439e-05/0.07114, allocations: 12.03 kB / 495.8 MB, free: 5.074 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.247e-05/0.07118, allocations: 54.73 kB / 495.8 MB, free: 5.012 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.629e-05/0.07123, allocations: 28.8 kB / 495.9 MB, free: 4.984 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002511/0.07148, allocations: 222.9 kB / 496.1 MB, free: 4.742 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.499e-05/0.0715, allocations: 12.81 kB / 496.1 MB, free: 4.73 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.113e-05/0.07153, allocations: 20.38 kB / 496.1 MB, free: 4.711 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000309/0.07184, allocations: 270.6 kB / 496.4 MB, free: 4.43 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.45e-05/0.07185, allocations: 7.953 kB / 496.4 MB, free: 4.422 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.791e-05/0.07187, allocations: 8 kB / 496.4 MB, free: 4.414 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.41e-06/0.07187, allocations: 8 kB / 496.4 MB, free: 4.406 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002848/0.07216, allocations: 212.9 kB / 496.6 MB, free: 4.199 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000963/0.07312, allocations: 0.924 MB / 497.5 MB, free: 3.207 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002314/0.07335, allocations: 170.7 kB / 497.7 MB, free: 3.031 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001142/0.07347, allocations: 96.77 kB / 497.8 MB, free: 2.934 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.037e-05/0.07349, allocations: 4 kB / 497.8 MB, free: 2.93 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.8e-05/0.07351, allocations: 34.94 kB / 497.8 MB, free: 2.887 MB / 346.7 MB Notification: Performance of pre-optimization done (n=21): time 1.432e-06/0.07351, allocations: 0 / 497.8 MB, free: 2.887 MB / 346.7 MB Notification: Performance of matching and sorting (n=21): time 0.000932/0.07444, allocations: 493 kB / 498.3 MB, free: 2.398 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.413e-05/0.07446, allocations: 55.41 kB / 498.4 MB, free: 2.332 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000159/0.07462, allocations: 242.9 kB / 498.6 MB, free: 2.086 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.995e-05/0.07464, allocations: 33.7 kB / 498.6 MB, free: 2.047 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.453e-05/0.07471, allocations: 148.4 kB / 498.8 MB, free: 1.898 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.193e-05/0.07475, allocations: 79.41 kB / 498.9 MB, free: 1.82 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.374e-05/0.07481, allocations: 57.92 kB / 498.9 MB, free: 1.754 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 7.98e-05/0.07489, allocations: 334.8 kB / 499.2 MB, free: 1.418 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001259/0.07502, allocations: 92.53 kB / 499.3 MB, free: 1.328 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001497/0.07517, allocations: 168.7 kB / 499.5 MB, free: 1.137 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002109/0.07538, allocations: 211.6 kB / 499.7 MB, free: 0.9023 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.903e-06/0.07538, allocations: 0 / 499.7 MB, free: 0.9023 MB / 346.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0004318/0.07581, allocations: 350.1 kB / 0.4883 GB, free: 0.5508 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.334e-05/0.07583, allocations: 11.94 kB / 0.4883 GB, free: 0.5391 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.14e-06/0.07583, allocations: 0 / 0.4883 GB, free: 0.5391 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002788/0.07611, allocations: 176.9 kB / 0.4885 GB, free: 372 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.447e-05/0.0762, allocations: 43.97 kB / 0.4886 GB, free: 328 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004237/0.07663, allocations: 0.6695 MB / 0.4892 GB, free: 15.62 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001281/0.07676, allocations: 59.67 kB / 0.4893 GB, free: 15.57 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.515e-05/0.07677, allocations: 16.05 kB / 0.4893 GB, free: 15.55 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 9 (brake.mode,$PRE.brake.mode,brake.locked,brake.startBackward,$PRE.brake.startBackward,brake.startForward,$PRE.brake.startForward,brake.free,integrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (25): * Single equations (assignments): 24 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,8)} Notification: Performance of prepare postOptimizeDAE: time 9.508e-05/0.07687, allocations: 138 kB / 0.4894 GB, free: 15.41 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.082e-05/0.0769, allocations: 23.86 kB / 0.4894 GB, free: 15.38 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.685e-05/0.07693, allocations: 29.95 kB / 0.4895 GB, free: 15.35 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.896e-06/0.07694, allocations: 4 kB / 0.4895 GB, free: 15.35 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.968e-06/0.07694, allocations: 0 / 0.4895 GB, free: 15.35 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.116e-06/0.07694, allocations: 0 / 0.4895 GB, free: 15.35 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006839/0.07763, allocations: 0.6505 MB / 0.4901 GB, free: 14.64 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.084e-06/0.07763, allocations: 3.938 kB / 0.4901 GB, free: 14.64 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.531e-05/0.07772, allocations: 27.98 kB / 0.4901 GB, free: 14.61 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001913/0.07791, allocations: 160.7 kB / 0.4903 GB, free: 14.45 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.681e-05/0.07792, allocations: 8 kB / 0.4903 GB, free: 14.45 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003609/0.07828, allocations: 0.6616 MB / 0.4909 GB, free: 13.76 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.81e-07/0.07828, allocations: 0 / 0.4909 GB, free: 13.76 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005162/0.0788, allocations: 0.4919 MB / 0.4914 GB, free: 13.25 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.774e-05/0.07887, allocations: 51.73 kB / 0.4915 GB, free: 13.2 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.77e-05/0.0789, allocations: 8 kB / 0.4915 GB, free: 13.19 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001162/0.07901, allocations: 36.02 kB / 0.4915 GB, free: 13.16 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.308e-05/0.07909, allocations: 40.02 kB / 0.4916 GB, free: 13.12 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.369e-05/0.0791, allocations: 15.97 kB / 0.4916 GB, free: 13.1 MB / 362.7 MB Notification: Performance of sorting global known variables: time 9.707e-05/0.0792, allocations: 168.5 kB / 0.4917 GB, free: 12.94 MB / 362.7 MB Notification: Performance of sort global known variables: time 5.1e-08/0.0792, allocations: 0 / 0.4917 GB, free: 12.94 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002099/0.07941, allocations: 67.89 kB / 0.4918 GB, free: 12.87 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (inertiaLoad.w,integrator.y,heatCapacitor.T,brake.phi) * Number of discrete variables: 5 (brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode) * Number of discrete states: 3 (brake.mode,brake.startForward,brake.startBackward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 13 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001183/0.08059, allocations: 1.301 MB / 0.4931 GB, free: 11.69 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003646/0.08095, allocations: 235.6 kB / 0.4933 GB, free: 11.46 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.903e-06/0.08096, allocations: 0 / 0.4933 GB, free: 11.46 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001457/0.0811, allocations: 119 kB / 0.4934 GB, free: 11.35 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002503/0.08135, allocations: 36.59 kB / 0.4934 GB, free: 11.31 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003196/0.08455, allocations: 3.215 MB / 0.4966 GB, free: 7.957 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.476e-05/0.08463, allocations: 150.4 kB / 0.4967 GB, free: 7.797 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 5.717e-05/0.08469, allocations: 25.94 kB / 0.4967 GB, free: 7.77 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.458e-05/0.08477, allocations: 71.41 kB / 0.4968 GB, free: 7.699 MB / 362.7 MB Notification: Performance of SimCode: time 3.7e-07/0.08477, allocations: 0 / 0.4968 GB, free: 7.699 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07111/0.1559, allocations: 7.649 MB / 0.5043 GB, free: 124 kB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.083/7.239, allocations: 8.062 kB / 0.5043 GB, free: 116 kB / 362.7 MB " [Timeout remaining time 653] (rm -f ElectricBraking_ElectricBraking.Examples.Rotational.MechanicalBraking.pipe ; mkfifo ElectricBraking_ElectricBraking.Examples.Rotational.MechanicalBraking.pipe ; head -c 1048576 < ElectricBraking_ElectricBraking.Examples.Rotational.MechanicalBraking.pipe >> ../files/ElectricBraking_ElectricBraking.Examples.Rotational.MechanicalBraking.sim & (cd run_OMSimulator && /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --stripRoot --tempDir=temp_ElectricBraking_ElectricBraking_Examples_Rotational_MechanicalBraking_fmu --startTime=0 --stopTime=5 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 ../ElectricBraking_ElectricBraking_Examples_Rotational_MechanicalBraking.fmu) > ElectricBraking_ElectricBraking.Examples.Rotational.MechanicalBraking.pipe 2>&1) [Timeout 52.5] (rm -f ElectricBraking_ElectricBraking.Examples.Rotational.MechanicalBraking_fmpy.pipe ; mkfifo ElectricBraking_ElectricBraking.Examples.Rotational.MechanicalBraking_fmpy.pipe ; head -c 1048576 < ElectricBraking_ElectricBraking.Examples.Rotational.MechanicalBraking_fmpy.pipe >> /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ElectricBraking_ElectricBraking.Examples.Rotational.MechanicalBraking_fmpy.sim & (cd run_fmpy && python3 -m fmpy simulate --output-file ../ElectricBraking_ElectricBraking.Examples.Rotational.MechanicalBraking_fmpy_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 ../ElectricBraking_ElectricBraking_Examples_Rotational_MechanicalBraking.fmu) > ElectricBraking_ElectricBraking.Examples.Rotational.MechanicalBraking_fmpy.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 10.175730139017105]