Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.VariablesTypes.ComplexCalculation.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.00179/0.00179, allocations: 101.3 kB / 19.73 MB, free: 2.133 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.533/1.533, allocations: 230.6 MB / 253.5 MB, free: 14.3 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.001601/0.001601, allocations: 201.2 kB / 310 MB, free: 3.082 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.04103/0.04103, allocations: 8.925 MB / 375.4 MB, free: 6.598 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.VariablesTypes.ComplexCalculation,fileNamePrefix="HanserModelica_HanserModelica_VariablesTypes_ComplexCalculation",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.VariablesTypes.ComplexCalculation,fileNamePrefix="HanserModelica_HanserModelica_VariablesTypes_ComplexCalculation",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.002447/0.002447, allocations: 83.88 kB / 0.4899 GB, free: 44.79 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1179/0.1203, allocations: 55.61 MB / 0.5442 GB, free: 5.082 MB / 366.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.VariablesTypes.ComplexCalculation): time 0.003435/0.1238, allocations: 1.37 MB / 0.5455 GB, free: 3.699 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002001/0.1258, allocations: 0.841 MB / 0.5463 GB, free: 2.852 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.414e-05/0.1258, allocations: 0 / 0.5463 GB, free: 2.852 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004637/0.1263, allocations: 87.62 kB / 0.5464 GB, free: 2.766 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001485/0.1265, allocations: 11.92 kB / 0.5464 GB, free: 2.754 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008355/0.1273, allocations: 262.8 kB / 0.5467 GB, free: 2.496 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001867/0.1275, allocations: 39.84 kB / 0.5467 GB, free: 2.457 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.211e-05/0.1275, allocations: 7.984 kB / 0.5467 GB, free: 2.449 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001171/0.1277, allocations: 23.94 kB / 0.5468 GB, free: 2.426 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.458e-05/0.1277, allocations: 15.91 kB / 0.5468 GB, free: 2.41 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 1.203e-05/0.1277, allocations: 0 / 0.5468 GB, free: 2.41 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003216/0.128, allocations: 119.8 kB / 0.5469 GB, free: 2.293 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 1.515e-05/0.1281, allocations: 4 kB / 0.5469 GB, free: 2.289 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 3.709e-05/0.1281, allocations: 15.91 kB / 0.5469 GB, free: 2.273 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002922/0.1284, allocations: 139.8 kB / 0.547 GB, free: 2.137 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.43e-06/0.1284, allocations: 0 / 0.547 GB, free: 2.137 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.124e-06/0.1284, allocations: 0 / 0.547 GB, free: 2.137 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.334e-06/0.1284, allocations: 0 / 0.547 GB, free: 2.137 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: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.001072/0.1295, allocations: 357.9 kB / 0.5474 GB, free: 1.758 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.873e-05/0.1295, allocations: 15.98 kB / 0.5474 GB, free: 1.742 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.576e-05/0.1295, allocations: 4.125 kB / 0.5474 GB, free: 1.738 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.887e-05/0.1296, allocations: 38.69 kB / 0.5474 GB, free: 1.691 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.177e-05/0.1296, allocations: 8.891 kB / 0.5474 GB, free: 1.684 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001419/0.1297, allocations: 110.5 kB / 0.5476 GB, free: 1.551 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.025e-06/0.1298, allocations: 4.375 kB / 0.5476 GB, free: 1.547 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.637e-05/0.1298, allocations: 384 / 0.5476 GB, free: 1.547 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000178/0.1299, allocations: 69.62 kB / 0.5476 GB, free: 1.473 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.327e-06/0.13, allocations: 0 / 0.5476 GB, free: 1.473 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.136e-05/0.13, allocations: 4 kB / 0.5476 GB, free: 1.469 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.801e-06/0.13, allocations: 0 / 0.5476 GB, free: 1.469 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.612e-05/0.1301, allocations: 35.92 kB / 0.5477 GB, free: 1.434 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002237/0.1303, allocations: 152.7 kB / 0.5478 GB, free: 1.242 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002017/0.1305, allocations: 66.55 kB / 0.5479 GB, free: 1.168 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.409e-05/0.1306, allocations: 20.98 kB / 0.5479 GB, free: 1.145 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.037e-05/0.1306, allocations: 3.938 kB / 0.5479 GB, free: 1.141 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.418e-05/0.1306, allocations: 34.56 kB / 0.5479 GB, free: 1.098 MB / 366.1 MB Notification: Performance of pre-optimization done (n=6): time 9.72e-07/0.1306, allocations: 4 kB / 0.5479 GB, free: 1.094 MB / 366.1 MB Notification: Performance of matching and sorting (n=6): time 0.0002751/0.1309, allocations: 101.6 kB / 0.548 GB, free: 0.9883 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.343e-05/0.1309, allocations: 51.41 kB / 0.5481 GB, free: 0.9258 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.715e-05/0.131, allocations: 105.8 kB / 0.5482 GB, free: 0.8125 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.884e-05/0.131, allocations: 25.7 kB / 0.5482 GB, free: 0.7812 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.814e-05/0.1311, allocations: 84.14 kB / 0.5483 GB, free: 0.6953 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.829e-05/0.1311, allocations: 19.84 kB / 0.5483 GB, free: 0.6758 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.201e-05/0.1312, allocations: 21.72 kB / 0.5483 GB, free: 0.6484 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001663/0.1313, allocations: 314.8 kB / 0.5486 GB, free: 340 kB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.495e-05/0.1314, allocations: 16 kB / 0.5486 GB, free: 324 kB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.701e-05/0.1314, allocations: 20 kB / 0.5487 GB, free: 304 kB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.445e-05/0.1315, allocations: 52.84 kB / 0.5487 GB, free: 248 kB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.1315, allocations: 0 / 0.5487 GB, free: 248 kB / 366.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001431/0.1317, allocations: 86.19 kB / 0.5488 GB, free: 156 kB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.32e-05/0.1317, allocations: 8 kB / 0.5488 GB, free: 148 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.829e-06/0.1317, allocations: 0 / 0.5488 GB, free: 148 kB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.826e-05/0.1317, allocations: 0 / 0.5488 GB, free: 148 kB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001128/0.1318, allocations: 8 kB / 0.5488 GB, free: 140 kB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.75e-06/0.1318, allocations: 0 / 0.5488 GB, free: 140 kB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.897e-05/0.1319, allocations: 11.95 kB / 0.5488 GB, free: 128 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.825e-06/0.1319, allocations: 4 kB / 0.5488 GB, free: 124 kB / 366.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 (6): * Single equations (assignments): 6 * 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.0001347/0.132, allocations: 117.9 kB / 0.5489 GB, free: 15.99 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.486e-05/0.132, allocations: 7.938 kB / 0.5489 GB, free: 15.98 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000226/0.1322, allocations: 105.9 kB / 0.549 GB, free: 15.88 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.513e-06/0.1322, allocations: 0 / 0.549 GB, free: 15.88 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.23e-06/0.1323, allocations: 0 / 0.549 GB, free: 15.88 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.647e-06/0.1323, allocations: 7.938 kB / 0.5491 GB, free: 15.87 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001587/0.1324, allocations: 148.7 kB / 0.5492 GB, free: 15.68 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.986e-06/0.1324, allocations: 3.938 kB / 0.5492 GB, free: 15.68 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.281e-05/0.1325, allocations: 12 kB / 0.5492 GB, free: 15.67 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.423e-06/0.1325, allocations: 0 / 0.5492 GB, free: 15.67 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.043e-05/0.1325, allocations: 4 kB / 0.5492 GB, free: 15.66 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.373e-06/0.1325, allocations: 0 / 0.5492 GB, free: 15.66 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.1325, allocations: 4 kB / 0.5492 GB, free: 15.66 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002003/0.1327, allocations: 121 kB / 0.5493 GB, free: 15.52 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.462e-05/0.1327, allocations: 11.88 kB / 0.5493 GB, free: 15.51 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.616e-05/0.1327, allocations: 0 / 0.5493 GB, free: 15.51 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.931e-05/0.1328, allocations: 4 kB / 0.5493 GB, free: 15.51 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.617e-05/0.1328, allocations: 4 kB / 0.5493 GB, free: 15.5 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.077e-05/0.1328, allocations: 7.984 kB / 0.5494 GB, free: 15.5 MB / 382.1 MB Notification: Performance of sorting global known variables: time 5.16e-05/0.1329, allocations: 79.28 kB / 0.5494 GB, free: 15.42 MB / 382.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1329, allocations: 0 / 0.5494 GB, free: 15.42 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002043/0.1331, allocations: 20 kB / 0.5495 GB, free: 15.4 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 (8): * Single equations (assignments): 8 * 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.0005456/0.1336, allocations: 0.6594 MB / 0.5501 GB, free: 14.71 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001781/0.1338, allocations: 47.98 kB / 0.5501 GB, free: 14.66 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.1338, allocations: 4 kB / 0.5501 GB, free: 14.66 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 5.937e-05/0.1339, allocations: 31.92 kB / 0.5502 GB, free: 14.63 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001689/0.134, allocations: 13.81 kB / 0.5502 GB, free: 14.62 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005216/0.1346, allocations: 198.5 kB / 0.5504 GB, free: 14.38 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.826e-05/0.1346, allocations: 79.25 kB / 0.5505 GB, free: 14.29 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 3.321e-05/0.1347, allocations: 0 / 0.5505 GB, free: 14.29 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.821e-05/0.1347, allocations: 19.44 kB / 0.5505 GB, free: 14.27 MB / 382.1 MB Notification: Performance of SimCode: time 2.6e-07/0.1347, allocations: 0 / 0.5505 GB, free: 14.27 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02334/0.1581, allocations: 2.134 MB / 0.5526 GB, free: 12.25 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.49/11.65, allocations: 4.062 kB / 0.5526 GB, free: 12.25 MB / 382.1 MB " [Timeout remaining time 648] (rm -f HanserModelica_HanserModelica.VariablesTypes.ComplexCalculation.pipe ; mkfifo HanserModelica_HanserModelica.VariablesTypes.ComplexCalculation.pipe ; head -c 1048576 < HanserModelica_HanserModelica.VariablesTypes.ComplexCalculation.pipe >> ../files/HanserModelica_HanserModelica.VariablesTypes.ComplexCalculation.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_VariablesTypes_ComplexCalculation_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_VariablesTypes_ComplexCalculation.fmu > HanserModelica_HanserModelica.VariablesTypes.ComplexCalculation.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 14.812705780030228] Failed to read output from testmodel.py, exit status != 0: 11.815491387969814 12.039743437 11.70982619 Calling exit ...