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.001439/0.001439, allocations: 99.64 kB / 18.94 MB, free: 2.551 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.52/1.52, allocations: 230.6 MB / 252.7 MB, free: 8.066 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.001644/0.001644, allocations: 216.8 kB / 309.2 MB, free: 2.996 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.04131/0.04131, allocations: 8.926 MB / 374.6 MB, free: 1.773 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.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: 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.002654/0.002654, allocations: 79.88 kB / 0.4891 GB, free: 7.234 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3156/0.3182, allocations: 55.61 MB / 0.5434 GB, free: 26.68 MB / 382.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Classes.MixedDeclaration): time 0.002121/0.3204, allocations: 1.281 MB / 0.5447 GB, free: 25.79 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 5.409e-05/0.3204, allocations: 11.03 kB / 0.5447 GB, free: 25.78 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.135e-05/0.3204, allocations: 0 / 0.5447 GB, free: 25.78 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 4.276e-05/0.3205, allocations: 0 / 0.5447 GB, free: 25.78 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 6.632e-05/0.3206, allocations: 3.938 kB / 0.5447 GB, free: 25.77 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 1.759e-05/0.3206, allocations: 0 / 0.5447 GB, free: 25.77 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 6.464e-05/0.3206, allocations: 10.8 kB / 0.5447 GB, free: 25.77 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.209e-05/0.3207, allocations: 11.17 kB / 0.5447 GB, free: 25.76 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.044e-05/0.3207, allocations: 3.625 kB / 0.5447 GB, free: 25.76 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.7e-05/0.3208, allocations: 0 / 0.5447 GB, free: 25.76 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.722e-05/0.3208, allocations: 0 / 0.5447 GB, free: 25.76 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.452e-06/0.3208, allocations: 0 / 0.5447 GB, free: 25.76 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.637e-05/0.3208, allocations: 7.938 kB / 0.5447 GB, free: 25.75 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.179e-05/0.3209, allocations: 7.469 kB / 0.5447 GB, free: 25.75 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 6.569e-05/0.3209, allocations: 14.12 kB / 0.5447 GB, free: 25.74 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.3209, allocations: 0 / 0.5447 GB, free: 25.74 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.993e-06/0.3209, allocations: 0 / 0.5447 GB, free: 25.74 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.933e-06/0.3209, allocations: 0 / 0.5447 GB, free: 25.74 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: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0003177/0.3213, allocations: 246 kB / 0.545 GB, free: 25.48 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.031e-05/0.3213, allocations: 9.719 kB / 0.545 GB, free: 25.48 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.599e-05/0.3213, allocations: 33.84 kB / 0.545 GB, free: 25.44 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.797e-05/0.3213, allocations: 4.891 kB / 0.545 GB, free: 25.44 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.017e-05/0.3214, allocations: 105.8 kB / 0.5451 GB, free: 25.31 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.289e-05/0.3214, allocations: 3.938 kB / 0.5451 GB, free: 25.31 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.053e-05/0.3214, allocations: 384 / 0.5451 GB, free: 25.31 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.76e-05/0.3215, allocations: 43.2 kB / 0.5452 GB, free: 25.26 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.187e-06/0.3215, allocations: 7.25 kB / 0.5452 GB, free: 25.26 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.105e-06/0.3215, allocations: 3.938 kB / 0.5452 GB, free: 25.25 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.759e-06/0.3215, allocations: 4 kB / 0.5452 GB, free: 25.25 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.806e-05/0.3216, allocations: 3.406 kB / 0.5452 GB, free: 25.25 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002471/0.3218, allocations: 440.7 kB / 0.5456 GB, free: 24.78 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.617e-05/0.3219, allocations: 173.1 kB / 0.5458 GB, free: 24.6 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.874e-05/0.3219, allocations: 83.55 kB / 0.5459 GB, free: 24.52 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.537e-05/0.3219, allocations: 75.28 kB / 0.5459 GB, free: 24.45 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.532e-05/0.3219, allocations: 109.3 kB / 0.546 GB, free: 24.33 MB / 382.1 MB Notification: Performance of pre-optimization done (n=0): time 9.62e-07/0.3219, allocations: 0 / 0.546 GB, free: 24.33 MB / 382.1 MB Notification: Performance of matching and sorting (n=0): time 6.019e-05/0.322, allocations: 28.58 kB / 0.5461 GB, free: 24.3 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.506e-05/0.322, allocations: 130.7 kB / 0.5462 GB, free: 24.16 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.748e-05/0.3221, allocations: 115.9 kB / 0.5463 GB, free: 24.05 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.6e-06/0.3221, allocations: 25.7 kB / 0.5463 GB, free: 24.02 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.895e-05/0.3221, allocations: 91.19 kB / 0.5464 GB, free: 23.93 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.866e-06/0.3221, allocations: 0 / 0.5464 GB, free: 23.93 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.326e-05/0.3222, allocations: 17.05 kB / 0.5464 GB, free: 23.91 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.887e-05/0.3222, allocations: 318 kB / 0.5467 GB, free: 23.59 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.022e-05/0.3222, allocations: 3.062 kB / 0.5467 GB, free: 23.59 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.089e-05/0.3222, allocations: 13 kB / 0.5467 GB, free: 23.57 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.478e-05/0.3223, allocations: 20.91 kB / 0.5468 GB, free: 23.55 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.3223, allocations: 4.062 kB / 0.5468 GB, free: 23.55 MB / 382.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 9.147e-05/0.3224, allocations: 45.81 kB / 0.5468 GB, free: 23.51 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.276e-05/0.3224, allocations: 6.344 kB / 0.5468 GB, free: 23.51 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.439e-06/0.3224, allocations: 0 / 0.5468 GB, free: 23.51 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.451e-05/0.3224, allocations: 0 / 0.5468 GB, free: 23.51 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.618e-05/0.3225, allocations: 3.219 kB / 0.5468 GB, free: 23.51 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.801e-06/0.3225, allocations: 0 / 0.5468 GB, free: 23.51 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.018e-05/0.3225, allocations: 3.094 kB / 0.5468 GB, free: 23.51 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.444e-06/0.3225, allocations: 4 kB / 0.5468 GB, free: 23.5 MB / 382.1 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 6.648e-05/0.3226, allocations: 196.3 kB / 0.547 GB, free: 23.3 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.081e-05/0.3226, allocations: 108.1 kB / 0.5471 GB, free: 23.2 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.964e-05/0.3226, allocations: 111.1 kB / 0.5472 GB, free: 23.09 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.239e-05/0.3227, allocations: 180.2 kB / 0.5474 GB, free: 22.9 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.469e-05/0.3227, allocations: 183.5 kB / 0.5476 GB, free: 22.72 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.392e-05/0.3227, allocations: 179.4 kB / 0.5477 GB, free: 22.54 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001425/0.3229, allocations: 378.5 kB / 0.5481 GB, free: 22.12 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.351e-05/0.3229, allocations: 108.1 kB / 0.5482 GB, free: 22.02 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.934e-05/0.3229, allocations: 104.9 kB / 0.5483 GB, free: 21.91 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.159e-05/0.3229, allocations: 176.3 kB / 0.5485 GB, free: 21.73 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.319e-05/0.323, allocations: 179.5 kB / 0.5486 GB, free: 21.55 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.079e-05/0.323, allocations: 187.7 kB / 0.5488 GB, free: 21.36 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.079e-05/0.323, allocations: 187.5 kB / 0.549 GB, free: 21.17 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.742e-05/0.3231, allocations: 307 kB / 0.5493 GB, free: 20.85 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.742e-05/0.3231, allocations: 115 kB / 0.5494 GB, free: 20.74 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.604e-05/0.3232, allocations: 176.3 kB / 0.5496 GB, free: 20.56 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.37e-05/0.3232, allocations: 108.1 kB / 0.5497 GB, free: 20.45 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.372e-05/0.3233, allocations: 183.3 kB / 0.5498 GB, free: 20.27 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.604e-05/0.3233, allocations: 104.5 kB / 0.5499 GB, free: 20.16 MB / 382.1 MB Notification: Performance of sorting global known variables: time 2.708e-05/0.3233, allocations: 82.59 kB / 0.55 GB, free: 20.08 MB / 382.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3233, allocations: 0 / 0.55 GB, free: 20.08 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002285/0.3236, allocations: 7.125 kB / 0.55 GB, free: 20.08 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 (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.0002334/0.3238, allocations: 0.8045 MB / 0.5508 GB, free: 19.26 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 7.555e-05/0.3239, allocations: 7.312 kB / 0.5508 GB, free: 19.26 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.071e-06/0.3239, allocations: 0 / 0.5508 GB, free: 19.26 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 2.003e-06/0.3239, allocations: 3.25 kB / 0.5508 GB, free: 19.26 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002901/0.3242, allocations: 459.1 kB / 0.5513 GB, free: 18.81 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006752/0.3248, allocations: 1.293 MB / 0.5525 GB, free: 17.48 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.367e-05/0.3249, allocations: 58.17 kB / 0.5526 GB, free: 17.41 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 1.591e-05/0.3249, allocations: 4 kB / 0.5526 GB, free: 17.41 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.067e-05/0.3249, allocations: 7.438 kB / 0.5526 GB, free: 17.4 MB / 382.1 MB Notification: Performance of SimCode: time 2.91e-07/0.3249, allocations: 0 / 0.5526 GB, free: 17.4 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0278/0.3527, allocations: 1.483 MB / 0.554 GB, free: 16.61 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.75/11.1, allocations: 7.375 kB / 0.5541 GB, free: 16.61 MB / 382.1 MB " [Timeout remaining time 649] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_Classes_MixedDeclaration_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_Classes_MixedDeclaration.fmu > HanserModelica_HanserModelica.Classes.MixedDeclaration.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 13.926246268674731] Failed to read output from testmodel.py, exit status != 0: 11.205101563129574 11.215966088 10.892723291 Calling exit ...