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.001357/0.001357, allocations: 117.4 kB / 17.17 MB, free: 5.977 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.496/1.496, allocations: 230.6 MB / 250.5 MB, free: 9.215 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.002375/0.002375, allocations: 209.4 kB / 306.7 MB, free: 4.289 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.04435/0.04435, allocations: 8.913 MB / 371.7 MB, free: 3.414 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.VariablesTypes.ComplexCalculation,fileNamePrefix="HanserModelica_HanserModelica_VariablesTypes_ComplexCalculation",fmuType="cs",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.002474/0.002474, allocations: 83.88 kB / 496.4 MB, free: 9.836 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2862/0.2886, allocations: 55.56 MB / 0.539 GB, free: 26.63 MB / 382.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.VariablesTypes.ComplexCalculation): time 0.002287/0.2909, allocations: 1.4 MB / 0.5404 GB, free: 25.64 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001091/0.292, allocations: 0.9344 MB / 0.5413 GB, free: 24.99 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.673e-05/0.292, allocations: 0 / 0.5413 GB, free: 24.99 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002523/0.2923, allocations: 95.95 kB / 0.5414 GB, free: 24.94 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 6.454e-05/0.2924, allocations: 7.125 kB / 0.5414 GB, free: 24.94 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005164/0.2929, allocations: 298 kB / 0.5417 GB, free: 24.76 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001448/0.293, allocations: 35.02 kB / 0.5417 GB, free: 24.75 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.015e-05/0.2931, allocations: 2.672 kB / 0.5417 GB, free: 24.75 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.908e-05/0.2932, allocations: 29.05 kB / 0.5418 GB, free: 24.73 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.591e-05/0.2932, allocations: 10.25 kB / 0.5418 GB, free: 24.73 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.004e-05/0.2932, allocations: 0 / 0.5418 GB, free: 24.73 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001881/0.2934, allocations: 135.7 kB / 0.5419 GB, free: 24.68 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 9.258e-06/0.2934, allocations: 3.938 kB / 0.5419 GB, free: 24.67 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.108e-05/0.2934, allocations: 21.03 kB / 0.5419 GB, free: 24.66 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000187/0.2936, allocations: 132.9 kB / 0.5421 GB, free: 24.6 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.928e-06/0.2936, allocations: 0 / 0.5421 GB, free: 24.6 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.2936, allocations: 0 / 0.5421 GB, free: 24.6 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.199e-06/0.2936, allocations: 3.938 kB / 0.5421 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.0008094/0.2944, allocations: 446.7 kB / 0.5425 GB, free: 24.2 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.383e-05/0.2945, allocations: 9.594 kB / 0.5425 GB, free: 24.2 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.145e-05/0.2945, allocations: 192 / 0.5425 GB, free: 24.2 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 1.942e-05/0.2945, allocations: 33.94 kB / 0.5425 GB, free: 24.16 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.318e-05/0.2945, allocations: 4.891 kB / 0.5425 GB, free: 24.16 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.712e-05/0.2946, allocations: 163.5 kB / 0.5427 GB, free: 23.96 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.134e-06/0.2946, allocations: 384 / 0.5427 GB, free: 23.96 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.57e-05/0.2946, allocations: 7.625 kB / 0.5427 GB, free: 23.96 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001153/0.2947, allocations: 57.59 kB / 0.5428 GB, free: 23.91 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.777e-06/0.2947, allocations: 0 / 0.5428 GB, free: 23.91 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.889e-06/0.2948, allocations: 4 kB / 0.5428 GB, free: 23.91 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.348e-06/0.2948, allocations: 0 / 0.5428 GB, free: 23.91 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.508e-05/0.2948, allocations: 38.69 kB / 0.5428 GB, free: 23.89 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001393/0.295, allocations: 188.1 kB / 0.543 GB, free: 23.69 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001432/0.2951, allocations: 57.09 kB / 0.543 GB, free: 23.65 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.564e-05/0.2952, allocations: 28.33 kB / 0.5431 GB, free: 23.63 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.101e-05/0.2952, allocations: 7.938 kB / 0.5431 GB, free: 23.62 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.188e-05/0.2952, allocations: 34.56 kB / 0.5431 GB, free: 23.58 MB / 382.1 MB Notification: Performance of pre-optimization done (n=6): time 9.22e-07/0.2952, allocations: 0 / 0.5431 GB, free: 23.58 MB / 382.1 MB Notification: Performance of matching and sorting (n=6): time 0.0002093/0.2954, allocations: 103.6 kB / 0.5432 GB, free: 23.52 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.764e-05/0.2954, allocations: 51.41 kB / 0.5432 GB, free: 23.45 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.068e-05/0.2955, allocations: 103.6 kB / 0.5433 GB, free: 23.35 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.013e-05/0.2955, allocations: 32.77 kB / 0.5434 GB, free: 23.32 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.289e-05/0.2955, allocations: 80.14 kB / 0.5435 GB, free: 23.23 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.023e-05/0.2955, allocations: 30.44 kB / 0.5435 GB, free: 23.21 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.432e-05/0.2956, allocations: 21 kB / 0.5435 GB, free: 23.19 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.393e-05/0.2956, allocations: 317.7 kB / 0.5438 GB, free: 22.88 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.573e-05/0.2957, allocations: 14.62 kB / 0.5438 GB, free: 22.87 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.278e-05/0.2957, allocations: 23.98 kB / 0.5438 GB, free: 22.86 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.443e-05/0.2958, allocations: 43.89 kB / 0.5439 GB, free: 22.83 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.433e-06/0.2958, allocations: 3.312 kB / 0.5439 GB, free: 22.83 MB / 382.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001074/0.2959, allocations: 82.77 kB / 0.544 GB, free: 22.77 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.14e-05/0.2959, allocations: 6.5 kB / 0.544 GB, free: 22.77 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.238e-06/0.2959, allocations: 0 / 0.544 GB, free: 22.77 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.512e-05/0.2959, allocations: 4 kB / 0.544 GB, free: 22.77 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001038/0.296, allocations: 13 kB / 0.544 GB, free: 22.77 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.37e-06/0.296, allocations: 0 / 0.544 GB, free: 22.77 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.411e-05/0.2961, allocations: 7.891 kB / 0.544 GB, free: 22.76 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.093e-06/0.2961, allocations: 3.25 kB / 0.544 GB, free: 22.76 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 4.864e-05/0.2961, allocations: 110.7 kB / 0.5441 GB, free: 22.64 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.224e-05/0.2961, allocations: 7.031 kB / 0.5441 GB, free: 22.64 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001739/0.2963, allocations: 104.3 kB / 0.5442 GB, free: 22.57 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.643e-06/0.2963, allocations: 0 / 0.5442 GB, free: 22.57 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.441e-06/0.2963, allocations: 7.844 kB / 0.5442 GB, free: 22.57 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.376e-06/0.2963, allocations: 0 / 0.5442 GB, free: 22.57 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001079/0.2964, allocations: 184.3 kB / 0.5444 GB, free: 22.36 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.283e-06/0.2964, allocations: 3.938 kB / 0.5444 GB, free: 22.36 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.897e-05/0.2965, allocations: 16.94 kB / 0.5444 GB, free: 22.36 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.583e-06/0.2965, allocations: 0 / 0.5444 GB, free: 22.36 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.056e-05/0.2965, allocations: 3.281 kB / 0.5444 GB, free: 22.36 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.203e-06/0.2965, allocations: 0 / 0.5444 GB, free: 22.36 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.42e-07/0.2965, allocations: 0 / 0.5444 GB, free: 22.36 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001361/0.2966, allocations: 119.6 kB / 0.5445 GB, free: 22.26 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.153e-05/0.2967, allocations: 91.72 kB / 0.5446 GB, free: 22.15 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.589e-05/0.2967, allocations: 7.219 kB / 0.5446 GB, free: 22.15 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.66e-05/0.2967, allocations: 4 kB / 0.5446 GB, free: 22.14 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.349e-05/0.2968, allocations: 3.25 kB / 0.5446 GB, free: 22.14 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.47e-06/0.2968, allocations: 3.188 kB / 0.5446 GB, free: 22.14 MB / 382.1 MB Notification: Performance of sorting global known variables: time 2.213e-05/0.2968, allocations: 85.8 kB / 0.5447 GB, free: 22.07 MB / 382.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2968, allocations: 0 / 0.5447 GB, free: 22.07 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0001917/0.297, allocations: 16.5 kB / 0.5447 GB, free: 22.06 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.0002924/0.2973, allocations: 0.6657 MB / 0.5454 GB, free: 21.43 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001411/0.2974, allocations: 43.95 kB / 0.5454 GB, free: 21.42 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/0.2974, allocations: 0 / 0.5454 GB, free: 21.42 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 4.665e-05/0.2975, allocations: 42.53 kB / 0.5455 GB, free: 21.4 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001386/0.2976, allocations: 0 / 0.5455 GB, free: 21.4 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004009/0.298, allocations: 197.4 kB / 0.5457 GB, free: 21.23 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001026/0.2981, allocations: 0.6889 MB / 0.5463 GB, free: 20.53 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 2.658e-05/0.2981, allocations: 2.969 kB / 0.5463 GB, free: 20.53 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.929e-05/0.2982, allocations: 14.47 kB / 0.5463 GB, free: 20.52 MB / 382.1 MB Notification: Performance of SimCode: time 2.7e-07/0.2982, allocations: 0 / 0.5463 GB, free: 20.52 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01734/0.3155, allocations: 1.994 MB / 0.5483 GB, free: 20.08 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.665/8.981, allocations: 26.8 kB / 0.5483 GB, free: 20.06 MB / 382.1 MB " [Timeout remaining time 651] (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: 11.6833600049722] Failed to read output from testmodel.py, exit status != 0: 9.106289559043944 9.128732664 8.830142727 Calling exit ...