Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.Machines.TestDoubleLayer10over12.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.001516/0.001516, allocations: 117.4 kB / 17.17 MB, free: 5.977 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.652/1.652, allocations: 230.6 MB / 250.5 MB, free: 9.215 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.001625/0.001625, allocations: 208.3 kB / 306.7 MB, free: 4.297 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.04096/0.04096, allocations: 8.908 MB / 371.7 MB, free: 3.426 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.Machines.TestDoubleLayer10over12,fileNamePrefix="HanserModelica_HanserModelica_Machines_TestDoubleLayer10over12",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.Machines.TestDoubleLayer10over12,fileNamePrefix="HanserModelica_HanserModelica_Machines_TestDoubleLayer10over12",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.002594/0.002594, allocations: 83.81 kB / 496.4 MB, free: 9.836 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4244/0.427, allocations: 55.56 MB / 0.5391 GB, free: 26.62 MB / 382.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Machines.TestDoubleLayer10over12): time 0.002214/0.4292, allocations: 1.262 MB / 0.5403 GB, free: 25.74 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001854/0.4311, allocations: 1.242 MB / 0.5415 GB, free: 24.89 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.005e-05/0.4311, allocations: 0 / 0.5415 GB, free: 24.89 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004696/0.4316, allocations: 79.98 kB / 0.5416 GB, free: 24.86 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009049/0.4325, allocations: 430.6 kB / 0.542 GB, free: 24.62 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 4.999e-06/0.4325, allocations: 0 / 0.542 GB, free: 24.62 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001318/0.4338, allocations: 1.027 MB / 0.543 GB, free: 24.41 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.758e-05/0.4339, allocations: 11.27 kB / 0.543 GB, free: 24.41 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.783e-05/0.4339, allocations: 10.22 kB / 0.543 GB, free: 24.4 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.139e-05/0.4339, allocations: 10.81 kB / 0.543 GB, free: 24.4 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.086e-05/0.4339, allocations: 3.125 kB / 0.543 GB, free: 24.4 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001468/0.4341, allocations: 49.16 kB / 0.5431 GB, free: 24.38 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 5.363e-05/0.4341, allocations: 20.7 kB / 0.5431 GB, free: 24.37 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 3.103e-05/0.4342, allocations: 22.09 kB / 0.5431 GB, free: 24.36 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001883/0.4344, allocations: 84.16 kB / 0.5432 GB, free: 24.32 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.537e-06/0.4344, allocations: 3.219 kB / 0.5432 GB, free: 24.32 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.313e-06/0.4344, allocations: 0 / 0.5432 GB, free: 24.32 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.674e-06/0.4344, allocations: 4 kB / 0.5432 GB, free: 24.31 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: 0 * Number of variables: 0 Notification: Performance of Generate backend data structure: time 0.0004207/0.4348, allocations: 386.5 kB / 0.5436 GB, free: 23.92 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.739e-05/0.4348, allocations: 9.844 kB / 0.5436 GB, free: 23.92 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.752e-05/0.4349, allocations: 75.47 kB / 0.5437 GB, free: 23.84 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.343e-05/0.4349, allocations: 106 kB / 0.5438 GB, free: 23.73 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003768/0.4353, allocations: 109.9 kB / 0.5439 GB, free: 23.65 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004425/0.4357, allocations: 384.9 kB / 0.5442 GB, free: 23.31 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.242e-05/0.4357, allocations: 150.9 kB / 0.5444 GB, free: 23.16 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.141e-05/0.4358, allocations: 150.9 kB / 0.5445 GB, free: 23.01 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.391e-05/0.4358, allocations: 108.9 kB / 0.5446 GB, free: 22.9 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.957e-05/0.4359, allocations: 82.66 kB / 0.5447 GB, free: 22.82 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.744e-05/0.4359, allocations: 153.8 kB / 0.5448 GB, free: 22.67 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.445e-05/0.4359, allocations: 154.5 kB / 0.545 GB, free: 22.52 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.685e-05/0.4359, allocations: 150.6 kB / 0.5451 GB, free: 22.37 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002058/0.4361, allocations: 466.3 kB / 0.5456 GB, free: 21.88 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.257e-05/0.4362, allocations: 177 kB / 0.5457 GB, free: 21.7 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.041e-05/0.4362, allocations: 80.14 kB / 0.5458 GB, free: 21.62 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.385e-05/0.4362, allocations: 82.53 kB / 0.5459 GB, free: 21.54 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.49e-05/0.4362, allocations: 109.9 kB / 0.546 GB, free: 21.42 MB / 382.1 MB Notification: Performance of pre-optimization done (n=0): time 1.012e-06/0.4363, allocations: 0 / 0.546 GB, free: 21.42 MB / 382.1 MB Notification: Performance of matching and sorting (n=0): time 7.055e-05/0.4363, allocations: 40.83 kB / 0.546 GB, free: 21.38 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.148e-05/0.4364, allocations: 126.7 kB / 0.5462 GB, free: 21.24 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001402/0.4365, allocations: 175.4 kB / 0.5463 GB, free: 21.11 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.931e-06/0.4365, allocations: 25.7 kB / 0.5464 GB, free: 21.08 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.475e-05/0.4365, allocations: 99.39 kB / 0.5465 GB, free: 20.98 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.164e-06/0.4365, allocations: 3.406 kB / 0.5465 GB, free: 20.98 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.716e-05/0.4366, allocations: 13.72 kB / 0.5465 GB, free: 20.96 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.227e-05/0.4366, allocations: 321.4 kB / 0.5468 GB, free: 20.65 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.799e-06/0.4366, allocations: 4 kB / 0.5468 GB, free: 20.64 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.655e-06/0.4366, allocations: 0 / 0.5468 GB, free: 20.64 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.293e-05/0.4366, allocations: 75.28 kB / 0.5469 GB, free: 20.57 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.057e-05/0.4366, allocations: 75.28 kB / 0.5469 GB, free: 20.5 MB / 382.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 4.982e-05/0.4367, allocations: 47.44 kB / 0.547 GB, free: 20.45 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.23e-05/0.4367, allocations: 81.59 kB / 0.547 GB, free: 20.38 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.325e-05/0.4367, allocations: 79.22 kB / 0.5471 GB, free: 20.3 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.482e-05/0.4368, allocations: 154.6 kB / 0.5473 GB, free: 20.15 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.114e-05/0.4368, allocations: 78.44 kB / 0.5473 GB, free: 20.07 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.329e-05/0.4368, allocations: 154.5 kB / 0.5475 GB, free: 19.92 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.719e-05/0.4368, allocations: 78.75 kB / 0.5476 GB, free: 19.85 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.379e-05/0.4369, allocations: 86.09 kB / 0.5477 GB, free: 19.77 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * 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 initialization (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 prepare postOptimizeDAE: time 8.253e-05/0.4369, allocations: 270.8 kB / 0.5479 GB, free: 19.5 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.201e-05/0.437, allocations: 116.2 kB / 0.548 GB, free: 19.38 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.276e-05/0.437, allocations: 119 kB / 0.5481 GB, free: 19.27 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.684e-05/0.437, allocations: 180.2 kB / 0.5483 GB, free: 19.08 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.024e-05/0.4371, allocations: 176.3 kB / 0.5485 GB, free: 18.9 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.163e-05/0.4371, allocations: 191.6 kB / 0.5487 GB, free: 18.71 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001482/0.4373, allocations: 422.4 kB / 0.5491 GB, free: 18.26 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.627e-05/0.4373, allocations: 116.2 kB / 0.5492 GB, free: 18.14 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.427e-05/0.4373, allocations: 108 kB / 0.5493 GB, free: 18.03 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.257e-05/0.4373, allocations: 176.3 kB / 0.5494 GB, free: 17.85 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.705e-05/0.4373, allocations: 180.2 kB / 0.5496 GB, free: 17.67 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.604e-05/0.4374, allocations: 179.7 kB / 0.5498 GB, free: 17.49 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.866e-05/0.4374, allocations: 191.5 kB / 0.55 GB, free: 17.3 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.391e-05/0.4375, allocations: 302.3 kB / 0.5503 GB, free: 16.98 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.28e-05/0.4375, allocations: 196.5 kB / 0.5504 GB, free: 16.77 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.782e-05/0.4375, allocations: 180.3 kB / 0.5506 GB, free: 16.59 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.464e-05/0.4376, allocations: 111.8 kB / 0.5507 GB, free: 16.48 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.561e-05/0.4377, allocations: 180.2 kB / 0.5509 GB, free: 16.29 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.677e-05/0.4377, allocations: 101.5 kB / 0.551 GB, free: 16.19 MB / 382.1 MB Notification: Performance of sorting global known variables: time 6.938e-05/0.4377, allocations: 128.7 kB / 0.5511 GB, free: 16.1 MB / 382.1 MB Notification: Performance of sort global known variables: time 5e-08/0.4377, allocations: 0 / 0.5511 GB, free: 16.1 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002658/0.438, allocations: 2.938 kB / 0.5511 GB, free: 16.1 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.0002556/0.4383, allocations: 0.8257 MB / 0.5519 GB, free: 15.27 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 4.832e-05/0.4383, allocations: 0 / 0.5519 GB, free: 15.27 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.4383, allocations: 3.094 kB / 0.5519 GB, free: 15.27 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 1.132e-06/0.4383, allocations: 64 / 0.5519 GB, free: 15.27 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003938/0.4387, allocations: 474.2 kB / 0.5524 GB, free: 14.81 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001119/0.4398, allocations: 1.816 MB / 0.5541 GB, free: 13.15 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002034/0.44, allocations: 0.6951 MB / 0.5548 GB, free: 12.46 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 4.219e-05/0.4401, allocations: 6.656 kB / 0.5548 GB, free: 12.46 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.788e-05/0.4401, allocations: 22.62 kB / 0.5549 GB, free: 12.44 MB / 382.1 MB Notification: Performance of SimCode: time 2.8e-07/0.4401, allocations: 0 / 0.5549 GB, free: 12.44 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01854/0.4587, allocations: 1.892 MB / 0.5567 GB, free: 12 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.523/9.981, allocations: 25.69 kB / 0.5567 GB, free: 11.99 MB / 382.1 MB " [Timeout remaining time 650] (rm -f HanserModelica_HanserModelica.Machines.TestDoubleLayer10over12.pipe ; mkfifo HanserModelica_HanserModelica.Machines.TestDoubleLayer10over12.pipe ; head -c 1048576 < HanserModelica_HanserModelica.Machines.TestDoubleLayer10over12.pipe >> ../files/HanserModelica_HanserModelica.Machines.TestDoubleLayer10over12.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_Machines_TestDoubleLayer10over12_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_Machines_TestDoubleLayer10over12.fmu > HanserModelica_HanserModelica.Machines.TestDoubleLayer10over12.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 13.055203091003932] Failed to read output from testmodel.py, exit status != 0: 10.107409862976056 10.127794201 9.68788772 Calling exit ...