Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.Electrical.TestBrush.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.001754/0.001754, allocations: 99.64 kB / 18.94 MB, free: 2.551 MB / 14.72 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 1.523/1.523, allocations: 230.6 MB / 252.7 MB, free: 8.062 MB / 206.1 MB " [Timeout remaining time 178] 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.001708/0.001708, allocations: 218.9 kB / 309.2 MB, free: 2.973 MB / 238.1 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.1/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.1/package.mo): time 0.04259/0.04259, allocations: 8.912 MB / 374.6 MB, free: 1.758 MB / 302.1 MB " [Timeout remaining time 180] Using package HanserModelica with version 2.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.1/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 Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 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(HanserModelica.Electrical.TestBrush,fileNamePrefix="HanserModelica_HanserModelica_Electrical_TestBrush",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.Electrical.TestBrush,fileNamePrefix="HanserModelica_HanserModelica_Electrical_TestBrush",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: HanserModelica requested package Complex of version 4.0.0. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: HanserModelica 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.002638/0.002638, allocations: 91.86 kB / 0.4891 GB, free: 7.199 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.267/0.2697, allocations: 55.59 MB / 0.5434 GB, free: 26.66 MB / 382.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Electrical.TestBrush): time 0.002432/0.2721, allocations: 1.76 MB / 0.5451 GB, free: 25.46 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006697/0.2728, allocations: 493 kB / 0.5456 GB, free: 25.14 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.058e-05/0.2728, allocations: 0 / 0.5456 GB, free: 25.14 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 4.038e-05/0.2729, allocations: 14.47 kB / 0.5456 GB, free: 25.13 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 8.299e-05/0.2729, allocations: 22.41 kB / 0.5457 GB, free: 25.11 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000192/0.2731, allocations: 33.3 kB / 0.5457 GB, free: 25.09 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 8.693e-05/0.2732, allocations: 89.78 kB / 0.5458 GB, free: 25.05 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001121/0.2733, allocations: 25.56 kB / 0.5458 GB, free: 25.03 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.084e-05/0.2734, allocations: 34.98 kB / 0.5458 GB, free: 25.02 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.42e-05/0.2735, allocations: 32.52 kB / 0.5459 GB, free: 25 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.655e-05/0.2735, allocations: 6.062 kB / 0.5459 GB, free: 25 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.878e-05/0.2735, allocations: 16.06 kB / 0.5459 GB, free: 25 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.854e-05/0.2736, allocations: 19.5 kB / 0.5459 GB, free: 24.98 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.985e-05/0.2736, allocations: 32.47 kB / 0.5459 GB, free: 24.97 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001332/0.2737, allocations: 98.03 kB / 0.546 GB, free: 24.94 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.139e-06/0.2737, allocations: 4 kB / 0.546 GB, free: 24.93 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.342e-06/0.2737, allocations: 3.938 kB / 0.546 GB, free: 24.93 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.412e-06/0.2737, allocations: 11.19 kB / 0.546 GB, free: 24.92 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0004068/0.2741, allocations: 315.3 kB / 0.5463 GB, free: 24.63 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.302e-05/0.2742, allocations: 6.531 kB / 0.5463 GB, free: 24.63 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.855e-05/0.2742, allocations: 37.94 kB / 0.5464 GB, free: 24.59 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.827e-05/0.2742, allocations: 8.016 kB / 0.5464 GB, free: 24.58 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.958e-05/0.2743, allocations: 119.9 kB / 0.5465 GB, free: 24.45 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.098e-05/0.2743, allocations: 3.531 kB / 0.5465 GB, free: 24.45 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.285e-05/0.2743, allocations: 10.75 kB / 0.5465 GB, free: 24.45 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001821/0.2745, allocations: 88.94 kB / 0.5466 GB, free: 24.39 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.658e-06/0.2745, allocations: 4 kB / 0.5466 GB, free: 24.39 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.071e-05/0.2745, allocations: 7.516 kB / 0.5466 GB, free: 24.38 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.137e-06/0.2745, allocations: 0 / 0.5466 GB, free: 24.38 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001814/0.2747, allocations: 57.5 kB / 0.5467 GB, free: 24.37 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004255/0.2752, allocations: 352.9 kB / 0.547 GB, free: 24.05 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001095/0.2753, allocations: 38.3 kB / 0.547 GB, free: 24.03 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.525e-05/0.2753, allocations: 29.53 kB / 0.5471 GB, free: 24.01 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.786e-05/0.2754, allocations: 0 / 0.5471 GB, free: 24.01 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.622e-05/0.2754, allocations: 41.22 kB / 0.5471 GB, free: 23.96 MB / 382.1 MB Notification: Performance of pre-optimization done (n=2): time 7.72e-07/0.2754, allocations: 0 / 0.5471 GB, free: 23.96 MB / 382.1 MB Notification: Performance of matching and sorting (n=2): time 0.0003049/0.2757, allocations: 94.12 kB / 0.5472 GB, free: 23.91 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.374e-05/0.2757, allocations: 55.34 kB / 0.5473 GB, free: 23.85 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.135e-05/0.2758, allocations: 132.3 kB / 0.5474 GB, free: 23.73 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.813e-06/0.2758, allocations: 28.8 kB / 0.5474 GB, free: 23.7 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.398e-05/0.2758, allocations: 102.6 kB / 0.5475 GB, free: 23.6 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.673e-06/0.2758, allocations: 3.953 kB / 0.5475 GB, free: 23.6 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.894e-05/0.2759, allocations: 23.52 kB / 0.5475 GB, free: 23.58 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 3.567e-05/0.2759, allocations: 314.8 kB / 0.5478 GB, free: 23.26 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.759e-05/0.276, allocations: 23.45 kB / 0.5479 GB, free: 23.26 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.536e-05/0.276, allocations: 35.3 kB / 0.5479 GB, free: 23.23 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001457/0.2762, allocations: 64.88 kB / 0.5479 GB, free: 23.19 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.353e-06/0.2762, allocations: 0 / 0.5479 GB, free: 23.19 MB / 382.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001829/0.2764, allocations: 84.12 kB / 0.548 GB, free: 23.14 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.129e-05/0.2764, allocations: 9.5 kB / 0.548 GB, free: 23.14 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.348e-06/0.2764, allocations: 4.031 kB / 0.548 GB, free: 23.14 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.377e-05/0.2764, allocations: 11.23 kB / 0.5481 GB, free: 23.13 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.458e-05/0.2765, allocations: 12.64 kB / 0.5481 GB, free: 23.13 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.31e-06/0.2765, allocations: 0 / 0.5481 GB, free: 23.13 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.319e-05/0.2765, allocations: 6.406 kB / 0.5481 GB, free: 23.13 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.921e-06/0.2765, allocations: 11.25 kB / 0.5481 GB, free: 23.12 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 4.592e-05/0.2766, allocations: 117 kB / 0.5482 GB, free: 23 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.453e-05/0.2766, allocations: 11.08 kB / 0.5482 GB, free: 23 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.235e-05/0.2766, allocations: 10.91 kB / 0.5482 GB, free: 22.99 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.192e-06/0.2766, allocations: 0 / 0.5482 GB, free: 22.99 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.617e-06/0.2766, allocations: 8 kB / 0.5482 GB, free: 22.98 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.104e-06/0.2766, allocations: 0 / 0.5482 GB, free: 22.98 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001119/0.2768, allocations: 149.9 kB / 0.5484 GB, free: 22.82 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.21e-07/0.2768, allocations: 0 / 0.5484 GB, free: 22.82 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.354e-05/0.2768, allocations: 9 kB / 0.5484 GB, free: 22.82 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.403e-06/0.2768, allocations: 0 / 0.5484 GB, free: 22.82 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.883e-06/0.2768, allocations: 3.938 kB / 0.5484 GB, free: 22.81 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.502e-06/0.2768, allocations: 3.25 kB / 0.5484 GB, free: 22.81 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.2768, allocations: 3.984 kB / 0.5484 GB, free: 22.81 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001857/0.277, allocations: 167 kB / 0.5485 GB, free: 22.66 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.191e-05/0.277, allocations: 14.39 kB / 0.5486 GB, free: 22.66 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.455e-05/0.277, allocations: 3.938 kB / 0.5486 GB, free: 22.65 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.534e-05/0.2771, allocations: 6.641 kB / 0.5486 GB, free: 22.65 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.996e-05/0.2771, allocations: 3.219 kB / 0.5486 GB, free: 22.65 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.637e-06/0.2771, allocations: 4 kB / 0.5486 GB, free: 22.65 MB / 382.1 MB Notification: Performance of sorting global known variables: time 3.341e-05/0.2772, allocations: 92.23 kB / 0.5487 GB, free: 22.57 MB / 382.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2772, allocations: 0 / 0.5487 GB, free: 22.57 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002258/0.2774, allocations: 19.59 kB / 0.5487 GB, free: 22.57 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003364/0.2777, allocations: 0.7068 MB / 0.5494 GB, free: 21.89 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001966/0.2779, allocations: 50.5 kB / 0.5494 GB, free: 21.88 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.493e-06/0.2779, allocations: 0 / 0.5494 GB, free: 21.88 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 7.529e-05/0.278, allocations: 21.8 kB / 0.5494 GB, free: 21.88 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002638/0.2783, allocations: 7.656 kB / 0.5494 GB, free: 21.87 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001104/0.2794, allocations: 1.419 MB / 0.5508 GB, free: 20.59 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.113e-05/0.2794, allocations: 79.88 kB / 0.5509 GB, free: 20.51 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 2.819e-05/0.2795, allocations: 3.125 kB / 0.5509 GB, free: 20.51 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.615e-05/0.2795, allocations: 22.14 kB / 0.5509 GB, free: 20.5 MB / 382.1 MB Notification: Performance of SimCode: time 3.11e-07/0.2795, allocations: 0 / 0.5509 GB, free: 20.5 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02738/0.3069, allocations: 2.379 MB / 0.5533 GB, free: 19.62 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.89/11.19, allocations: 11.88 kB / 0.5533 GB, free: 19.61 MB / 382.1 MB " [Timeout remaining time 649] (rm -f HanserModelica_HanserModelica.Electrical.TestBrush.pipe ; mkfifo HanserModelica_HanserModelica.Electrical.TestBrush.pipe ; head -c 1048576 < HanserModelica_HanserModelica.Electrical.TestBrush.pipe >> ../files/HanserModelica_HanserModelica.Electrical.TestBrush.sim & python3 -m fmpy simulate --output-file HanserModelica_HanserModelica.Electrical.TestBrush_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 HanserModelica_HanserModelica_Electrical_TestBrush.fmu > HanserModelica_HanserModelica.Electrical.TestBrush.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 13.951901303138584] Failed to read output from testmodel.py, exit status != 0: 11.296608921140432 11.308854777 11.0324648 Calling exit ...