Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.Classes.MixedDeclaration.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.001291/0.001291, allocations: 114.5 kB / 18.94 MB, free: 2.934 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.453/1.453, allocations: 230.6 MB / 252.7 MB, free: 8.293 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.001861/0.001861, allocations: 223.4 kB / 309.2 MB, free: 3.137 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.04182/0.04182, allocations: 8.912 MB / 374.6 MB, free: 1.895 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.Classes.MixedDeclaration,fileNamePrefix="HanserModelica_HanserModelica_Classes_MixedDeclaration",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.Classes.MixedDeclaration,fileNamePrefix="HanserModelica_HanserModelica_Classes_MixedDeclaration",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.002502/0.002502, allocations: 95.86 kB / 0.4892 GB, free: 7.355 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2711/0.2736, allocations: 55.59 MB / 0.5435 GB, free: 26.79 MB / 382.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Classes.MixedDeclaration): time 0.001882/0.2755, allocations: 1.295 MB / 0.5448 GB, free: 25.89 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 4.506e-05/0.2755, allocations: 7.922 kB / 0.5448 GB, free: 25.88 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.145e-05/0.2755, allocations: 0 / 0.5448 GB, free: 25.88 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 3.065e-05/0.2756, allocations: 3.031 kB / 0.5448 GB, free: 25.88 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 5.835e-05/0.2756, allocations: 3.938 kB / 0.5448 GB, free: 25.88 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 1.47e-05/0.2756, allocations: 4 kB / 0.5448 GB, free: 25.88 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 5.203e-05/0.2757, allocations: 6.469 kB / 0.5448 GB, free: 25.88 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.175e-05/0.2757, allocations: 3.344 kB / 0.5448 GB, free: 25.88 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.461e-05/0.2758, allocations: 3.938 kB / 0.5448 GB, free: 25.87 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.277e-05/0.2758, allocations: 3.156 kB / 0.5448 GB, free: 25.87 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.067e-05/0.2758, allocations: 4 kB / 0.5448 GB, free: 25.87 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.218e-06/0.2758, allocations: 3.938 kB / 0.5448 GB, free: 25.86 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.095e-05/0.2758, allocations: 4 kB / 0.5448 GB, free: 25.86 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 1.745e-05/0.2758, allocations: 7 kB / 0.5448 GB, free: 25.86 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 4.808e-05/0.2759, allocations: 14.56 kB / 0.5448 GB, free: 25.85 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.547e-06/0.2759, allocations: 0 / 0.5448 GB, free: 25.85 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.432e-06/0.2759, allocations: 0 / 0.5448 GB, free: 25.85 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.469e-06/0.2759, allocations: 0 / 0.5448 GB, free: 25.85 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: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0002349/0.2761, allocations: 244 kB / 0.5451 GB, free: 25.59 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.56e-05/0.2762, allocations: 13.59 kB / 0.5451 GB, free: 25.58 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.503e-05/0.2762, allocations: 30.75 kB / 0.5451 GB, free: 25.54 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.783e-05/0.2762, allocations: 4.891 kB / 0.5451 GB, free: 25.54 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.256e-05/0.2763, allocations: 109.3 kB / 0.5452 GB, free: 25.41 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.629e-06/0.2763, allocations: 384 / 0.5452 GB, free: 25.41 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.33e-06/0.2763, allocations: 384 / 0.5452 GB, free: 25.41 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.067e-05/0.2764, allocations: 43.2 kB / 0.5452 GB, free: 25.36 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.747e-06/0.2764, allocations: 11.12 kB / 0.5453 GB, free: 25.36 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.153e-06/0.2764, allocations: 0 / 0.5453 GB, free: 25.36 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.168e-06/0.2764, allocations: 4 kB / 0.5453 GB, free: 25.35 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.507e-05/0.2764, allocations: 7.156 kB / 0.5453 GB, free: 25.35 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002065/0.2766, allocations: 443.8 kB / 0.5457 GB, free: 24.88 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.909e-05/0.2766, allocations: 173.1 kB / 0.5459 GB, free: 24.7 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.3e-05/0.2766, allocations: 84.14 kB / 0.5459 GB, free: 24.61 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.24e-05/0.2767, allocations: 75.28 kB / 0.546 GB, free: 24.54 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.925e-05/0.2767, allocations: 109.8 kB / 0.5461 GB, free: 24.42 MB / 382.1 MB Notification: Performance of pre-optimization done (n=0): time 8.42e-07/0.2767, allocations: 3.406 kB / 0.5461 GB, free: 24.42 MB / 382.1 MB Notification: Performance of matching and sorting (n=0): time 5.629e-05/0.2767, allocations: 25.7 kB / 0.5461 GB, free: 24.39 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.608e-05/0.2768, allocations: 130.6 kB / 0.5463 GB, free: 24.25 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.687e-05/0.2768, allocations: 107.8 kB / 0.5464 GB, free: 24.14 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.528e-06/0.2768, allocations: 25.7 kB / 0.5464 GB, free: 24.11 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.781e-05/0.2769, allocations: 91.22 kB / 0.5465 GB, free: 24.02 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.355e-06/0.2769, allocations: 0 / 0.5465 GB, free: 24.02 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.228e-05/0.2769, allocations: 20.19 kB / 0.5465 GB, free: 24 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 3.482e-05/0.2769, allocations: 310.8 kB / 0.5468 GB, free: 23.69 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.934e-06/0.2769, allocations: 0 / 0.5468 GB, free: 23.69 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.007e-05/0.2769, allocations: 21 kB / 0.5468 GB, free: 23.67 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.255e-05/0.277, allocations: 16.84 kB / 0.5468 GB, free: 23.65 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.303e-06/0.277, allocations: 0 / 0.5468 GB, free: 23.65 MB / 382.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 7.9e-05/0.277, allocations: 50.5 kB / 0.5469 GB, free: 23.61 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.121e-05/0.277, allocations: 10.38 kB / 0.5469 GB, free: 23.6 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.148e-06/0.277, allocations: 0 / 0.5469 GB, free: 23.6 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.17e-05/0.2771, allocations: 0 / 0.5469 GB, free: 23.6 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.67e-05/0.2771, allocations: 7.406 kB / 0.5469 GB, free: 23.6 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.89e-06/0.2771, allocations: 3.219 kB / 0.5469 GB, free: 23.6 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.11e-05/0.2771, allocations: 0 / 0.5469 GB, free: 23.6 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.278e-06/0.2771, allocations: 0 / 0.5469 GB, free: 23.6 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (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 prepare postOptimizeDAE: time 4.352e-05/0.2772, allocations: 195.7 kB / 0.5471 GB, free: 23.4 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.261e-05/0.2772, allocations: 101 kB / 0.5472 GB, free: 23.3 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.048e-05/0.2772, allocations: 119 kB / 0.5473 GB, free: 23.18 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.828e-05/0.2773, allocations: 184.2 kB / 0.5475 GB, free: 22.99 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.066e-05/0.2773, allocations: 179.9 kB / 0.5476 GB, free: 22.81 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.946e-05/0.2773, allocations: 183.4 kB / 0.5478 GB, free: 22.63 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001077/0.2774, allocations: 382.9 kB / 0.5482 GB, free: 22.21 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.18e-05/0.2774, allocations: 101 kB / 0.5483 GB, free: 22.11 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.214e-05/0.2774, allocations: 104.9 kB / 0.5484 GB, free: 22 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.983e-05/0.2774, allocations: 183.4 kB / 0.5486 GB, free: 21.81 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.06e-05/0.2775, allocations: 180.2 kB / 0.5487 GB, free: 21.63 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.828e-05/0.2775, allocations: 179.6 kB / 0.5489 GB, free: 21.45 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.127e-05/0.2775, allocations: 187.5 kB / 0.5491 GB, free: 21.26 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.35e-05/0.2776, allocations: 306.9 kB / 0.5494 GB, free: 20.94 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.966e-05/0.2776, allocations: 112.4 kB / 0.5495 GB, free: 20.83 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.784e-05/0.2776, allocations: 183.4 kB / 0.5497 GB, free: 20.64 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.477e-05/0.2777, allocations: 101 kB / 0.5497 GB, free: 20.54 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.411e-05/0.2777, allocations: 180.2 kB / 0.5499 GB, free: 20.36 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.188e-05/0.2777, allocations: 107.5 kB / 0.55 GB, free: 20.25 MB / 382.1 MB Notification: Performance of sorting global known variables: time 2.13e-05/0.2777, allocations: 86.53 kB / 0.5501 GB, free: 20.17 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2777, allocations: 0 / 0.5501 GB, free: 20.17 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002127/0.2779, allocations: 3.125 kB / 0.5501 GB, free: 20.17 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 (0): * Single equations (assignments): 0 * 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.0001737/0.2781, allocations: 0.8083 MB / 0.5509 GB, free: 19.35 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 6.212e-05/0.2782, allocations: 7.188 kB / 0.5509 GB, free: 19.34 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.2782, allocations: 0 / 0.5509 GB, free: 19.34 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 1.022e-06/0.2782, allocations: 0 / 0.5509 GB, free: 19.34 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002432/0.2784, allocations: 458.9 kB / 0.5513 GB, free: 18.89 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005548/0.279, allocations: 1.293 MB / 0.5526 GB, free: 17.57 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.629e-05/0.2791, allocations: 0.6753 MB / 0.5533 GB, free: 16.87 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 1.65e-05/0.2791, allocations: 0 / 0.5533 GB, free: 16.87 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.534e-05/0.2791, allocations: 11.44 kB / 0.5533 GB, free: 16.86 MB / 382.1 MB Notification: Performance of SimCode: time 3.21e-07/0.2791, allocations: 0 / 0.5533 GB, free: 16.86 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03032/0.3094, allocations: 1.095 MB / 0.5543 GB, free: 16.48 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.74/11.05, allocations: 10.95 kB / 0.5544 GB, free: 16.48 MB / 382.1 MB " [Timeout remaining time 649] (rm -f HanserModelica_HanserModelica.Classes.MixedDeclaration.pipe ; mkfifo HanserModelica_HanserModelica.Classes.MixedDeclaration.pipe ; head -c 1048576 < HanserModelica_HanserModelica.Classes.MixedDeclaration.pipe >> ../files/HanserModelica_HanserModelica.Classes.MixedDeclaration.sim & python3 -m fmpy simulate --output-file HanserModelica_HanserModelica.Classes.MixedDeclaration_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_Classes_MixedDeclaration.fmu > HanserModelica_HanserModelica.Classes.MixedDeclaration.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 13.760745895997388] Failed to read output from testmodel.py, exit status != 0: 11.147034882997104 11.159247678 10.880854644 Calling exit ...