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.001335/0.001335, allocations: 113.5 kB / 19.73 MB, free: 2.242 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.575/1.575, allocations: 230.6 MB / 253.4 MB, free: 14.5 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.001829/0.001829, allocations: 211.5 kB / 310 MB, free: 3.164 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.04242/0.04242, allocations: 8.912 MB / 375.4 MB, free: 6.789 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.00326/0.00326, allocations: 79.89 kB / 0.49 GB, free: 44.95 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1486/0.1519, allocations: 55.61 MB / 0.5443 GB, free: 5.242 MB / 366.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Machines.TestDoubleLayer10over12): time 0.002894/0.1547, allocations: 1.28 MB / 0.5455 GB, free: 3.949 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002432/0.1572, allocations: 1.257 MB / 0.5467 GB, free: 2.684 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.331e-05/0.1572, allocations: 0 / 0.5467 GB, free: 2.684 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004464/0.1577, allocations: 79.97 kB / 0.5468 GB, free: 2.605 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001099/0.1588, allocations: 437.5 kB / 0.5472 GB, free: 2.18 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 5.33e-06/0.1588, allocations: 0 / 0.5472 GB, free: 2.18 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001703/0.1605, allocations: 1.046 MB / 0.5483 GB, free: 1.133 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.811e-05/0.1605, allocations: 0 / 0.5483 GB, free: 1.133 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.17e-05/0.1606, allocations: 11.94 kB / 0.5483 GB, free: 1.121 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.485e-05/0.1606, allocations: 11.88 kB / 0.5483 GB, free: 1.109 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 1.155e-05/0.1606, allocations: 0 / 0.5483 GB, free: 1.109 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001807/0.1608, allocations: 51.95 kB / 0.5483 GB, free: 1.059 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 6.79e-05/0.1609, allocations: 19.92 kB / 0.5483 GB, free: 1.039 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 3.998e-05/0.1609, allocations: 27.8 kB / 0.5484 GB, free: 1.012 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002144/0.1611, allocations: 83.61 kB / 0.5485 GB, free: 0.9297 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.852e-06/0.1611, allocations: 0 / 0.5485 GB, free: 0.9297 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.485e-06/0.1611, allocations: 0 / 0.5485 GB, free: 0.9297 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.291e-05/0.1611, allocations: 0 / 0.5485 GB, free: 0.9297 MB / 366.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.0004674/0.1616, allocations: 309.8 kB / 0.5487 GB, free: 0.5977 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.456e-05/0.1617, allocations: 15.98 kB / 0.5488 GB, free: 0.582 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 4.59e-05/0.1617, allocations: 75.47 kB / 0.5488 GB, free: 0.5078 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.669e-05/0.1618, allocations: 110 kB / 0.5489 GB, free: 400 kB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004594/0.1622, allocations: 112.1 kB / 0.549 GB, free: 288 kB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005712/0.1628, allocations: 318.1 kB / 0.5494 GB, free: 15.94 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.747e-05/0.1629, allocations: 150.9 kB / 0.5495 GB, free: 15.79 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.912e-05/0.163, allocations: 162.9 kB / 0.5497 GB, free: 15.63 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.352e-05/0.163, allocations: 104.9 kB / 0.5498 GB, free: 15.52 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.637e-05/0.1631, allocations: 75.28 kB / 0.5498 GB, free: 15.45 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.029e-05/0.1631, allocations: 158.5 kB / 0.55 GB, free: 15.29 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.726e-05/0.1632, allocations: 150.6 kB / 0.5501 GB, free: 15.14 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.902e-05/0.1633, allocations: 150.6 kB / 0.5503 GB, free: 15 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003183/0.1636, allocations: 433 kB / 0.5507 GB, free: 14.53 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001026/0.1637, allocations: 169.1 kB / 0.5508 GB, free: 14.36 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.062e-05/0.1637, allocations: 88.12 kB / 0.5509 GB, free: 14.27 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.568e-05/0.1638, allocations: 87.09 kB / 0.551 GB, free: 14.18 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.301e-05/0.1638, allocations: 109.8 kB / 0.5511 GB, free: 14.06 MB / 382.1 MB Notification: Performance of pre-optimization done (n=0): time 8.52e-07/0.1638, allocations: 3.938 kB / 0.5511 GB, free: 14.06 MB / 382.1 MB Notification: Performance of matching and sorting (n=0): time 8.538e-05/0.1639, allocations: 37.61 kB / 0.5511 GB, free: 14.02 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.962e-05/0.164, allocations: 126.7 kB / 0.5513 GB, free: 13.88 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001863/0.1642, allocations: 163.3 kB / 0.5514 GB, free: 13.71 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.792e-05/0.1642, allocations: 29.7 kB / 0.5515 GB, free: 13.67 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.03e-05/0.1643, allocations: 100.1 kB / 0.5515 GB, free: 13.57 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.823e-06/0.1643, allocations: 0 / 0.5515 GB, free: 13.57 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.557e-05/0.1643, allocations: 17.77 kB / 0.5516 GB, free: 13.55 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001563/0.1645, allocations: 322.8 kB / 0.5519 GB, free: 13.22 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.029e-06/0.1645, allocations: 0 / 0.5519 GB, free: 13.22 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.789e-06/0.1645, allocations: 3.938 kB / 0.5519 GB, free: 13.22 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.727e-05/0.1645, allocations: 75.28 kB / 0.5519 GB, free: 13.14 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.665e-05/0.1645, allocations: 75.28 kB / 0.552 GB, free: 13.07 MB / 382.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 6.951e-05/0.1646, allocations: 45.58 kB / 0.5521 GB, free: 13.02 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.481e-05/0.1646, allocations: 83.28 kB / 0.5521 GB, free: 12.94 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.671e-05/0.1647, allocations: 79.28 kB / 0.5522 GB, free: 12.86 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.564e-05/0.1648, allocations: 158.5 kB / 0.5524 GB, free: 12.7 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.03e-05/0.1648, allocations: 79.28 kB / 0.5524 GB, free: 12.62 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.901e-05/0.1649, allocations: 154.5 kB / 0.5526 GB, free: 12.47 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.419e-05/0.1649, allocations: 75.28 kB / 0.5527 GB, free: 12.4 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.106e-05/0.165, allocations: 75.28 kB / 0.5527 GB, free: 12.32 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 0.0001612/0.1651, allocations: 280.3 kB / 0.553 GB, free: 12.04 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.692e-05/0.1652, allocations: 116.9 kB / 0.5531 GB, free: 11.92 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.931e-05/0.1653, allocations: 117.5 kB / 0.5532 GB, free: 11.8 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.434e-05/0.1654, allocations: 184.2 kB / 0.5534 GB, free: 11.61 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.354e-05/0.1654, allocations: 180.2 kB / 0.5536 GB, free: 11.43 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.664e-05/0.1655, allocations: 180.3 kB / 0.5537 GB, free: 11.24 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002746/0.1658, allocations: 392.2 kB / 0.5541 GB, free: 10.81 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.63e-05/0.1658, allocations: 108.9 kB / 0.5542 GB, free: 10.7 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.926e-05/0.1659, allocations: 108.9 kB / 0.5543 GB, free: 10.58 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.936e-05/0.166, allocations: 184.3 kB / 0.5545 GB, free: 10.39 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.334e-05/0.1661, allocations: 184.2 kB / 0.5547 GB, free: 10.21 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.112e-05/0.1661, allocations: 176.3 kB / 0.5548 GB, free: 10.03 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.724e-05/0.1662, allocations: 180.6 kB / 0.555 GB, free: 9.844 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001663/0.1664, allocations: 315.7 kB / 0.5553 GB, free: 9.512 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.916e-05/0.1665, allocations: 124.8 kB / 0.5554 GB, free: 9.383 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.867e-05/0.1665, allocations: 188.2 kB / 0.5556 GB, free: 9.191 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.313e-05/0.1666, allocations: 101 kB / 0.5557 GB, free: 9.086 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.737e-05/0.1667, allocations: 184.2 kB / 0.5559 GB, free: 8.898 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.254e-05/0.1668, allocations: 101 kB / 0.556 GB, free: 8.793 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001158/0.1669, allocations: 132.8 kB / 0.5561 GB, free: 8.664 MB / 382.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1669, allocations: 0 / 0.5561 GB, free: 8.664 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002741/0.1672, allocations: 8 kB / 0.5561 GB, free: 8.656 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.0004729/0.1677, allocations: 0.8241 MB / 0.5569 GB, free: 7.801 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 4.252e-05/0.1677, allocations: 0 / 0.5569 GB, free: 7.801 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.863e-06/0.1677, allocations: 0 / 0.5569 GB, free: 7.801 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 3.236e-06/0.1677, allocations: 8 kB / 0.5569 GB, free: 7.793 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004904/0.1682, allocations: 459.7 kB / 0.5574 GB, free: 7.34 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001621/0.1698, allocations: 1.828 MB / 0.5592 GB, free: 5.434 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003374/0.1702, allocations: 0.6963 MB / 0.5598 GB, free: 4.711 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 3.841e-05/0.1702, allocations: 8 kB / 0.5598 GB, free: 4.703 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.05e-05/0.1702, allocations: 15.44 kB / 0.5599 GB, free: 4.688 MB / 382.1 MB Notification: Performance of SimCode: time 3.21e-07/0.1702, allocations: 0 / 0.5599 GB, free: 4.688 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02392/0.1942, allocations: 1.982 MB / 0.5618 GB, free: 2.836 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.53/12.72, allocations: 18.73 kB / 0.5618 GB, free: 2.82 MB / 382.1 MB " [Timeout remaining time 647] (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: 16.10108993400354] Failed to read output from testmodel.py, exit status != 0: 12.879818385001272 13.140958917 12.97687854 Calling exit ...