Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.Thermal.Coupling.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.00171/0.00171, allocations: 109.2 kB / 18.94 MB, free: 2.949 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.512/1.512, allocations: 230.6 MB / 252.7 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.001623/0.001623, allocations: 215.9 kB / 309.2 MB, free: 3.137 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.04144/0.04144, allocations: 8.916 MB / 374.6 MB, free: 1.898 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.Thermal.Coupling,fileNamePrefix="HanserModelica_HanserModelica_Thermal_Coupling",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.Thermal.Coupling,fileNamePrefix="HanserModelica_HanserModelica_Thermal_Coupling",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.003607/0.003607, allocations: 79.88 kB / 0.4892 GB, free: 7.367 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.303/0.3066, allocations: 55.61 MB / 0.5435 GB, free: 26.76 MB / 382.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Thermal.Coupling): time 0.003556/0.3101, allocations: 2.482 MB / 0.5459 GB, free: 25.02 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001098/0.3112, allocations: 0.6185 MB / 0.5465 GB, free: 24.58 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001139/0.3114, allocations: 3.188 kB / 0.5465 GB, free: 24.58 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001314/0.3115, allocations: 37.3 kB / 0.5466 GB, free: 24.56 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000117/0.3116, allocations: 75.31 kB / 0.5466 GB, free: 24.5 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000196/0.3118, allocations: 51.05 kB / 0.5467 GB, free: 24.48 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002171/0.312, allocations: 248.6 kB / 0.5469 GB, free: 24.35 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001399/0.3122, allocations: 54.64 kB / 0.547 GB, free: 24.32 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.164e-05/0.3122, allocations: 97.5 kB / 0.5471 GB, free: 24.28 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001337/0.3124, allocations: 101.2 kB / 0.5472 GB, free: 24.23 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.013e-05/0.3124, allocations: 17.88 kB / 0.5472 GB, free: 24.23 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.938e-05/0.3124, allocations: 20.91 kB / 0.5472 GB, free: 24.23 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 3.355e-05/0.3125, allocations: 37.02 kB / 0.5472 GB, free: 24.2 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 8.412e-05/0.3126, allocations: 116.7 kB / 0.5474 GB, free: 24.13 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002369/0.3128, allocations: 222.9 kB / 0.5476 GB, free: 24.05 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.25e-06/0.3128, allocations: 11.94 kB / 0.5476 GB, free: 24.04 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.3128, allocations: 0 / 0.5476 GB, free: 24.04 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.724e-06/0.3128, allocations: 3 kB / 0.5476 GB, free: 24.04 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: 44 * Number of variables: 44 Notification: Performance of Generate backend data structure: time 0.0007/0.3135, allocations: 439.2 kB / 0.548 GB, free: 23.68 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.045e-05/0.3135, allocations: 6.281 kB / 0.548 GB, free: 23.68 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.557e-05/0.3136, allocations: 55.73 kB / 0.5481 GB, free: 23.63 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.082e-05/0.3136, allocations: 26.05 kB / 0.5481 GB, free: 23.62 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003299/0.314, allocations: 178.7 kB / 0.5483 GB, free: 23.45 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.664e-05/0.314, allocations: 14.88 kB / 0.5483 GB, free: 23.45 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.15e-05/0.314, allocations: 16.72 kB / 0.5483 GB, free: 23.44 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003129/0.3143, allocations: 194.3 kB / 0.5485 GB, free: 23.33 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.675e-05/0.3144, allocations: 3.938 kB / 0.5485 GB, free: 23.33 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.163e-05/0.3144, allocations: 7.25 kB / 0.5485 GB, free: 23.32 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.943e-06/0.3144, allocations: 3.312 kB / 0.5485 GB, free: 23.32 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002221/0.3146, allocations: 114.4 kB / 0.5486 GB, free: 23.29 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001035/0.3156, allocations: 0.7041 MB / 0.5493 GB, free: 22.75 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003054/0.316, allocations: 128.3 kB / 0.5494 GB, free: 22.68 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.967e-05/0.3161, allocations: 48.58 kB / 0.5494 GB, free: 22.65 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.834e-05/0.3161, allocations: 7.062 kB / 0.5495 GB, free: 22.65 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001881/0.3163, allocations: 92.48 kB / 0.5495 GB, free: 22.58 MB / 382.1 MB Notification: Performance of pre-optimization done (n=15): time 1.453e-06/0.3163, allocations: 0 / 0.5495 GB, free: 22.58 MB / 382.1 MB Notification: Performance of matching and sorting (n=15): time 0.0006331/0.3169, allocations: 216.7 kB / 0.5497 GB, free: 22.48 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.765e-05/0.3169, allocations: 58.47 kB / 0.5498 GB, free: 22.41 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00015/0.3171, allocations: 189.8 kB / 0.55 GB, free: 22.28 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.452e-05/0.3171, allocations: 28.92 kB / 0.55 GB, free: 22.25 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.453e-05/0.3172, allocations: 140.5 kB / 0.5501 GB, free: 22.12 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.454e-05/0.3172, allocations: 60.38 kB / 0.5502 GB, free: 22.07 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.946e-05/0.3172, allocations: 30.73 kB / 0.5502 GB, free: 22.05 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.596e-05/0.3173, allocations: 328.5 kB / 0.5505 GB, free: 21.73 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.549e-05/0.3174, allocations: 38.02 kB / 0.5506 GB, free: 21.71 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.241e-05/0.3174, allocations: 73.05 kB / 0.5507 GB, free: 21.66 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001396/0.3176, allocations: 117.3 kB / 0.5508 GB, free: 21.57 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.3176, allocations: 0 / 0.5508 GB, free: 21.57 MB / 382.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002715/0.3179, allocations: 178.5 kB / 0.5509 GB, free: 21.48 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.76e-05/0.3179, allocations: 6.438 kB / 0.5509 GB, free: 21.48 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.002e-06/0.3179, allocations: 4 kB / 0.5509 GB, free: 21.48 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000201/0.3181, allocations: 35.55 kB / 0.551 GB, free: 21.46 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001055/0.3182, allocations: 29.23 kB / 0.551 GB, free: 21.46 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008432/0.319, allocations: 1.372 MB / 0.5523 GB, free: 20.12 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.765e-05/0.3191, allocations: 22.39 kB / 0.5524 GB, free: 20.11 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.308e-06/0.3191, allocations: 3.219 kB / 0.5524 GB, free: 20.11 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition1,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,switch.control) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 8.836e-05/0.3192, allocations: 127.5 kB / 0.5525 GB, free: 19.98 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.183e-05/0.3192, allocations: 25.59 kB / 0.5525 GB, free: 19.97 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.377e-05/0.3193, allocations: 20 kB / 0.5525 GB, free: 19.95 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.242e-06/0.3193, allocations: 0 / 0.5525 GB, free: 19.95 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.008e-06/0.3193, allocations: 3.25 kB / 0.5525 GB, free: 19.95 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.326e-06/0.3193, allocations: 0 / 0.5525 GB, free: 19.95 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001678/0.3195, allocations: 225.3 kB / 0.5528 GB, free: 19.76 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.362e-06/0.3195, allocations: 0 / 0.5528 GB, free: 19.76 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.637e-05/0.3196, allocations: 26.38 kB / 0.5528 GB, free: 19.75 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.32e-05/0.3197, allocations: 35.83 kB / 0.5528 GB, free: 19.74 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.162e-05/0.3197, allocations: 7.938 kB / 0.5528 GB, free: 19.73 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007336/0.3204, allocations: 1.373 MB / 0.5542 GB, free: 18.4 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.91e-07/0.3204, allocations: 0 / 0.5542 GB, free: 18.4 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003323/0.3207, allocations: 236.9 kB / 0.5544 GB, free: 18.25 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.27e-05/0.3208, allocations: 21.38 kB / 0.5544 GB, free: 18.24 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.297e-05/0.3208, allocations: 7.406 kB / 0.5544 GB, free: 18.24 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001021/0.3209, allocations: 10.03 kB / 0.5544 GB, free: 18.23 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.928e-05/0.321, allocations: 16.92 kB / 0.5544 GB, free: 18.23 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.075e-05/0.321, allocations: 7 kB / 0.5544 GB, free: 18.23 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001076/0.3211, allocations: 136.8 kB / 0.5546 GB, free: 18.14 MB / 382.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3211, allocations: 0 / 0.5546 GB, free: 18.14 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002921/0.3214, allocations: 56.8 kB / 0.5546 GB, free: 18.12 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (heatCapacitor.T) * Number of discrete variables: 3 ($whenCondition1,switch.control,booleanPulse.pulseStart) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0005442/0.3219, allocations: 0.7649 MB / 0.5554 GB, free: 17.45 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0004228/0.3224, allocations: 213.5 kB / 0.5556 GB, free: 17.31 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.3224, allocations: 0 / 0.5556 GB, free: 17.31 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001791/0.3225, allocations: 170.2 kB / 0.5557 GB, free: 17.17 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003032/0.3228, allocations: 38.67 kB / 0.5558 GB, free: 17.15 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002238/0.3251, allocations: 2.088 MB / 0.5578 GB, free: 15.56 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002117/0.3253, allocations: 0.7289 MB / 0.5585 GB, free: 14.87 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 7.944e-05/0.3254, allocations: 14.8 kB / 0.5585 GB, free: 14.86 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.416e-05/0.3255, allocations: 56.42 kB / 0.5586 GB, free: 14.82 MB / 382.1 MB Notification: Performance of SimCode: time 1.011e-06/0.3255, allocations: 0 / 0.5586 GB, free: 14.82 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03308/0.3585, allocations: 4.429 MB / 0.5629 GB, free: 14.2 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.5/11.85, allocations: 0 / 0.5629 GB, free: 14.2 MB / 382.1 MB " [Timeout remaining time 648] (rm -f HanserModelica_HanserModelica.Thermal.Coupling.pipe ; mkfifo HanserModelica_HanserModelica.Thermal.Coupling.pipe ; head -c 1048576 < HanserModelica_HanserModelica.Thermal.Coupling.pipe >> ../files/HanserModelica_HanserModelica.Thermal.Coupling.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_Thermal_Coupling_fmu --startTime=0 --stopTime=400 --stepSize=0.1 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_Thermal_Coupling.fmu > HanserModelica_HanserModelica.Thermal.Coupling.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 14.679005458950996] Failed to read output from testmodel.py, exit status != 0: 11.96651271590963 11.986628544 11.669696193 Calling exit ...