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.001272/0.001272, allocations: 108.9 kB / 16.46 MB, free: 6.453 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.532/1.532, allocations: 230.6 MB / 249.8 MB, free: 9.211 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.00163/0.00163, allocations: 229.5 kB / 306 MB, free: 4.277 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.04539/0.04539, allocations: 8.898 MB / 371 MB, free: 3.422 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.003173/0.003173, allocations: 79.89 kB / 495.7 MB, free: 9.848 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3277/0.3309, allocations: 55.57 MB / 0.5384 GB, free: 26.6 MB / 382.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.VariablesTypes.ComplexCalculation): time 0.002252/0.3331, allocations: 1.408 MB / 0.5397 GB, free: 25.61 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001133/0.3342, allocations: 0.9264 MB / 0.5406 GB, free: 24.96 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.783e-05/0.3343, allocations: 0 / 0.5406 GB, free: 24.96 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000274/0.3346, allocations: 95.62 kB / 0.5407 GB, free: 24.91 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 7.755e-05/0.3346, allocations: 11.16 kB / 0.5407 GB, free: 24.9 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005245/0.3352, allocations: 293.7 kB / 0.541 GB, free: 24.73 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001446/0.3353, allocations: 34.67 kB / 0.5411 GB, free: 24.71 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.242e-05/0.3354, allocations: 3.469 kB / 0.5411 GB, free: 24.71 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.399e-05/0.3354, allocations: 25.61 kB / 0.5411 GB, free: 24.7 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.317e-05/0.3355, allocations: 17.59 kB / 0.5411 GB, free: 24.69 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.105e-05/0.3355, allocations: 0 / 0.5411 GB, free: 24.69 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002256/0.3357, allocations: 131.7 kB / 0.5412 GB, free: 24.64 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 9.839e-06/0.3357, allocations: 3.984 kB / 0.5412 GB, free: 24.64 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.635e-05/0.3358, allocations: 17.78 kB / 0.5412 GB, free: 24.63 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002155/0.336, allocations: 135.2 kB / 0.5414 GB, free: 24.57 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.38e-06/0.336, allocations: 4 kB / 0.5414 GB, free: 24.57 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.984e-06/0.336, allocations: 0 / 0.5414 GB, free: 24.57 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.013e-06/0.336, allocations: 0 / 0.5414 GB, free: 24.57 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.0009266/0.3369, allocations: 446.6 kB / 0.5418 GB, free: 24.17 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.587e-05/0.337, allocations: 9.656 kB / 0.5418 GB, free: 24.17 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.823e-05/0.337, allocations: 30.75 kB / 0.5418 GB, free: 24.13 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.825e-05/0.337, allocations: 8.047 kB / 0.5419 GB, free: 24.12 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.696e-05/0.3371, allocations: 163.6 kB / 0.542 GB, free: 23.93 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.266e-05/0.3371, allocations: 384 / 0.542 GB, free: 23.93 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.323e-05/0.3372, allocations: 7.562 kB / 0.542 GB, free: 23.93 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001342/0.3373, allocations: 54.39 kB / 0.5421 GB, free: 23.88 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.197e-06/0.3373, allocations: 0 / 0.5421 GB, free: 23.88 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.164e-05/0.3373, allocations: 3.094 kB / 0.5421 GB, free: 23.88 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.791e-06/0.3373, allocations: 7.375 kB / 0.5421 GB, free: 23.88 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.406e-05/0.3374, allocations: 38.66 kB / 0.5421 GB, free: 23.86 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001734/0.3376, allocations: 185.3 kB / 0.5423 GB, free: 23.65 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001682/0.3377, allocations: 59.98 kB / 0.5423 GB, free: 23.61 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.366e-05/0.3378, allocations: 25.22 kB / 0.5424 GB, free: 23.6 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.342e-05/0.3378, allocations: 4 kB / 0.5424 GB, free: 23.59 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.973e-05/0.3378, allocations: 37.84 kB / 0.5424 GB, free: 23.55 MB / 382.1 MB Notification: Performance of pre-optimization done (n=6): time 9.62e-07/0.3378, allocations: 4 kB / 0.5424 GB, free: 23.55 MB / 382.1 MB Notification: Performance of matching and sorting (n=6): time 0.0002378/0.3381, allocations: 96.47 kB / 0.5425 GB, free: 23.48 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.49e-05/0.3381, allocations: 54.53 kB / 0.5426 GB, free: 23.42 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.151e-05/0.3382, allocations: 103.8 kB / 0.5427 GB, free: 23.32 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.333e-05/0.3382, allocations: 29.7 kB / 0.5427 GB, free: 23.29 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.794e-05/0.3382, allocations: 86.56 kB / 0.5428 GB, free: 23.2 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.207e-05/0.3382, allocations: 19.8 kB / 0.5428 GB, free: 23.18 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.703e-05/0.3383, allocations: 20.16 kB / 0.5428 GB, free: 23.16 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.374e-05/0.3383, allocations: 318.2 kB / 0.5431 GB, free: 22.85 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.026e-05/0.3384, allocations: 17.69 kB / 0.5431 GB, free: 22.84 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.562e-05/0.3384, allocations: 21.7 kB / 0.5431 GB, free: 22.83 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.744e-05/0.3385, allocations: 51.2 kB / 0.5432 GB, free: 22.8 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.3385, allocations: 3.938 kB / 0.5432 GB, free: 22.8 MB / 382.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001189/0.3386, allocations: 85.89 kB / 0.5433 GB, free: 22.74 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.313e-05/0.3386, allocations: 3.312 kB / 0.5433 GB, free: 22.74 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.849e-06/0.3386, allocations: 3.219 kB / 0.5433 GB, free: 22.74 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.599e-05/0.3387, allocations: 3.938 kB / 0.5433 GB, free: 22.73 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001115/0.3388, allocations: 13.88 kB / 0.5433 GB, free: 22.73 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.791e-06/0.3388, allocations: 0 / 0.5433 GB, free: 22.73 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.471e-05/0.3388, allocations: 7.078 kB / 0.5433 GB, free: 22.73 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.805e-06/0.3388, allocations: 0 / 0.5433 GB, free: 22.73 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.382e-05/0.3389, allocations: 113.9 kB / 0.5434 GB, free: 22.61 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.222e-05/0.3389, allocations: 7.062 kB / 0.5434 GB, free: 22.61 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000189/0.3391, allocations: 103.9 kB / 0.5435 GB, free: 22.54 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.863e-06/0.3391, allocations: 0 / 0.5435 GB, free: 22.54 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.759e-06/0.3391, allocations: 0 / 0.5435 GB, free: 22.54 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.489e-06/0.3391, allocations: 7.328 kB / 0.5435 GB, free: 22.53 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001263/0.3392, allocations: 183.9 kB / 0.5437 GB, free: 22.33 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/0.3392, allocations: 0 / 0.5437 GB, free: 22.33 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.407e-05/0.3393, allocations: 17.12 kB / 0.5437 GB, free: 22.32 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.063e-06/0.3393, allocations: 0 / 0.5437 GB, free: 22.32 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.063e-05/0.3393, allocations: 3.188 kB / 0.5437 GB, free: 22.32 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.603e-06/0.3393, allocations: 0 / 0.5437 GB, free: 22.32 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.52e-07/0.3393, allocations: 0 / 0.5437 GB, free: 22.32 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001545/0.3395, allocations: 123.6 kB / 0.5438 GB, free: 22.23 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.024e-05/0.3395, allocations: 92.94 kB / 0.5439 GB, free: 22.12 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.757e-05/0.3395, allocations: 3.094 kB / 0.5439 GB, free: 22.12 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.732e-05/0.3396, allocations: 4 kB / 0.5439 GB, free: 22.11 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.09e-05/0.3396, allocations: 2.625 kB / 0.5439 GB, free: 22.11 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.955e-06/0.3396, allocations: 7.438 kB / 0.544 GB, free: 22.11 MB / 382.1 MB Notification: Performance of sorting global known variables: time 3.307e-05/0.3396, allocations: 81.56 kB / 0.544 GB, free: 22.04 MB / 382.1 MB Notification: Performance of sort global known variables: time 5e-08/0.3396, allocations: 0 / 0.544 GB, free: 22.04 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002397/0.3399, allocations: 16.62 kB / 0.544 GB, free: 22.03 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.0003947/0.3403, allocations: 0.6622 MB / 0.5447 GB, free: 21.4 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001657/0.3404, allocations: 51.48 kB / 0.5447 GB, free: 21.39 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.885e-06/0.3404, allocations: 0 / 0.5447 GB, free: 21.39 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 4.655e-05/0.3405, allocations: 35.97 kB / 0.5448 GB, free: 21.37 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001683/0.3407, allocations: 0 / 0.5448 GB, free: 21.37 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004941/0.3412, allocations: 203 kB / 0.545 GB, free: 21.2 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000167/0.3413, allocations: 0.6817 MB / 0.5456 GB, free: 20.5 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 4.082e-05/0.3414, allocations: 7.031 kB / 0.5456 GB, free: 20.5 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.911e-05/0.3414, allocations: 17.81 kB / 0.5457 GB, free: 20.48 MB / 382.1 MB Notification: Performance of SimCode: time 4.21e-07/0.3414, allocations: 0 / 0.5457 GB, free: 20.48 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0239/0.3653, allocations: 1.956 MB / 0.5476 GB, free: 20.06 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.846/8.212, allocations: 12.77 kB / 0.5476 GB, free: 20.05 MB / 382.1 MB " [Timeout remaining time 652] (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: 11.104220813998836] Failed to read output from testmodel.py, exit status != 0: 8.282450734011945 8.295795485 7.956212454 Calling exit ...