Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.Machines.TestDoubleLayer7over9.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.001313/0.001313, allocations: 97.88 kB / 19.73 MB, free: 2.117 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.49/1.49, allocations: 230.6 MB / 253.5 MB, free: 14.26 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.001707/0.001707, allocations: 214.4 kB / 310 MB, free: 3.074 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.04123/0.04123, allocations: 8.913 MB / 375.4 MB, free: 6.578 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.TestDoubleLayer7over9,fileNamePrefix="HanserModelica_HanserModelica_Machines_TestDoubleLayer7over9",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.Machines.TestDoubleLayer7over9,fileNamePrefix="HanserModelica_HanserModelica_Machines_TestDoubleLayer7over9",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.002425/0.002425, allocations: 83.88 kB / 0.4899 GB, free: 44.76 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1014/0.1038, allocations: 55.62 MB / 0.5442 GB, free: 5.047 MB / 366.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Machines.TestDoubleLayer7over9): time 0.002771/0.1066, allocations: 1.271 MB / 0.5454 GB, free: 3.766 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002048/0.1086, allocations: 1.129 MB / 0.5465 GB, free: 2.629 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.421e-05/0.1086, allocations: 0 / 0.5465 GB, free: 2.629 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004331/0.1091, allocations: 79.86 kB / 0.5466 GB, free: 2.551 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001123/0.1102, allocations: 418.5 kB / 0.547 GB, free: 2.141 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 5.751e-06/0.1102, allocations: 0 / 0.547 GB, free: 2.141 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001577/0.1118, allocations: 0.8387 MB / 0.5478 GB, free: 1.301 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.364e-05/0.1118, allocations: 0 / 0.5478 GB, free: 1.301 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.968e-05/0.1119, allocations: 11.94 kB / 0.5478 GB, free: 1.289 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.745e-05/0.1119, allocations: 11.92 kB / 0.5479 GB, free: 1.277 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 1.519e-05/0.1119, allocations: 4 kB / 0.5479 GB, free: 1.273 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002123/0.1122, allocations: 51.91 kB / 0.5479 GB, free: 1.223 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 7.732e-05/0.1122, allocations: 15.92 kB / 0.5479 GB, free: 1.207 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 3.984e-05/0.1123, allocations: 15.86 kB / 0.5479 GB, free: 1.191 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002465/0.1125, allocations: 75.69 kB / 0.548 GB, free: 1.117 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.825e-06/0.1125, allocations: 3.984 kB / 0.548 GB, free: 1.113 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.327e-06/0.1125, allocations: 7.938 kB / 0.548 GB, free: 1.105 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.491e-05/0.1125, allocations: 0 / 0.548 GB, free: 1.105 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.0005028/0.113, allocations: 305.8 kB / 0.5483 GB, free: 0.7773 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.58e-05/0.1131, allocations: 15.98 kB / 0.5483 GB, free: 0.7617 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 4.881e-05/0.1132, allocations: 83.47 kB / 0.5484 GB, free: 0.6797 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.881e-05/0.1132, allocations: 106 kB / 0.5485 GB, free: 0.5664 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005055/0.1137, allocations: 104.1 kB / 0.5486 GB, free: 476 kB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005906/0.1143, allocations: 321.4 kB / 0.5489 GB, free: 128 kB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.817e-05/0.1144, allocations: 150.9 kB / 0.5491 GB, free: 15.98 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.278e-05/0.1145, allocations: 150.9 kB / 0.5492 GB, free: 15.83 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.676e-05/0.1146, allocations: 108.9 kB / 0.5493 GB, free: 15.71 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.05e-05/0.1146, allocations: 83.28 kB / 0.5494 GB, free: 15.63 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.87e-05/0.1147, allocations: 150.6 kB / 0.5495 GB, free: 15.48 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.234e-05/0.1148, allocations: 154.5 kB / 0.5497 GB, free: 15.33 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.309e-05/0.1148, allocations: 150.6 kB / 0.5498 GB, free: 15.18 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003724/0.1152, allocations: 441 kB / 0.5502 GB, free: 14.71 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001236/0.1153, allocations: 169.1 kB / 0.5504 GB, free: 14.54 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.577e-05/0.1154, allocations: 80.14 kB / 0.5505 GB, free: 14.45 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.68e-05/0.1154, allocations: 83.22 kB / 0.5506 GB, free: 14.37 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.299e-05/0.1155, allocations: 105.8 kB / 0.5507 GB, free: 14.26 MB / 382.1 MB Notification: Performance of pre-optimization done (n=0): time 1.343e-06/0.1155, allocations: 0 / 0.5507 GB, free: 14.26 MB / 382.1 MB Notification: Performance of matching and sorting (n=0): time 7.956e-05/0.1156, allocations: 41.58 kB / 0.5507 GB, free: 14.21 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.576e-05/0.1156, allocations: 130.7 kB / 0.5508 GB, free: 14.07 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001794/0.1158, allocations: 162.2 kB / 0.551 GB, free: 13.9 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.411e-05/0.1158, allocations: 25.7 kB / 0.551 GB, free: 13.87 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.735e-05/0.1159, allocations: 108.1 kB / 0.5511 GB, free: 13.76 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.593e-06/0.1159, allocations: 0 / 0.5511 GB, free: 13.76 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.037e-05/0.1159, allocations: 9.719 kB / 0.5511 GB, free: 13.75 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001388/0.1161, allocations: 322.8 kB / 0.5514 GB, free: 13.42 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.589e-06/0.1161, allocations: 0 / 0.5514 GB, free: 13.42 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.216e-06/0.1161, allocations: 0 / 0.5514 GB, free: 13.42 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.104e-05/0.1161, allocations: 75.28 kB / 0.5515 GB, free: 13.35 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.315e-05/0.1161, allocations: 79.28 kB / 0.5516 GB, free: 13.27 MB / 382.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 6.237e-05/0.1162, allocations: 41.59 kB / 0.5516 GB, free: 13.22 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.221e-05/0.1162, allocations: 79.28 kB / 0.5517 GB, free: 13.14 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.458e-05/0.1163, allocations: 83.22 kB / 0.5518 GB, free: 13.06 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.95e-05/0.1163, allocations: 150.6 kB / 0.5519 GB, free: 12.91 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.17e-05/0.1164, allocations: 75.28 kB / 0.552 GB, free: 12.84 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.502e-05/0.1164, allocations: 162.5 kB / 0.5521 GB, free: 12.68 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.463e-05/0.1165, allocations: 79.28 kB / 0.5522 GB, free: 12.6 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.638e-05/0.1165, allocations: 79.27 kB / 0.5523 GB, free: 12.52 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.0001446/0.1167, allocations: 276.4 kB / 0.5526 GB, free: 12.24 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.698e-05/0.1168, allocations: 112.9 kB / 0.5527 GB, free: 12.12 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.058e-05/0.1168, allocations: 112.8 kB / 0.5528 GB, free: 12.01 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.843e-05/0.1169, allocations: 188.2 kB / 0.5529 GB, free: 11.82 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.076e-05/0.117, allocations: 184.3 kB / 0.5531 GB, free: 11.63 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.784e-05/0.117, allocations: 180.2 kB / 0.5533 GB, free: 11.45 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002517/0.1173, allocations: 392.3 kB / 0.5537 GB, free: 11.01 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.201e-05/0.1174, allocations: 108.9 kB / 0.5538 GB, free: 10.9 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.502e-05/0.1174, allocations: 105 kB / 0.5539 GB, free: 10.79 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.368e-05/0.1175, allocations: 180.2 kB / 0.554 GB, free: 10.61 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.378e-05/0.1176, allocations: 184.1 kB / 0.5542 GB, free: 10.42 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.422e-05/0.1176, allocations: 180.3 kB / 0.5544 GB, free: 10.23 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.307e-05/0.1177, allocations: 192.5 kB / 0.5546 GB, free: 10.04 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001981/0.1179, allocations: 307.8 kB / 0.5549 GB, free: 9.715 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.52e-05/0.118, allocations: 120.8 kB / 0.555 GB, free: 9.59 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001149/0.1181, allocations: 188.2 kB / 0.5552 GB, free: 9.398 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.878e-05/0.1182, allocations: 108.9 kB / 0.5553 GB, free: 9.285 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001056/0.1183, allocations: 176.3 kB / 0.5554 GB, free: 9.105 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.648e-05/0.1183, allocations: 101 kB / 0.5555 GB, free: 9 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001127/0.1185, allocations: 123.2 kB / 0.5556 GB, free: 8.879 MB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1185, allocations: 0 / 0.5556 GB, free: 8.879 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002591/0.1187, allocations: 4 kB / 0.5557 GB, free: 8.875 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.0005181/0.1192, allocations: 0.8203 MB / 0.5565 GB, free: 8.027 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 5.292e-05/0.1193, allocations: 0 / 0.5565 GB, free: 8.027 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.005e-06/0.1193, allocations: 0 / 0.5565 GB, free: 8.027 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 1.333e-06/0.1193, allocations: 0 / 0.5565 GB, free: 8.027 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006023/0.1199, allocations: 472.5 kB / 0.5569 GB, free: 7.562 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0015/0.1214, allocations: 1.796 MB / 0.5587 GB, free: 5.691 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.652e-05/0.1215, allocations: 75.33 kB / 0.5587 GB, free: 5.598 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 4.778e-05/0.1215, allocations: 11.98 kB / 0.5587 GB, free: 5.586 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.141e-05/0.1216, allocations: 23.44 kB / 0.5588 GB, free: 5.559 MB / 382.1 MB Notification: Performance of SimCode: time 4e-07/0.1216, allocations: 0 / 0.5588 GB, free: 5.559 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0235/0.1451, allocations: 2.008 MB / 0.5607 GB, free: 3.684 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.9/11.05, allocations: 10.98 kB / 0.5607 GB, free: 3.676 MB / 382.1 MB " [Timeout remaining time 649] (rm -f HanserModelica_HanserModelica.Machines.TestDoubleLayer7over9.pipe ; mkfifo HanserModelica_HanserModelica.Machines.TestDoubleLayer7over9.pipe ; head -c 1048576 < HanserModelica_HanserModelica.Machines.TestDoubleLayer7over9.pipe >> ../files/HanserModelica_HanserModelica.Machines.TestDoubleLayer7over9.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_Machines_TestDoubleLayer7over9_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_Machines_TestDoubleLayer7over9.fmu > HanserModelica_HanserModelica.Machines.TestDoubleLayer7over9.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 14.064747186959721] Failed to read output from testmodel.py, exit status != 0: 11.202131810015999 11.397653084 11.282430627 Calling exit ...