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.001288/0.001288, allocations: 110.4 kB / 18.94 MB, free: 2.793 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.46/1.46, allocations: 230.6 MB / 252.6 MB, free: 8.281 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.001698/0.001698, allocations: 224.4 kB / 309.2 MB, free: 3.113 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.04163/0.04163, allocations: 8.913 MB / 374.6 MB, free: 1.875 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.00279/0.00279, allocations: 86.84 kB / 0.4892 GB, free: 7.344 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.293/0.2958, allocations: 55.6 MB / 0.5435 GB, free: 26.64 MB / 382.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.VariablesTypes.ComplexCalculation): time 0.001959/0.2977, allocations: 1.407 MB / 0.5449 GB, free: 25.64 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001049/0.2988, allocations: 0.9472 MB / 0.5458 GB, free: 24.98 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.465e-05/0.2988, allocations: 0 / 0.5458 GB, free: 24.98 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002497/0.2991, allocations: 90.62 kB / 0.5459 GB, free: 24.94 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 5.958e-05/0.2991, allocations: 14.22 kB / 0.5459 GB, free: 24.93 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004782/0.2996, allocations: 288.6 kB / 0.5462 GB, free: 24.76 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001215/0.2997, allocations: 41.84 kB / 0.5462 GB, free: 24.74 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.16e-05/0.2998, allocations: 0 / 0.5462 GB, free: 24.74 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.314e-05/0.2999, allocations: 25.5 kB / 0.5462 GB, free: 24.73 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.792e-05/0.2999, allocations: 14 kB / 0.5462 GB, free: 24.72 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.143e-05/0.2999, allocations: 0 / 0.5462 GB, free: 24.72 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002105/0.3001, allocations: 130 kB / 0.5464 GB, free: 24.68 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.021e-05/0.3001, allocations: 7.312 kB / 0.5464 GB, free: 24.67 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.252e-05/0.3002, allocations: 14.38 kB / 0.5464 GB, free: 24.66 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002141/0.3004, allocations: 140.5 kB / 0.5465 GB, free: 24.6 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.81e-06/0.3004, allocations: 0 / 0.5465 GB, free: 24.6 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.3004, allocations: 0 / 0.5465 GB, free: 24.6 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.244e-05/0.3004, allocations: 0 / 0.5465 GB, free: 24.6 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.0008107/0.3012, allocations: 357.9 kB / 0.5469 GB, free: 24.3 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.581e-05/0.3012, allocations: 9.594 kB / 0.5469 GB, free: 24.3 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.679e-05/0.3013, allocations: 42.08 kB / 0.5469 GB, free: 24.26 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.634e-05/0.3013, allocations: 8.016 kB / 0.5469 GB, free: 24.25 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.334e-05/0.3014, allocations: 113.5 kB / 0.547 GB, free: 24.12 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.178e-05/0.3014, allocations: 384 / 0.547 GB, free: 24.12 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.422e-05/0.3014, allocations: 3.562 kB / 0.547 GB, free: 24.12 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001232/0.3015, allocations: 61.61 kB / 0.5471 GB, free: 24.07 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.185e-06/0.3015, allocations: 0 / 0.5471 GB, free: 24.07 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.769e-06/0.3015, allocations: 0 / 0.5471 GB, free: 24.07 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.095e-06/0.3015, allocations: 0 / 0.5471 GB, free: 24.07 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.431e-05/0.3016, allocations: 33.38 kB / 0.5471 GB, free: 24.06 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001356/0.3017, allocations: 155.3 kB / 0.5473 GB, free: 23.89 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001672/0.3019, allocations: 64.45 kB / 0.5473 GB, free: 23.85 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.343e-05/0.302, allocations: 29.8 kB / 0.5474 GB, free: 23.83 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.998e-05/0.302, allocations: 0 / 0.5474 GB, free: 23.83 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.857e-05/0.302, allocations: 38.06 kB / 0.5474 GB, free: 23.79 MB / 382.1 MB Notification: Performance of pre-optimization done (n=6): time 8.71e-07/0.302, allocations: 0 / 0.5474 GB, free: 23.79 MB / 382.1 MB Notification: Performance of matching and sorting (n=6): time 0.0002121/0.3022, allocations: 106.3 kB / 0.5475 GB, free: 23.71 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.541e-05/0.3022, allocations: 58.22 kB / 0.5476 GB, free: 23.65 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.354e-05/0.3023, allocations: 103.5 kB / 0.5477 GB, free: 23.55 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 9.017e-06/0.3023, allocations: 25.7 kB / 0.5477 GB, free: 23.52 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.029e-05/0.3023, allocations: 87.23 kB / 0.5478 GB, free: 23.43 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.93e-05/0.3023, allocations: 19.31 kB / 0.5478 GB, free: 23.41 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.07e-05/0.3024, allocations: 23.91 kB / 0.5478 GB, free: 23.39 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.501e-05/0.3024, allocations: 318.2 kB / 0.5481 GB, free: 23.07 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.56e-05/0.3025, allocations: 21.5 kB / 0.5481 GB, free: 23.06 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.088e-05/0.3025, allocations: 20.83 kB / 0.5481 GB, free: 23.05 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.537e-05/0.3026, allocations: 45.08 kB / 0.5482 GB, free: 23.03 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.423e-06/0.3026, allocations: 0 / 0.5482 GB, free: 23.03 MB / 382.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001073/0.3027, allocations: 80.12 kB / 0.5483 GB, free: 22.98 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.121e-05/0.3027, allocations: 9.938 kB / 0.5483 GB, free: 22.97 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.268e-06/0.3027, allocations: 0 / 0.5483 GB, free: 22.97 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.493e-05/0.3027, allocations: 0 / 0.5483 GB, free: 22.97 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001059/0.3028, allocations: 12.28 kB / 0.5483 GB, free: 22.97 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.471e-06/0.3028, allocations: 0 / 0.5483 GB, free: 22.97 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.243e-05/0.3029, allocations: 7.953 kB / 0.5483 GB, free: 22.96 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.364e-06/0.3029, allocations: 7.188 kB / 0.5483 GB, free: 22.96 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 5.058e-05/0.3029, allocations: 109.2 kB / 0.5484 GB, free: 22.85 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.177e-05/0.3029, allocations: 3.938 kB / 0.5484 GB, free: 22.84 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001648/0.3031, allocations: 104.4 kB / 0.5485 GB, free: 22.78 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.375e-06/0.3031, allocations: 3.156 kB / 0.5485 GB, free: 22.78 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.667e-06/0.3031, allocations: 0 / 0.5485 GB, free: 22.78 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.607e-06/0.3031, allocations: 4.672 kB / 0.5485 GB, free: 22.77 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.41e-05/0.3032, allocations: 162.6 kB / 0.5487 GB, free: 22.6 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.3032, allocations: 4 kB / 0.5487 GB, free: 22.6 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.828e-05/0.3033, allocations: 13.31 kB / 0.5487 GB, free: 22.59 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.723e-06/0.3033, allocations: 0 / 0.5487 GB, free: 22.59 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.318e-06/0.3033, allocations: 4 kB / 0.5487 GB, free: 22.59 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.933e-06/0.3033, allocations: 3.25 kB / 0.5487 GB, free: 22.59 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.914e-06/0.3033, allocations: 3.375 kB / 0.5487 GB, free: 22.59 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001264/0.3034, allocations: 108.9 kB / 0.5488 GB, free: 22.5 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.757e-06/0.3034, allocations: 15.17 kB / 0.5488 GB, free: 22.49 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.419e-05/0.3034, allocations: 7.938 kB / 0.5488 GB, free: 22.48 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.516e-05/0.3035, allocations: 3.312 kB / 0.5488 GB, free: 22.48 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.917e-05/0.3035, allocations: 7.516 kB / 0.5488 GB, free: 22.48 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.43e-06/0.3035, allocations: 7.094 kB / 0.5488 GB, free: 22.47 MB / 382.1 MB Notification: Performance of sorting global known variables: time 2.198e-05/0.3035, allocations: 81.78 kB / 0.5489 GB, free: 22.4 MB / 382.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3035, allocations: 3.938 kB / 0.5489 GB, free: 22.39 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0001927/0.3037, allocations: 16.84 kB / 0.5489 GB, free: 22.39 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.0002918/0.304, allocations: 0.6571 MB / 0.5496 GB, free: 21.77 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001396/0.3042, allocations: 55.88 kB / 0.5496 GB, free: 21.74 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/0.3042, allocations: 4 kB / 0.5496 GB, free: 21.74 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 4.071e-05/0.3042, allocations: 30.55 kB / 0.5497 GB, free: 21.73 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001414/0.3043, allocations: 4 kB / 0.5497 GB, free: 21.73 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003794/0.3047, allocations: 198.5 kB / 0.5499 GB, free: 21.55 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.175e-05/0.3048, allocations: 0.685 MB / 0.5505 GB, free: 20.86 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 2.909e-05/0.3048, allocations: 4 kB / 0.5505 GB, free: 20.86 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.413e-05/0.3049, allocations: 14.62 kB / 0.5505 GB, free: 20.84 MB / 382.1 MB Notification: Performance of SimCode: time 3.1e-07/0.3049, allocations: 0 / 0.5505 GB, free: 20.84 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02879/0.3337, allocations: 2.097 MB / 0.5526 GB, free: 20.4 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.99/11.33, allocations: 9.625 kB / 0.5526 GB, free: 20.39 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_VariablesTypes_ComplexCalculation_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_VariablesTypes_ComplexCalculation.fmu > HanserModelica_HanserModelica.VariablesTypes.ComplexCalculation.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 14.010909589007497] Failed to read output from testmodel.py, exit status != 0: 11.429478478152305 11.441084469 11.138099106 Calling exit ...