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.001441/0.001441, allocations: 114.1 kB / 17.16 MB, free: 5.895 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.524/1.524, allocations: 230.6 MB / 250.5 MB, free: 9.391 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.002916/0.002916, allocations: 214.8 kB / 306.7 MB, free: 4.355 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.04277/0.04277, allocations: 8.906 MB / 371.7 MB, free: 3.496 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.Classes.MixedDeclaration,fileNamePrefix="HanserModelica_HanserModelica_Classes_MixedDeclaration",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.002532/0.002532, allocations: 83.88 kB / 496.4 MB, free: 9.898 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3744/0.377, allocations: 55.56 MB / 0.539 GB, free: 26.62 MB / 382.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Classes.MixedDeclaration): time 0.002462/0.3794, allocations: 1.287 MB / 0.5403 GB, free: 25.73 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 6.465e-05/0.3795, allocations: 7.922 kB / 0.5403 GB, free: 25.72 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.958e-05/0.3795, allocations: 0 / 0.5403 GB, free: 25.72 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 3.808e-05/0.3796, allocations: 0 / 0.5403 GB, free: 25.72 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 7.809e-05/0.3796, allocations: 6.938 kB / 0.5403 GB, free: 25.71 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 1.97e-05/0.3797, allocations: 0 / 0.5403 GB, free: 25.71 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 7.063e-05/0.3797, allocations: 6.938 kB / 0.5403 GB, free: 25.71 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.548e-05/0.3798, allocations: 10.61 kB / 0.5403 GB, free: 25.71 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.796e-05/0.3798, allocations: 4 kB / 0.5403 GB, free: 25.7 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.38e-05/0.3799, allocations: 3.938 kB / 0.5403 GB, free: 25.7 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.659e-05/0.3799, allocations: 3.219 kB / 0.5403 GB, free: 25.7 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.041e-06/0.3799, allocations: 0 / 0.5403 GB, free: 25.7 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.865e-05/0.3799, allocations: 3.938 kB / 0.5403 GB, free: 25.7 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 4.629e-05/0.38, allocations: 7.188 kB / 0.5404 GB, free: 25.69 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 7.838e-05/0.38, allocations: 11.44 kB / 0.5404 GB, free: 25.68 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.111e-06/0.38, allocations: 0 / 0.5404 GB, free: 25.68 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.332e-06/0.3801, allocations: 2.938 kB / 0.5404 GB, free: 25.68 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.933e-06/0.3801, allocations: 0 / 0.5404 GB, free: 25.68 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.000364/0.3804, allocations: 324.7 kB / 0.5407 GB, free: 25.32 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.605e-05/0.3805, allocations: 9.406 kB / 0.5407 GB, free: 25.32 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.869e-05/0.3805, allocations: 192 / 0.5407 GB, free: 25.32 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.262e-05/0.3805, allocations: 30.75 kB / 0.5407 GB, free: 25.29 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.346e-05/0.3805, allocations: 4.891 kB / 0.5407 GB, free: 25.28 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001235/0.3807, allocations: 163.5 kB / 0.5409 GB, free: 25.09 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.885e-06/0.3807, allocations: 384 / 0.5409 GB, free: 25.09 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.274e-05/0.3807, allocations: 384 / 0.5409 GB, free: 25.09 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001051/0.3808, allocations: 61.17 kB / 0.5409 GB, free: 25.02 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.035e-05/0.3808, allocations: 0 / 0.5409 GB, free: 25.02 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.02e-05/0.3808, allocations: 0 / 0.5409 GB, free: 25.02 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.212e-06/0.3808, allocations: 0 / 0.5409 GB, free: 25.02 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.869e-05/0.3808, allocations: 3.156 kB / 0.5409 GB, free: 25.02 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002903/0.3811, allocations: 469.2 kB / 0.5414 GB, free: 24.52 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.696e-05/0.3812, allocations: 176.5 kB / 0.5416 GB, free: 24.34 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.009e-05/0.3812, allocations: 80.14 kB / 0.5416 GB, free: 24.26 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.534e-05/0.3812, allocations: 75.28 kB / 0.5417 GB, free: 24.18 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.441e-05/0.3812, allocations: 112.8 kB / 0.5418 GB, free: 24.07 MB / 382.1 MB Notification: Performance of pre-optimization done (n=0): time 9.21e-07/0.3812, allocations: 0 / 0.5418 GB, free: 24.07 MB / 382.1 MB Notification: Performance of matching and sorting (n=0): time 7.663e-05/0.3813, allocations: 33.64 kB / 0.5418 GB, free: 24.03 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.11e-05/0.3814, allocations: 126.7 kB / 0.542 GB, free: 23.89 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.958e-05/0.3814, allocations: 106.7 kB / 0.5421 GB, free: 23.79 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.636e-06/0.3815, allocations: 25.7 kB / 0.5421 GB, free: 23.76 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.887e-05/0.3815, allocations: 92.06 kB / 0.5422 GB, free: 23.66 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.866e-06/0.3815, allocations: 0 / 0.5422 GB, free: 23.66 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.883e-05/0.3815, allocations: 16.84 kB / 0.5422 GB, free: 23.64 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.345e-05/0.3816, allocations: 326.2 kB / 0.5425 GB, free: 23.32 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.118e-05/0.3816, allocations: 2.969 kB / 0.5425 GB, free: 23.32 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.309e-05/0.3816, allocations: 12.69 kB / 0.5425 GB, free: 23.3 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.113e-05/0.3817, allocations: 20.72 kB / 0.5425 GB, free: 23.28 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.3817, allocations: 3.938 kB / 0.5425 GB, free: 23.28 MB / 382.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001057/0.3818, allocations: 42.28 kB / 0.5426 GB, free: 23.24 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.559e-05/0.3818, allocations: 10.25 kB / 0.5426 GB, free: 23.24 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.358e-06/0.3818, allocations: 0 / 0.5426 GB, free: 23.24 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.592e-05/0.3818, allocations: 0 / 0.5426 GB, free: 23.24 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.04e-05/0.3818, allocations: 3.062 kB / 0.5426 GB, free: 23.24 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.27e-06/0.3818, allocations: 256 / 0.5426 GB, free: 23.24 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.098e-05/0.3819, allocations: 7.125 kB / 0.5426 GB, free: 23.23 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.081e-06/0.3819, allocations: 4 kB / 0.5426 GB, free: 23.23 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.104e-05/0.3819, allocations: 192.1 kB / 0.5428 GB, free: 23.04 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.282e-05/0.382, allocations: 108.3 kB / 0.5429 GB, free: 22.93 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.059e-05/0.382, allocations: 111.1 kB / 0.543 GB, free: 22.81 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.011e-05/0.382, allocations: 180.2 kB / 0.5432 GB, free: 22.62 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.964e-05/0.3821, allocations: 176.3 kB / 0.5433 GB, free: 22.45 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.246e-05/0.3821, allocations: 190.9 kB / 0.5435 GB, free: 22.26 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000152/0.3823, allocations: 405.2 kB / 0.5439 GB, free: 21.8 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.763e-05/0.3823, allocations: 107.5 kB / 0.544 GB, free: 21.7 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.985e-05/0.3823, allocations: 108.9 kB / 0.5441 GB, free: 21.59 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.816e-05/0.3823, allocations: 176.3 kB / 0.5443 GB, free: 21.41 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.305e-05/0.3824, allocations: 183.4 kB / 0.5445 GB, free: 21.22 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.084e-05/0.3824, allocations: 179.7 kB / 0.5446 GB, free: 21.04 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.274e-05/0.3824, allocations: 184.2 kB / 0.5448 GB, free: 20.86 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.678e-05/0.3825, allocations: 307 kB / 0.5451 GB, free: 20.54 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.613e-05/0.3826, allocations: 189.3 kB / 0.5453 GB, free: 20.33 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.263e-05/0.3826, allocations: 176.3 kB / 0.5454 GB, free: 20.15 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.576e-05/0.3827, allocations: 107.6 kB / 0.5456 GB, free: 20.04 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.375e-05/0.3827, allocations: 180.3 kB / 0.5457 GB, free: 19.86 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.979e-05/0.3827, allocations: 111.5 kB / 0.5458 GB, free: 19.75 MB / 382.1 MB Notification: Performance of sorting global known variables: time 2.611e-05/0.3827, allocations: 78.56 kB / 0.5459 GB, free: 19.68 MB / 382.1 MB Notification: Performance of sort global known variables: time 5e-08/0.3827, allocations: 3.938 kB / 0.5459 GB, free: 19.67 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002579/0.383, allocations: 0 / 0.5459 GB, free: 19.67 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.0002676/0.3833, allocations: 0.812 MB / 0.5467 GB, free: 18.85 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 9.38e-05/0.3834, allocations: 6.406 kB / 0.5467 GB, free: 18.85 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.774e-06/0.3834, allocations: 0 / 0.5467 GB, free: 18.85 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 3.277e-06/0.3834, allocations: 7.938 kB / 0.5467 GB, free: 18.84 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003055/0.3837, allocations: 457.4 kB / 0.5472 GB, free: 18.39 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007307/0.3844, allocations: 1.292 MB / 0.5484 GB, free: 17.07 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001408/0.3845, allocations: 0.6753 MB / 0.5491 GB, free: 16.37 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 2.154e-05/0.3846, allocations: 0 / 0.5491 GB, free: 16.37 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.344e-05/0.3846, allocations: 7.438 kB / 0.5491 GB, free: 16.36 MB / 382.1 MB Notification: Performance of SimCode: time 4.3e-07/0.3846, allocations: 0 / 0.5491 GB, free: 16.36 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01881/0.4034, allocations: 1.021 MB / 0.5501 GB, free: 15.98 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.184/9.587, allocations: 11.3 kB / 0.5501 GB, free: 15.98 MB / 382.1 MB " [Timeout remaining time 650] (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: 12.627256661013234] Failed to read output from testmodel.py, exit status != 0: 9.712787380965892 9.725104182 9.342412061 Calling exit ...