Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.Classes.MixedDeclaration.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.001152/0.001152, allocations: 80.44 kB / 19.17 MB, free: 0.7344 MB / 13.93 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 0.9391/0.9391, allocations: 177.1 MB / 199.4 MB, free: 5.926 MB / 186.7 MB " [Timeout remaining time 179] 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.001141/0.001141, allocations: 164.6 kB / 256 MB, free: 13.33 MB / 250.7 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.02173/0.02173, allocations: 6.664 MB / 319 MB, free: 26.76 MB / 266.7 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.Classes.MixedDeclaration,fileNamePrefix="HanserModelica_HanserModelica_Classes_MixedDeclaration",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.Classes.MixedDeclaration,fileNamePrefix="HanserModelica_HanserModelica_Classes_MixedDeclaration",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.553e-06/1.553e-06, allocations: 0 / 445.4 MB, free: 37.63 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.024e-05/2.179e-05, allocations: 2.281 kB / 445.4 MB, free: 37.63 MB / 330.7 MB Notification: Performance of NFInst.instantiate(HanserModelica.Classes.MixedDeclaration): time 0.001504/0.001526, allocations: 1.289 MB / 446.7 MB, free: 36.33 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 5.368e-05/0.001579, allocations: 7.922 kB / 446.7 MB, free: 36.32 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.967e-05/0.001609, allocations: 0 / 446.7 MB, free: 36.32 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 4.024e-05/0.001649, allocations: 0 / 446.7 MB, free: 36.32 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 5.98e-05/0.001709, allocations: 7.875 kB / 446.7 MB, free: 36.32 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 1.586e-05/0.001725, allocations: 0 / 446.7 MB, free: 36.32 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 5.874e-05/0.001784, allocations: 15.94 kB / 446.7 MB, free: 36.3 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 6.36e-05/0.001847, allocations: 4 kB / 446.7 MB, free: 36.3 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.133e-05/0.001878, allocations: 3.984 kB / 446.7 MB, free: 36.29 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.797e-05/0.001916, allocations: 4 kB / 446.7 MB, free: 36.29 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 1.943e-05/0.001936, allocations: 0 / 446.7 MB, free: 36.29 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.637e-06/0.001939, allocations: 0 / 446.7 MB, free: 36.29 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 1.25e-05/0.001952, allocations: 0 / 446.7 MB, free: 36.29 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 1.603e-05/0.001968, allocations: 7.938 kB / 446.7 MB, free: 36.28 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 6.302e-05/0.002031, allocations: 7.922 kB / 446.7 MB, free: 36.27 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.034e-06/0.002033, allocations: 0 / 446.7 MB, free: 36.27 MB / 330.7 MB Notification: Performance of FrontEnd: time 8.72e-07/0.002034, allocations: 0 / 446.7 MB, free: 36.27 MB / 330.7 MB Notification: Performance of Transformations before backend: time 4.198e-06/0.002038, allocations: 4 kB / 446.7 MB, free: 36.27 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0002384/0.002277, allocations: 242.4 kB / 447 MB, free: 36 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.606e-05/0.002313, allocations: 8.031 kB / 447 MB, free: 35.99 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.197e-05/0.002335, allocations: 34.75 kB / 447 MB, free: 35.95 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.825e-05/0.002353, allocations: 4.891 kB / 447 MB, free: 35.95 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.832e-05/0.002421, allocations: 113.8 kB / 447.1 MB, free: 35.81 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.788e-06/0.002431, allocations: 4.375 kB / 447.1 MB, free: 35.8 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.881e-06/0.002437, allocations: 384 / 447.1 MB, free: 35.8 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.122e-05/0.002498, allocations: 43.92 kB / 447.2 MB, free: 35.75 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.464e-06/0.002506, allocations: 192 / 447.2 MB, free: 35.75 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.663e-06/0.002512, allocations: 4.375 kB / 447.2 MB, free: 35.75 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.472e-06/0.002519, allocations: 4.125 kB / 447.2 MB, free: 35.74 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.522e-05/0.002534, allocations: 8 kB / 447.2 MB, free: 35.73 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001997/0.002734, allocations: 438.7 kB / 447.6 MB, free: 35.26 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.827e-05/0.002772, allocations: 169.1 kB / 447.8 MB, free: 35.08 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.2e-05/0.002784, allocations: 80.14 kB / 447.9 MB, free: 35 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.308e-05/0.002797, allocations: 79.22 kB / 447.9 MB, free: 34.92 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.733e-05/0.002814, allocations: 117.8 kB / 448.1 MB, free: 34.8 MB / 330.7 MB Notification: Performance of pre-optimization done (n=0): time 6.82e-07/0.002815, allocations: 0 / 448.1 MB, free: 34.8 MB / 330.7 MB Notification: Performance of matching and sorting (n=0): time 4.592e-05/0.002861, allocations: 29.64 kB / 448.1 MB, free: 34.76 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.702e-05/0.002888, allocations: 134.7 kB / 448.2 MB, free: 34.62 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.171e-05/0.00295, allocations: 101.8 kB / 448.3 MB, free: 34.51 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.709e-06/0.002954, allocations: 25.7 kB / 448.3 MB, free: 34.48 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.872e-05/0.002983, allocations: 92.03 kB / 448.4 MB, free: 34.38 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.685e-06/0.002986, allocations: 0 / 448.4 MB, free: 34.38 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.11e-05/0.003007, allocations: 21.67 kB / 448.4 MB, free: 34.36 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 2.633e-05/0.003033, allocations: 310.8 kB / 448.8 MB, free: 34.04 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.233e-06/0.00304, allocations: 0 / 448.8 MB, free: 34.04 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.406e-06/0.003049, allocations: 13.72 kB / 448.8 MB, free: 34.02 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.481e-05/0.003074, allocations: 29.7 kB / 448.8 MB, free: 33.99 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.834e-06/0.003075, allocations: 3.938 kB / 448.8 MB, free: 33.98 MB / 330.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 7.064e-05/0.003146, allocations: 41.89 kB / 448.8 MB, free: 33.94 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.29e-05/0.003159, allocations: 10.66 kB / 448.8 MB, free: 33.93 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.398e-06/0.003163, allocations: 0 / 448.8 MB, free: 33.93 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.036e-05/0.003174, allocations: 0 / 448.8 MB, free: 33.93 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.303e-05/0.003217, allocations: 8 kB / 448.9 MB, free: 33.92 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.24e-06/0.003222, allocations: 3.938 kB / 448.9 MB, free: 33.92 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.655e-05/0.003239, allocations: 3.984 kB / 448.9 MB, free: 33.91 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.059e-06/0.003244, allocations: 11.92 kB / 448.9 MB, free: 33.9 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (2): * Single equations (assignments): 2 * 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 3.057e-05/0.003274, allocations: 185.2 kB / 449.1 MB, free: 33.71 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.674e-05/0.003291, allocations: 108.9 kB / 449.2 MB, free: 33.6 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.661e-05/0.003308, allocations: 111.9 kB / 449.3 MB, free: 33.48 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.166e-05/0.003319, allocations: 180.2 kB / 449.4 MB, free: 33.3 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.26e-05/0.003332, allocations: 184.2 kB / 449.6 MB, free: 33.11 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.184e-05/0.003344, allocations: 180.2 kB / 449.8 MB, free: 32.93 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.837e-05/0.003412, allocations: 372.3 kB / 450.2 MB, free: 32.51 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.275e-06/0.00342, allocations: 108.9 kB / 450.3 MB, free: 32.4 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.005e-05/0.00343, allocations: 109 kB / 450.4 MB, free: 32.29 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.409e-05/0.003444, allocations: 180.3 kB / 450.6 MB, free: 32.1 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.364e-05/0.003458, allocations: 184.2 kB / 450.7 MB, free: 31.91 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.067e-05/0.003469, allocations: 180.3 kB / 450.9 MB, free: 31.73 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.195e-05/0.003481, allocations: 188.2 kB / 451.1 MB, free: 31.54 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 4.067e-05/0.003521, allocations: 295.8 kB / 451.4 MB, free: 31.23 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.817e-05/0.00354, allocations: 116.8 kB / 451.5 MB, free: 31.11 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.053e-05/0.00356, allocations: 180.5 kB / 451.7 MB, free: 30.92 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.485e-05/0.003595, allocations: 108.9 kB / 451.8 MB, free: 30.81 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.871e-05/0.003614, allocations: 184.3 kB / 452 MB, free: 30.62 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.354e-06/0.003621, allocations: 101 kB / 452.1 MB, free: 30.52 MB / 330.7 MB Notification: Performance of sorting global known variables: time 2.088e-05/0.003642, allocations: 79.28 kB / 452.1 MB, free: 30.44 MB / 330.7 MB Notification: Performance of sort global known variables: time 5e-08/0.003642, allocations: 0 / 452.1 MB, free: 30.44 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0001378/0.00378, allocations: 8 kB / 452.1 MB, free: 30.43 MB / 330.7 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 (0): * Single equations (assignments): 0 * 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.0001225/0.003902, allocations: 0.8047 MB / 453 MB, free: 29.6 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 5.347e-05/0.003956, allocations: 4 kB / 453 MB, free: 29.59 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.003957, allocations: 0 / 453 MB, free: 29.59 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 1.372e-06/0.003959, allocations: 7.938 kB / 453 MB, free: 29.59 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001709/0.00413, allocations: 455.7 kB / 453.4 MB, free: 29.14 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004454/0.004575, allocations: 1.293 MB / 454.7 MB, free: 27.75 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.389e-05/0.004599, allocations: 59.52 kB / 454.8 MB, free: 27.68 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 2.012e-05/0.004619, allocations: 0 / 454.8 MB, free: 27.68 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.779e-05/0.004647, allocations: 8.5 kB / 454.8 MB, free: 27.67 MB / 330.7 MB Notification: Performance of SimCode: time 5.71e-07/0.004647, allocations: 0 / 454.8 MB, free: 27.67 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01649/0.02114, allocations: 1.627 MB / 456.4 MB, free: 26.16 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.854/6.875, allocations: 6.047 kB / 456.4 MB, free: 26.16 MB / 330.7 MB " [Timeout remaining time 653] (rm -f HanserModelica_HanserModelica.Classes.MixedDeclaration.pipe ; mkfifo HanserModelica_HanserModelica.Classes.MixedDeclaration.pipe ; head -c 1048576 < HanserModelica_HanserModelica.Classes.MixedDeclaration.pipe >> ../files/HanserModelica_HanserModelica.Classes.MixedDeclaration.sim & python3 -m fmpy simulate --output-file HanserModelica_HanserModelica.Classes.MixedDeclaration_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_Classes_MixedDeclaration.fmu > HanserModelica_HanserModelica.Classes.MixedDeclaration.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 8.919318901374936] Failed to read output from testmodel.py, exit status != 0: 6.956663985736668 6.965951613 6.962661357 Calling exit ...