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.00134/0.00134, 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.442/1.442, allocations: 230.6 MB / 253.5 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.001603/0.001603, allocations: 213.3 kB / 310 MB, free: 3.051 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.921 MB / 375.4 MB, free: 6.617 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.002405/0.002405, allocations: 79.88 kB / 0.4899 GB, free: 44.77 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09038/0.09278, allocations: 55.62 MB / 0.5442 GB, free: 5.059 MB / 366.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Machines.TestDoubleLayer10over12): time 0.002546/0.09533, allocations: 1.257 MB / 0.5454 GB, free: 3.789 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001982/0.09731, allocations: 1.129 MB / 0.5465 GB, free: 2.652 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.148e-05/0.09734, allocations: 0 / 0.5465 GB, free: 2.652 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004525/0.09779, allocations: 79.92 kB / 0.5466 GB, free: 2.574 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009923/0.09879, allocations: 414.4 kB / 0.547 GB, free: 2.168 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 3.928e-06/0.09879, allocations: 4 kB / 0.547 GB, free: 2.164 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001627/0.1004, allocations: 1.046 MB / 0.548 GB, free: 1.117 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.729e-05/0.1005, allocations: 4 kB / 0.548 GB, free: 1.113 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.954e-05/0.1005, allocations: 11.92 kB / 0.548 GB, free: 1.102 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.268e-05/0.1005, allocations: 19.81 kB / 0.5481 GB, free: 1.082 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 1.215e-05/0.1006, allocations: 0 / 0.5481 GB, free: 1.082 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001611/0.1007, allocations: 47.95 kB / 0.5481 GB, free: 1.035 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 7.615e-05/0.1008, allocations: 19.92 kB / 0.5481 GB, free: 1.016 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 3.494e-05/0.1008, allocations: 15.88 kB / 0.5481 GB, free: 1 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002242/0.1011, allocations: 79.61 kB / 0.5482 GB, free: 0.9219 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.334e-06/0.1011, allocations: 4 kB / 0.5482 GB, free: 0.918 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.903e-06/0.1011, allocations: 8 kB / 0.5482 GB, free: 0.9102 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.344e-06/0.1011, allocations: 0 / 0.5482 GB, free: 0.9102 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.0004552/0.1015, allocations: 301.8 kB / 0.5485 GB, free: 0.5859 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.254e-05/0.1016, allocations: 15.98 kB / 0.5485 GB, free: 0.5703 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 4.932e-05/0.1016, allocations: 83.39 kB / 0.5486 GB, free: 500 kB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.174e-05/0.1017, allocations: 110 kB / 0.5487 GB, free: 380 kB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004186/0.1021, allocations: 112.1 kB / 0.5488 GB, free: 268 kB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004988/0.1026, allocations: 317.9 kB / 0.5491 GB, free: 15.93 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.324e-05/0.1027, allocations: 158.9 kB / 0.5493 GB, free: 15.77 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.099e-05/0.1027, allocations: 154.9 kB / 0.5494 GB, free: 15.62 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.076e-05/0.1028, allocations: 104.9 kB / 0.5495 GB, free: 15.51 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.151e-05/0.1028, allocations: 75.28 kB / 0.5496 GB, free: 15.43 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.057e-05/0.1029, allocations: 150.6 kB / 0.5497 GB, free: 15.29 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.785e-05/0.1029, allocations: 154.5 kB / 0.5499 GB, free: 15.13 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.57e-05/0.103, allocations: 154.6 kB / 0.55 GB, free: 14.98 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003049/0.1033, allocations: 436.9 kB / 0.5505 GB, free: 14.51 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.194e-05/0.1034, allocations: 173.1 kB / 0.5506 GB, free: 14.33 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.481e-05/0.1034, allocations: 80.14 kB / 0.5507 GB, free: 14.25 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.67e-05/0.1035, allocations: 83.22 kB / 0.5508 GB, free: 14.17 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.134e-05/0.1035, allocations: 109.8 kB / 0.5509 GB, free: 14.05 MB / 382.1 MB Notification: Performance of pre-optimization done (n=0): time 9.62e-07/0.1035, allocations: 0 / 0.5509 GB, free: 14.05 MB / 382.1 MB Notification: Performance of matching and sorting (n=0): time 7.591e-05/0.1036, allocations: 41.55 kB / 0.5509 GB, free: 14 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.486e-05/0.1037, allocations: 130.6 kB / 0.551 GB, free: 13.86 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000168/0.1038, allocations: 163.3 kB / 0.5512 GB, free: 13.69 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.789e-05/0.1039, allocations: 29.7 kB / 0.5512 GB, free: 13.66 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.821e-05/0.1039, allocations: 100.1 kB / 0.5513 GB, free: 13.55 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.543e-06/0.1039, allocations: 0 / 0.5513 GB, free: 13.55 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.153e-05/0.1039, allocations: 13.77 kB / 0.5513 GB, free: 13.54 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001365/0.1041, allocations: 330.8 kB / 0.5516 GB, free: 13.2 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.63e-06/0.1041, allocations: 0 / 0.5516 GB, free: 13.2 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.475e-06/0.1041, allocations: 0 / 0.5516 GB, free: 13.2 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.532e-05/0.1041, allocations: 75.28 kB / 0.5517 GB, free: 13.13 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.899e-05/0.1041, allocations: 75.28 kB / 0.5518 GB, free: 13.05 MB / 382.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 6.238e-05/0.1042, allocations: 45.53 kB / 0.5518 GB, free: 13 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.334e-05/0.1043, allocations: 79.28 kB / 0.5519 GB, free: 12.93 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.469e-05/0.1043, allocations: 79.28 kB / 0.552 GB, free: 12.85 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.218e-05/0.1044, allocations: 154.6 kB / 0.5521 GB, free: 12.7 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.558e-05/0.1044, allocations: 83.2 kB / 0.5522 GB, free: 12.61 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.925e-05/0.1045, allocations: 150.6 kB / 0.5524 GB, free: 12.46 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.935e-05/0.1045, allocations: 83.22 kB / 0.5524 GB, free: 12.38 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.803e-05/0.1046, allocations: 79.28 kB / 0.5525 GB, free: 12.3 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.0001435/0.1047, allocations: 272.4 kB / 0.5528 GB, free: 12.03 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.158e-05/0.1048, allocations: 112.9 kB / 0.5529 GB, free: 11.91 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.216e-05/0.1048, allocations: 121.4 kB / 0.553 GB, free: 11.79 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.347e-05/0.1049, allocations: 180.2 kB / 0.5532 GB, free: 11.6 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.665e-05/0.105, allocations: 184.2 kB / 0.5533 GB, free: 11.41 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.317e-05/0.1051, allocations: 176.3 kB / 0.5535 GB, free: 11.23 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002566/0.1053, allocations: 392.3 kB / 0.5539 GB, free: 10.8 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.924e-05/0.1054, allocations: 112.9 kB / 0.554 GB, free: 10.68 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.451e-05/0.1054, allocations: 112.9 kB / 0.5541 GB, free: 10.57 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.635e-05/0.1055, allocations: 184.2 kB / 0.5543 GB, free: 10.38 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.483e-05/0.1056, allocations: 184.2 kB / 0.5545 GB, free: 10.19 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.548e-05/0.1056, allocations: 184.2 kB / 0.5546 GB, free: 10 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.571e-05/0.1057, allocations: 176.6 kB / 0.5548 GB, free: 9.824 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001608/0.1059, allocations: 319.7 kB / 0.5551 GB, free: 9.488 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.175e-05/0.1059, allocations: 116.9 kB / 0.5552 GB, free: 9.367 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.347e-05/0.106, allocations: 180.2 kB / 0.5554 GB, free: 9.184 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.97e-05/0.1061, allocations: 105 kB / 0.5555 GB, free: 9.074 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.712e-05/0.1062, allocations: 180.3 kB / 0.5557 GB, free: 8.891 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.706e-05/0.1062, allocations: 108.9 kB / 0.5558 GB, free: 8.777 MB / 382.1 MB Notification: Performance of sorting global known variables: time 9.789e-05/0.1063, allocations: 132.9 kB / 0.5559 GB, free: 8.648 MB / 382.1 MB Notification: Performance of sort global known variables: time 6e-08/0.1063, allocations: 0 / 0.5559 GB, free: 8.648 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00027/0.1066, allocations: 4 kB / 0.5559 GB, free: 8.645 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.0004469/0.1071, allocations: 0.8203 MB / 0.5567 GB, free: 7.793 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 3.862e-05/0.1071, allocations: 3.938 kB / 0.5567 GB, free: 7.789 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.1071, allocations: 0 / 0.5567 GB, free: 7.789 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 1.112e-06/0.1071, allocations: 0 / 0.5567 GB, free: 7.789 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005087/0.1076, allocations: 468.8 kB / 0.5571 GB, free: 7.328 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00158/0.1092, allocations: 1.827 MB / 0.5589 GB, free: 5.422 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.624e-05/0.1093, allocations: 79.31 kB / 0.559 GB, free: 5.324 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 4.291e-05/0.1093, allocations: 7.984 kB / 0.559 GB, free: 5.316 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.241e-05/0.1094, allocations: 23.44 kB / 0.559 GB, free: 5.293 MB / 382.1 MB Notification: Performance of SimCode: time 3.31e-07/0.1094, allocations: 0 / 0.559 GB, free: 5.293 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02302/0.1324, allocations: 2.051 MB / 0.561 GB, free: 3.375 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.02/11.15, allocations: 11.75 kB / 0.561 GB, free: 3.367 MB / 382.1 MB " [Timeout remaining time 649] (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: 14.151640868047252] Failed to read output from testmodel.py, exit status != 0: 11.308788441005163 11.568180128 11.46331335 Calling exit ...