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.001606/0.001606, 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.471/1.471, allocations: 230.6 MB / 252.6 MB, free: 8.301 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.001687/0.001687, allocations: 222.6 kB / 309.2 MB, free: 3.141 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.04349/0.04349, allocations: 8.919 MB / 374.6 MB, free: 1.895 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.002847/0.002847, allocations: 83.88 kB / 0.4892 GB, free: 7.363 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2674/0.2703, allocations: 55.6 MB / 0.5435 GB, free: 26.78 MB / 382.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Classes.MixedDeclaration): time 0.001956/0.2722, allocations: 1.286 MB / 0.5447 GB, free: 25.89 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 5.131e-05/0.2723, allocations: 10.81 kB / 0.5448 GB, free: 25.88 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.872e-05/0.2723, allocations: 0 / 0.5448 GB, free: 25.88 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 3.967e-05/0.2724, allocations: 3.469 kB / 0.5448 GB, free: 25.88 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 5.766e-05/0.2724, allocations: 3.938 kB / 0.5448 GB, free: 25.88 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 1.462e-05/0.2724, allocations: 3.188 kB / 0.5448 GB, free: 25.88 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 5.26e-05/0.2725, allocations: 0 / 0.5448 GB, free: 25.88 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.256e-05/0.2725, allocations: 7 kB / 0.5448 GB, free: 25.87 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.7e-05/0.2726, allocations: 11 kB / 0.5448 GB, free: 25.86 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.472e-05/0.2726, allocations: 3.984 kB / 0.5448 GB, free: 25.86 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.191e-05/0.2726, allocations: 0 / 0.5448 GB, free: 25.86 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.947e-06/0.2726, allocations: 3 kB / 0.5448 GB, free: 25.86 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.185e-05/0.2726, allocations: 7.875 kB / 0.5448 GB, free: 25.85 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.234e-05/0.2726, allocations: 3.375 kB / 0.5448 GB, free: 25.85 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 5.493e-05/0.2727, allocations: 7.188 kB / 0.5448 GB, free: 25.85 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.2727, allocations: 0 / 0.5448 GB, free: 25.85 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.021e-06/0.2727, allocations: 0 / 0.5448 GB, free: 25.85 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.008e-05/0.2727, allocations: 0 / 0.5448 GB, free: 25.85 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.0002561/0.273, allocations: 248.1 kB / 0.545 GB, free: 25.58 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.396e-05/0.273, allocations: 9.531 kB / 0.5451 GB, free: 25.58 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.124e-05/0.273, allocations: 38 kB / 0.5451 GB, free: 25.54 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.741e-05/0.273, allocations: 4.891 kB / 0.5451 GB, free: 25.54 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.4e-05/0.2731, allocations: 113.2 kB / 0.5452 GB, free: 25.41 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.03e-05/0.2731, allocations: 384 / 0.5452 GB, free: 25.41 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.837e-06/0.2731, allocations: 384 / 0.5452 GB, free: 25.41 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.406e-05/0.2732, allocations: 39.02 kB / 0.5452 GB, free: 25.36 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.375e-06/0.2732, allocations: 11.88 kB / 0.5453 GB, free: 25.35 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.961e-06/0.2732, allocations: 3.938 kB / 0.5453 GB, free: 25.34 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.394e-06/0.2732, allocations: 3.188 kB / 0.5453 GB, free: 25.34 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.38e-05/0.2732, allocations: 0 / 0.5453 GB, free: 25.34 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002115/0.2734, allocations: 443.8 kB / 0.5457 GB, free: 24.88 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.855e-05/0.2735, allocations: 184.3 kB / 0.5459 GB, free: 24.69 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.314e-05/0.2735, allocations: 80.14 kB / 0.5459 GB, free: 24.61 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.302e-05/0.2735, allocations: 75.28 kB / 0.546 GB, free: 24.53 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.911e-05/0.2735, allocations: 105.8 kB / 0.5461 GB, free: 24.42 MB / 382.1 MB Notification: Performance of pre-optimization done (n=0): time 8.12e-07/0.2735, allocations: 0 / 0.5461 GB, free: 24.42 MB / 382.1 MB Notification: Performance of matching and sorting (n=0): time 5.832e-05/0.2736, allocations: 28.7 kB / 0.5461 GB, free: 24.39 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.671e-05/0.2736, allocations: 134.6 kB / 0.5463 GB, free: 24.24 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.695e-05/0.2737, allocations: 103.6 kB / 0.5464 GB, free: 24.14 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.1e-06/0.2737, allocations: 25.7 kB / 0.5464 GB, free: 24.11 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.143e-05/0.2737, allocations: 98.62 kB / 0.5465 GB, free: 24.02 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.434e-06/0.2737, allocations: 0 / 0.5465 GB, free: 24.02 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.2e-05/0.2737, allocations: 12.75 kB / 0.5465 GB, free: 24 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 3.646e-05/0.2738, allocations: 310.8 kB / 0.5468 GB, free: 23.69 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.346e-06/0.2738, allocations: 0 / 0.5468 GB, free: 23.69 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.065e-05/0.2738, allocations: 20.69 kB / 0.5468 GB, free: 23.66 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.336e-05/0.2738, allocations: 16.69 kB / 0.5468 GB, free: 23.64 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.993e-06/0.2738, allocations: 3.031 kB / 0.5468 GB, free: 23.64 MB / 382.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 8.005e-05/0.2739, allocations: 51.27 kB / 0.5469 GB, free: 23.6 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.185e-05/0.2739, allocations: 6.219 kB / 0.5469 GB, free: 23.6 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.497e-06/0.2739, allocations: 0 / 0.5469 GB, free: 23.6 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.37e-05/0.2739, allocations: 7.156 kB / 0.5469 GB, free: 23.59 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.944e-05/0.274, allocations: 3.25 kB / 0.5469 GB, free: 23.59 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.958e-06/0.274, allocations: 0 / 0.5469 GB, free: 23.59 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.977e-05/0.274, allocations: 0 / 0.5469 GB, free: 23.59 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.919e-06/0.274, allocations: 6.391 kB / 0.5469 GB, free: 23.59 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 4.301e-05/0.274, allocations: 189 kB / 0.5471 GB, free: 23.4 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.729e-05/0.2741, allocations: 108.1 kB / 0.5472 GB, free: 23.29 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.186e-05/0.2741, allocations: 107.9 kB / 0.5473 GB, free: 23.18 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.194e-05/0.2741, allocations: 187.7 kB / 0.5475 GB, free: 22.99 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.381e-05/0.2742, allocations: 179.4 kB / 0.5476 GB, free: 22.81 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.124e-05/0.2742, allocations: 180.2 kB / 0.5478 GB, free: 22.63 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001189/0.2743, allocations: 378.9 kB / 0.5482 GB, free: 22.21 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.344e-05/0.2743, allocations: 101.2 kB / 0.5483 GB, free: 22.11 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.453e-05/0.2743, allocations: 116.1 kB / 0.5484 GB, free: 21.99 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.072e-05/0.2743, allocations: 180.3 kB / 0.5485 GB, free: 21.81 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.476e-05/0.2744, allocations: 187.7 kB / 0.5487 GB, free: 21.62 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.054e-05/0.2744, allocations: 179.6 kB / 0.5489 GB, free: 21.44 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.953e-05/0.2744, allocations: 180.3 kB / 0.5491 GB, free: 21.26 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.403e-05/0.2745, allocations: 318.4 kB / 0.5494 GB, free: 20.93 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.052e-05/0.2745, allocations: 108.2 kB / 0.5495 GB, free: 20.82 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.878e-05/0.2745, allocations: 176.3 kB / 0.5496 GB, free: 20.64 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.57e-05/0.2746, allocations: 101 kB / 0.5497 GB, free: 20.54 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.489e-05/0.2746, allocations: 187 kB / 0.5499 GB, free: 20.35 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.331e-05/0.2746, allocations: 105 kB / 0.55 GB, free: 20.24 MB / 382.1 MB Notification: Performance of sorting global known variables: time 2.433e-05/0.2746, allocations: 82.56 kB / 0.5501 GB, free: 20.16 MB / 382.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.2746, allocations: 0 / 0.5501 GB, free: 20.16 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002118/0.2748, allocations: 3.375 kB / 0.5501 GB, free: 20.16 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.0001803/0.275, allocations: 0.8165 MB / 0.5509 GB, free: 19.34 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 6.421e-05/0.2751, allocations: 3.219 kB / 0.5509 GB, free: 19.34 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.165e-06/0.2751, allocations: 0 / 0.5509 GB, free: 19.34 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 1.322e-06/0.2751, allocations: 0 / 0.5509 GB, free: 19.34 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002548/0.2753, allocations: 463.9 kB / 0.5513 GB, free: 18.88 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006615/0.276, allocations: 1.293 MB / 0.5526 GB, free: 17.55 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.14e-05/0.2761, allocations: 0.6747 MB / 0.5533 GB, free: 16.86 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 1.993e-05/0.2761, allocations: 0 / 0.5533 GB, free: 16.86 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.641e-05/0.2761, allocations: 7.438 kB / 0.5533 GB, free: 16.85 MB / 382.1 MB Notification: Performance of SimCode: time 4.11e-07/0.2761, allocations: 0 / 0.5533 GB, free: 16.85 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02756/0.3037, allocations: 1.096 MB / 0.5543 GB, free: 16.48 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.08/11.38, allocations: 10.48 kB / 0.5544 GB, free: 16.48 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: 14.040863508125767] Failed to read output from testmodel.py, exit status != 0: 11.485912516945973 11.497102659 11.221883576 Calling exit ...