Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.VariablesTypes.ComplexCalculation.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: 114.3 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.497/1.497, allocations: 230.6 MB / 252.6 MB, free: 8.32 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.001732/0.001732, allocations: 215.7 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.0413/0.0413, allocations: 8.914 MB / 374.6 MB, free: 1.914 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.VariablesTypes.ComplexCalculation,fileNamePrefix="HanserModelica_HanserModelica_VariablesTypes_ComplexCalculation",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.VariablesTypes.ComplexCalculation,fileNamePrefix="HanserModelica_HanserModelica_VariablesTypes_ComplexCalculation",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.002517/0.002517, allocations: 79.88 kB / 0.4892 GB, free: 7.387 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3279/0.3304, allocations: 55.6 MB / 0.5435 GB, free: 26.77 MB / 382.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.VariablesTypes.ComplexCalculation): time 0.003123/0.3335, allocations: 1.409 MB / 0.5449 GB, free: 25.77 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001632/0.3351, allocations: 0.945 MB / 0.5458 GB, free: 25.11 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.64e-05/0.3352, allocations: 3.094 kB / 0.5458 GB, free: 25.11 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004681/0.3357, allocations: 86.02 kB / 0.5459 GB, free: 25.07 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001176/0.3358, allocations: 11.08 kB / 0.5459 GB, free: 25.06 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000787/0.3366, allocations: 298.4 kB / 0.5462 GB, free: 24.89 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001868/0.3368, allocations: 35.11 kB / 0.5462 GB, free: 24.87 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.699e-05/0.3368, allocations: 7.141 kB / 0.5462 GB, free: 24.87 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001132/0.337, allocations: 20.62 kB / 0.5462 GB, free: 24.86 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.087e-05/0.337, allocations: 10.31 kB / 0.5462 GB, free: 24.86 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.298e-05/0.337, allocations: 0 / 0.5462 GB, free: 24.86 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003733/0.3374, allocations: 131.3 kB / 0.5464 GB, free: 24.81 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.446e-05/0.3374, allocations: 4 kB / 0.5464 GB, free: 24.8 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 3.481e-05/0.3374, allocations: 17.7 kB / 0.5464 GB, free: 24.8 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000362/0.3378, allocations: 140.1 kB / 0.5465 GB, free: 24.73 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.149e-06/0.3378, allocations: 4 kB / 0.5465 GB, free: 24.73 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.3378, allocations: 0 / 0.5465 GB, free: 24.73 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.033e-06/0.3378, allocations: 3.938 kB / 0.5465 GB, free: 24.73 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: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.001181/0.339, allocations: 361.7 kB / 0.5469 GB, free: 24.43 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.675e-05/0.3391, allocations: 9.75 kB / 0.5469 GB, free: 24.43 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.973e-05/0.3391, allocations: 30.75 kB / 0.5469 GB, free: 24.39 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.825e-05/0.3391, allocations: 8.141 kB / 0.5469 GB, free: 24.38 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001218/0.3393, allocations: 121 kB / 0.547 GB, free: 24.25 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.1e-05/0.3393, allocations: 384 / 0.547 GB, free: 24.25 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.932e-05/0.3393, allocations: 3.656 kB / 0.547 GB, free: 24.25 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001845/0.3395, allocations: 61.59 kB / 0.5471 GB, free: 24.2 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.321e-05/0.3395, allocations: 0 / 0.5471 GB, free: 24.2 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.318e-05/0.3395, allocations: 0 / 0.5471 GB, free: 24.2 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.51e-06/0.3395, allocations: 0 / 0.5471 GB, free: 24.2 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001168/0.3396, allocations: 38.7 kB / 0.5471 GB, free: 24.18 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002113/0.3398, allocations: 147.7 kB / 0.5473 GB, free: 24.02 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002214/0.3401, allocations: 75.7 kB / 0.5473 GB, free: 23.96 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.767e-05/0.3401, allocations: 22.8 kB / 0.5474 GB, free: 23.95 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.915e-05/0.3402, allocations: 3.281 kB / 0.5474 GB, free: 23.95 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.106e-05/0.3402, allocations: 34.5 kB / 0.5474 GB, free: 23.91 MB / 382.1 MB Notification: Performance of pre-optimization done (n=6): time 1.422e-06/0.3402, allocations: 0 / 0.5474 GB, free: 23.91 MB / 382.1 MB Notification: Performance of matching and sorting (n=6): time 0.0003099/0.3405, allocations: 102.4 kB / 0.5475 GB, free: 23.84 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.035e-05/0.3405, allocations: 55.34 kB / 0.5476 GB, free: 23.78 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.874e-05/0.3406, allocations: 110.9 kB / 0.5477 GB, free: 23.67 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.195e-05/0.3406, allocations: 25.7 kB / 0.5477 GB, free: 23.64 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.43e-05/0.3406, allocations: 84.14 kB / 0.5478 GB, free: 23.55 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.57e-05/0.3407, allocations: 18.98 kB / 0.5478 GB, free: 23.54 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.208e-05/0.3407, allocations: 20.39 kB / 0.5478 GB, free: 23.52 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.444e-05/0.3408, allocations: 317.9 kB / 0.5481 GB, free: 23.2 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.286e-05/0.3408, allocations: 20.98 kB / 0.5481 GB, free: 23.2 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.897e-05/0.3409, allocations: 10.84 kB / 0.5481 GB, free: 23.19 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001104/0.341, allocations: 58.69 kB / 0.5482 GB, free: 23.16 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.873e-06/0.341, allocations: 0 / 0.5482 GB, free: 23.16 MB / 382.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001734/0.3411, allocations: 86.38 kB / 0.5483 GB, free: 23.1 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.097e-05/0.3412, allocations: 8.5 kB / 0.5483 GB, free: 23.1 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.622e-06/0.3412, allocations: 0 / 0.5483 GB, free: 23.1 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.702e-05/0.3412, allocations: 0.6875 kB / 0.5483 GB, free: 23.1 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001296/0.3413, allocations: 9.312 kB / 0.5483 GB, free: 23.1 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.474e-06/0.3413, allocations: 0 / 0.5483 GB, free: 23.1 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.438e-05/0.3414, allocations: 3.953 kB / 0.5483 GB, free: 23.09 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.187e-05/0.3414, allocations: 6.562 kB / 0.5483 GB, free: 23.09 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * 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 initialization (6): * Single equations (assignments): 6 * 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 6.952e-05/0.3415, allocations: 113.8 kB / 0.5484 GB, free: 22.97 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.771e-05/0.3415, allocations: 7.062 kB / 0.5484 GB, free: 22.97 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002379/0.3417, allocations: 112 kB / 0.5485 GB, free: 22.89 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.088e-06/0.3417, allocations: 6.938 kB / 0.5485 GB, free: 22.89 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.33e-06/0.3417, allocations: 0 / 0.5485 GB, free: 22.89 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.767e-06/0.3417, allocations: 0 / 0.5485 GB, free: 22.89 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001356/0.3419, allocations: 150.2 kB / 0.5487 GB, free: 22.73 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.254e-06/0.3419, allocations: 3.469 kB / 0.5487 GB, free: 22.73 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001087/0.342, allocations: 17.53 kB / 0.5487 GB, free: 22.72 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.186e-06/0.342, allocations: 4 kB / 0.5487 GB, free: 22.71 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.284e-05/0.342, allocations: 3.156 kB / 0.5487 GB, free: 22.71 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.094e-06/0.342, allocations: 0 / 0.5487 GB, free: 22.71 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.352e-06/0.342, allocations: 0 / 0.5487 GB, free: 22.71 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001924/0.3422, allocations: 119.5 kB / 0.5488 GB, free: 22.62 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.353e-05/0.3422, allocations: 19.11 kB / 0.5488 GB, free: 22.61 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.034e-05/0.3422, allocations: 0 / 0.5488 GB, free: 22.61 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.529e-05/0.3423, allocations: 0 / 0.5488 GB, free: 22.61 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.074e-05/0.3423, allocations: 10.66 kB / 0.5488 GB, free: 22.6 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.652e-06/0.3423, allocations: 0 / 0.5488 GB, free: 22.6 MB / 382.1 MB Notification: Performance of sorting global known variables: time 2.861e-05/0.3424, allocations: 85.47 kB / 0.5489 GB, free: 22.52 MB / 382.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3424, allocations: 0 / 0.5489 GB, free: 22.52 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003533/0.3427, allocations: 13.66 kB / 0.5489 GB, free: 22.52 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 (8): * Single equations (assignments): 8 * 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.0004362/0.3432, allocations: 0.6587 MB / 0.5496 GB, free: 21.9 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002092/0.3434, allocations: 55.73 kB / 0.5496 GB, free: 21.88 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.687e-06/0.3434, allocations: 3.938 kB / 0.5496 GB, free: 21.87 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 6.566e-05/0.3434, allocations: 27.48 kB / 0.5497 GB, free: 21.86 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002315/0.3437, allocations: 11.28 kB / 0.5497 GB, free: 21.86 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006236/0.3443, allocations: 195.9 kB / 0.5499 GB, free: 21.68 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001133/0.3444, allocations: 0.681 MB / 0.5505 GB, free: 20.99 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 4.619e-05/0.3444, allocations: 6.438 kB / 0.5505 GB, free: 20.99 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.538e-05/0.3445, allocations: 18.41 kB / 0.5505 GB, free: 20.97 MB / 382.1 MB Notification: Performance of SimCode: time 5.71e-07/0.3445, allocations: 0 / 0.5505 GB, free: 20.97 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03407/0.3786, allocations: 2.091 MB / 0.5526 GB, free: 20.53 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.82/11.2, allocations: 7.938 kB / 0.5526 GB, free: 20.52 MB / 382.1 MB " [Timeout remaining time 649] (rm -f HanserModelica_HanserModelica.VariablesTypes.ComplexCalculation.pipe ; mkfifo HanserModelica_HanserModelica.VariablesTypes.ComplexCalculation.pipe ; head -c 1048576 < HanserModelica_HanserModelica.VariablesTypes.ComplexCalculation.pipe >> ../files/HanserModelica_HanserModelica.VariablesTypes.ComplexCalculation.sim & python3 -m fmpy simulate --output-file HanserModelica_HanserModelica.VariablesTypes.ComplexCalculation_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_VariablesTypes_ComplexCalculation.fmu > HanserModelica_HanserModelica.VariablesTypes.ComplexCalculation.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 14.053198203000647] Failed to read output from testmodel.py, exit status != 0: 11.304989037002088 11.323512214 10.981711175 Calling exit ...