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.001487/0.001487, 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.613/1.613, allocations: 230.6 MB / 253.4 MB, free: 14.49 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.00185/0.00185, allocations: 217.2 kB / 310 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.04159/0.04159, allocations: 8.916 MB / 375.4 MB, free: 6.812 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.003811/0.003811, allocations: 83.88 kB / 0.49 GB, free: 44.93 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1304/0.1342, allocations: 55.61 MB / 0.5443 GB, free: 5.215 MB / 366.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Classes.MixedDeclaration): time 0.003698/0.1379, allocations: 1.29 MB / 0.5455 GB, free: 3.914 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001051/0.138, allocations: 7.938 kB / 0.5455 GB, free: 3.906 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.63e-05/0.1381, allocations: 0 / 0.5455 GB, free: 3.906 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 5.677e-05/0.1381, allocations: 0 / 0.5455 GB, free: 3.906 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 9.961e-05/0.1382, allocations: 0 / 0.5455 GB, free: 3.906 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 2.367e-05/0.1383, allocations: 4 kB / 0.5455 GB, free: 3.902 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 9.737e-05/0.1384, allocations: 7.938 kB / 0.5455 GB, free: 3.895 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001182/0.1385, allocations: 11.97 kB / 0.5456 GB, free: 3.883 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.964e-05/0.1385, allocations: 4 kB / 0.5456 GB, free: 3.879 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.039e-05/0.1386, allocations: 3.938 kB / 0.5456 GB, free: 3.875 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 2.074e-05/0.1386, allocations: 0 / 0.5456 GB, free: 3.875 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.949e-06/0.1386, allocations: 4 kB / 0.5456 GB, free: 3.871 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 2.348e-05/0.1386, allocations: 0 / 0.5456 GB, free: 3.871 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 3.908e-05/0.1387, allocations: 3.938 kB / 0.5456 GB, free: 3.867 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001075/0.1388, allocations: 16.2 kB / 0.5456 GB, free: 3.852 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.436e-06/0.1388, allocations: 3.938 kB / 0.5456 GB, free: 3.848 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.976e-06/0.1388, allocations: 4 kB / 0.5456 GB, free: 3.844 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.664e-05/0.1388, allocations: 0 / 0.5456 GB, free: 3.844 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: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0005469/0.1393, allocations: 230.5 kB / 0.5458 GB, free: 3.586 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 9.488e-05/0.1394, allocations: 15.98 kB / 0.5458 GB, free: 3.57 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.88e-05/0.1395, allocations: 4.188 kB / 0.5458 GB, free: 3.566 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.131e-05/0.1395, allocations: 34.69 kB / 0.5459 GB, free: 3.523 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.439e-05/0.1396, allocations: 8.875 kB / 0.5459 GB, free: 3.516 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001963/0.1397, allocations: 110.5 kB / 0.546 GB, free: 3.383 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.659e-05/0.1398, allocations: 4.375 kB / 0.546 GB, free: 3.379 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.282e-05/0.1398, allocations: 384 / 0.546 GB, free: 3.379 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001503/0.1399, allocations: 47.73 kB / 0.546 GB, free: 3.32 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.09e-05/0.1399, allocations: 3.938 kB / 0.546 GB, free: 3.316 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.057e-06/0.1399, allocations: 0 / 0.546 GB, free: 3.316 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.905e-06/0.14, allocations: 4 kB / 0.546 GB, free: 3.312 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.269e-05/0.14, allocations: 3.938 kB / 0.546 GB, free: 3.309 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005946/0.1406, allocations: 454.7 kB / 0.5465 GB, free: 2.816 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001316/0.1407, allocations: 165.1 kB / 0.5466 GB, free: 2.645 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.894e-05/0.1408, allocations: 80.14 kB / 0.5467 GB, free: 2.562 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.384e-05/0.1408, allocations: 79.22 kB / 0.5468 GB, free: 2.484 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.578e-05/0.1409, allocations: 109.8 kB / 0.5469 GB, free: 2.367 MB / 366.1 MB Notification: Performance of pre-optimization done (n=0): time 8.42e-07/0.1409, allocations: 4 kB / 0.5469 GB, free: 2.363 MB / 366.1 MB Notification: Performance of matching and sorting (n=0): time 9.888e-05/0.141, allocations: 25.7 kB / 0.5469 GB, free: 2.332 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001025/0.1411, allocations: 130.7 kB / 0.547 GB, free: 2.191 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001475/0.1413, allocations: 105.8 kB / 0.5471 GB, free: 2.078 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.476e-05/0.1413, allocations: 25.7 kB / 0.5472 GB, free: 2.047 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.905e-05/0.1414, allocations: 84.09 kB / 0.5473 GB, free: 1.961 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.809e-06/0.1414, allocations: 4 kB / 0.5473 GB, free: 1.957 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.954e-05/0.1414, allocations: 13.72 kB / 0.5473 GB, free: 1.938 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002052/0.1416, allocations: 318.8 kB / 0.5476 GB, free: 1.617 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.806e-05/0.1417, allocations: 7.984 kB / 0.5476 GB, free: 1.609 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.195e-05/0.1417, allocations: 13.66 kB / 0.5476 GB, free: 1.59 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.116e-05/0.1417, allocations: 21.78 kB / 0.5476 GB, free: 1.562 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.1417, allocations: 0 / 0.5476 GB, free: 1.562 MB / 366.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001307/0.1419, allocations: 41.59 kB / 0.5477 GB, free: 1.516 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.359e-05/0.1419, allocations: 8 kB / 0.5477 GB, free: 1.508 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.031e-06/0.1419, allocations: 0 / 0.5477 GB, free: 1.508 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.71e-05/0.1419, allocations: 0 / 0.5477 GB, free: 1.508 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.944e-05/0.142, allocations: 7.984 kB / 0.5477 GB, free: 1.5 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.124e-06/0.142, allocations: 0 / 0.5477 GB, free: 1.5 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.463e-05/0.142, allocations: 0 / 0.5477 GB, free: 1.5 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.219e-05/0.142, allocations: 7.984 kB / 0.5477 GB, free: 1.492 MB / 366.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 0.0001572/0.1422, allocations: 197.1 kB / 0.5479 GB, free: 1.289 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.952e-05/0.1423, allocations: 104.9 kB / 0.548 GB, free: 1.18 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.357e-05/0.1424, allocations: 108.1 kB / 0.5481 GB, free: 1.07 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001121/0.1425, allocations: 180.3 kB / 0.5482 GB, free: 0.8867 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001159/0.1426, allocations: 188.2 kB / 0.5484 GB, free: 0.6953 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.808e-05/0.1427, allocations: 188.2 kB / 0.5486 GB, free: 0.5039 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003089/0.143, allocations: 376.2 kB / 0.549 GB, free: 88 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001052/0.1431, allocations: 109 kB / 0.5491 GB, free: 15.97 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.883e-05/0.1432, allocations: 101 kB / 0.5492 GB, free: 15.87 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001248/0.1433, allocations: 180.2 kB / 0.5493 GB, free: 15.68 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001019/0.1434, allocations: 176.3 kB / 0.5495 GB, free: 15.5 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0001414/0.1436, allocations: 192.2 kB / 0.5497 GB, free: 15.31 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.735e-05/0.1437, allocations: 176.3 kB / 0.5498 GB, free: 15.13 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002168/0.1439, allocations: 308 kB / 0.5501 GB, free: 14.8 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.382e-05/0.144, allocations: 109 kB / 0.5502 GB, free: 14.69 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00014/0.1441, allocations: 192.4 kB / 0.5504 GB, free: 14.5 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000109/0.1442, allocations: 105 kB / 0.5505 GB, free: 14.39 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001071/0.1443, allocations: 180.3 kB / 0.5507 GB, free: 14.2 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.708e-05/0.1444, allocations: 108.9 kB / 0.5508 GB, free: 14.09 MB / 382.1 MB Notification: Performance of sorting global known variables: time 8.18e-05/0.1445, allocations: 83.27 kB / 0.5509 GB, free: 14.01 MB / 382.1 MB Notification: Performance of sort global known variables: time 6e-08/0.1445, allocations: 0 / 0.5509 GB, free: 14.01 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002472/0.1447, allocations: 4 kB / 0.5509 GB, free: 14 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.000665/0.1454, allocations: 0.8048 MB / 0.5517 GB, free: 13.17 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001092/0.1455, allocations: 15.92 kB / 0.5517 GB, free: 13.15 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.1455, allocations: 0 / 0.5517 GB, free: 13.15 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 1.173e-06/0.1455, allocations: 0 / 0.5517 GB, free: 13.15 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005301/0.146, allocations: 456.9 kB / 0.5521 GB, free: 12.7 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001486/0.1475, allocations: 1.284 MB / 0.5534 GB, free: 11.33 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004027/0.1479, allocations: 0.6767 MB / 0.554 GB, free: 10.63 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 3.72e-05/0.1479, allocations: 4.031 kB / 0.554 GB, free: 10.62 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.005e-05/0.148, allocations: 11.42 kB / 0.5541 GB, free: 10.61 MB / 382.1 MB Notification: Performance of SimCode: time 1.012e-06/0.148, allocations: 0 / 0.5541 GB, free: 10.61 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02443/0.1724, allocations: 1.113 MB / 0.5551 GB, free: 9.621 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.48/12.66, allocations: 12.7 kB / 0.5552 GB, free: 9.617 MB / 382.1 MB " [Timeout remaining time 647] (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: 16.128030529944226] Failed to read output from testmodel.py, exit status != 0: 12.815632723970339 13.113026803 12.97133177 Calling exit ...