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.001837/0.001837, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.6/1.6, allocations: 230.6 MB / 252.7 MB, free: 14.27 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.001912/0.001912, allocations: 213.8 kB / 309.2 MB, free: 3.16 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.04444/0.04444, allocations: 8.916 MB / 374.6 MB, free: 6.645 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.002855/0.002855, allocations: 79.88 kB / 0.4891 GB, free: 44.79 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09169/0.09454, allocations: 55.62 MB / 0.5434 GB, free: 5.074 MB / 366.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Classes.MixedDeclaration): time 0.002691/0.09723, allocations: 1.28 MB / 0.5447 GB, free: 3.781 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 5.684e-05/0.09729, allocations: 3.984 kB / 0.5447 GB, free: 3.777 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.168e-05/0.09732, allocations: 4 kB / 0.5447 GB, free: 3.773 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 3.74e-05/0.09736, allocations: 3.938 kB / 0.5447 GB, free: 3.77 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 6.975e-05/0.09743, allocations: 0 / 0.5447 GB, free: 3.77 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 1.754e-05/0.09744, allocations: 4 kB / 0.5447 GB, free: 3.766 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 6.466e-05/0.09751, allocations: 11.94 kB / 0.5447 GB, free: 3.754 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.929e-05/0.09758, allocations: 3.984 kB / 0.5447 GB, free: 3.75 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.619e-05/0.0976, allocations: 4 kB / 0.5447 GB, free: 3.746 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.759e-05/0.09764, allocations: 3.938 kB / 0.5447 GB, free: 3.742 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 1.262e-05/0.09765, allocations: 0 / 0.5447 GB, free: 3.742 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.811e-06/0.09766, allocations: 0 / 0.5447 GB, free: 3.742 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 1.448e-05/0.09768, allocations: 0 / 0.5447 GB, free: 3.742 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 2.632e-05/0.0977, allocations: 7.938 kB / 0.5447 GB, free: 3.734 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 7.21e-05/0.09777, allocations: 12.2 kB / 0.5447 GB, free: 3.723 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.015e-06/0.09778, allocations: 11.98 kB / 0.5448 GB, free: 3.711 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.09778, allocations: 0 / 0.5448 GB, free: 3.711 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.3e-06/0.09779, allocations: 0 / 0.5448 GB, free: 3.711 MB / 366.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.0003801/0.09817, allocations: 230.5 kB / 0.545 GB, free: 3.453 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5e-05/0.09822, allocations: 15.98 kB / 0.545 GB, free: 3.438 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.183e-05/0.09826, allocations: 30.75 kB / 0.545 GB, free: 3.398 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.638e-05/0.09829, allocations: 8.891 kB / 0.545 GB, free: 3.391 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001315/0.09842, allocations: 118.5 kB / 0.5451 GB, free: 3.25 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.169e-05/0.09843, allocations: 384 / 0.5451 GB, free: 3.25 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.283e-06/0.09844, allocations: 384 / 0.5451 GB, free: 3.25 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.802e-05/0.09853, allocations: 43.92 kB / 0.5452 GB, free: 3.195 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.848e-06/0.09854, allocations: 7.938 kB / 0.5452 GB, free: 3.188 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.414e-06/0.09854, allocations: 0 / 0.5452 GB, free: 3.188 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.702e-06/0.09855, allocations: 4 kB / 0.5452 GB, free: 3.184 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.109e-05/0.09857, allocations: 4 kB / 0.5452 GB, free: 3.18 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003962/0.09897, allocations: 446.6 kB / 0.5456 GB, free: 2.695 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000101/0.09907, allocations: 169.1 kB / 0.5458 GB, free: 2.52 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.325e-05/0.09911, allocations: 84.14 kB / 0.5459 GB, free: 2.434 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.512e-05/0.09915, allocations: 79.22 kB / 0.5459 GB, free: 2.355 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.862e-05/0.0992, allocations: 109.8 kB / 0.546 GB, free: 2.238 MB / 366.1 MB Notification: Performance of pre-optimization done (n=0): time 8.81e-07/0.09921, allocations: 0 / 0.546 GB, free: 2.238 MB / 366.1 MB Notification: Performance of matching and sorting (n=0): time 7.474e-05/0.09928, allocations: 37.64 kB / 0.5461 GB, free: 2.195 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.58e-05/0.09936, allocations: 126.7 kB / 0.5462 GB, free: 2.059 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.663e-05/0.09945, allocations: 105.8 kB / 0.5463 GB, free: 1.945 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.587e-05/0.09947, allocations: 25.7 kB / 0.5463 GB, free: 1.914 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.064e-05/0.09953, allocations: 88.09 kB / 0.5464 GB, free: 1.824 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.795e-06/0.09953, allocations: 0 / 0.5464 GB, free: 1.824 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.443e-05/0.09957, allocations: 17.67 kB / 0.5464 GB, free: 1.801 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001334/0.0997, allocations: 310.8 kB / 0.5467 GB, free: 1.488 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.238e-05/0.09971, allocations: 4 kB / 0.5467 GB, free: 1.484 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.799e-05/0.09973, allocations: 13.72 kB / 0.5467 GB, free: 1.465 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.951e-05/0.09977, allocations: 29.64 kB / 0.5468 GB, free: 1.43 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.09977, allocations: 0 / 0.5468 GB, free: 1.43 MB / 366.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001089/0.09988, allocations: 41.7 kB / 0.5468 GB, free: 1.383 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.574e-05/0.0999, allocations: 4 kB / 0.5468 GB, free: 1.379 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.961e-06/0.0999, allocations: 3.938 kB / 0.5468 GB, free: 1.375 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.413e-05/0.09992, allocations: 0 / 0.5468 GB, free: 1.375 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.981e-05/0.09997, allocations: 4 kB / 0.5468 GB, free: 1.371 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.15e-06/0.09997, allocations: 0 / 0.5468 GB, free: 1.371 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.781e-05/0.1, allocations: 8.047 kB / 0.5468 GB, free: 1.363 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.839e-06/0.1, allocations: 4 kB / 0.5468 GB, free: 1.359 MB / 366.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 0.0001132/0.1001, allocations: 185.1 kB / 0.547 GB, free: 1.168 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.802e-05/0.1002, allocations: 109 kB / 0.5471 GB, free: 1.055 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.106e-05/0.1003, allocations: 108.1 kB / 0.5472 GB, free: 0.9453 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.318e-05/0.1003, allocations: 184.2 kB / 0.5474 GB, free: 0.7578 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.255e-05/0.1004, allocations: 184.3 kB / 0.5476 GB, free: 0.5703 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.713e-05/0.1005, allocations: 180.2 kB / 0.5477 GB, free: 396 kB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000279/0.1008, allocations: 376.2 kB / 0.5481 GB, free: 15.97 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.38e-05/0.1008, allocations: 112.9 kB / 0.5482 GB, free: 15.85 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.205e-05/0.1009, allocations: 101.2 kB / 0.5483 GB, free: 15.75 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.195e-05/0.101, allocations: 184.2 kB / 0.5485 GB, free: 15.56 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.272e-05/0.101, allocations: 188.3 kB / 0.5487 GB, free: 15.37 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.761e-05/0.1011, allocations: 176.3 kB / 0.5488 GB, free: 15.19 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.808e-05/0.1012, allocations: 188.1 kB / 0.549 GB, free: 15 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001665/0.1014, allocations: 312 kB / 0.5493 GB, free: 14.67 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.663e-05/0.1014, allocations: 109 kB / 0.5494 GB, free: 14.55 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.728e-05/0.1015, allocations: 180.2 kB / 0.5496 GB, free: 14.37 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001007/0.1016, allocations: 112.9 kB / 0.5497 GB, free: 14.25 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.941e-05/0.1017, allocations: 176.3 kB / 0.5499 GB, free: 14.07 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.099e-05/0.1017, allocations: 108.9 kB / 0.55 GB, free: 13.96 MB / 382.1 MB Notification: Performance of sorting global known variables: time 5.155e-05/0.1018, allocations: 91.28 kB / 0.55 GB, free: 13.87 MB / 382.1 MB Notification: Performance of sort global known variables: time 6e-08/0.1018, allocations: 0 / 0.55 GB, free: 13.87 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002233/0.102, allocations: 0 / 0.55 GB, free: 13.87 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.0004705/0.1025, allocations: 0.8009 MB / 0.5508 GB, free: 13.04 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 7.762e-05/0.1026, allocations: 7.938 kB / 0.5508 GB, free: 13.03 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.1026, allocations: 0 / 0.5508 GB, free: 13.03 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 1.603e-06/0.1026, allocations: 4 kB / 0.5508 GB, free: 13.03 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004018/0.103, allocations: 460 kB / 0.5513 GB, free: 12.58 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001066/0.104, allocations: 1.288 MB / 0.5525 GB, free: 11.2 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.653e-05/0.1041, allocations: 55.36 kB / 0.5526 GB, free: 11.13 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 1.886e-05/0.1041, allocations: 0 / 0.5526 GB, free: 11.13 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.517e-05/0.1042, allocations: 7.438 kB / 0.5526 GB, free: 11.12 MB / 382.1 MB Notification: Performance of SimCode: time 2.81e-07/0.1042, allocations: 0 / 0.5526 GB, free: 11.12 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02971/0.1339, allocations: 1.481 MB / 0.554 GB, free: 9.742 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.88/11.02, allocations: 12.7 kB / 0.5541 GB, free: 9.738 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: 14.302187117282301] Failed to read output from testmodel.py, exit status != 0: 11.119794005993754 11.31747423 11.217128208 Calling exit ...