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.001503/0.001503, 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.61/1.61, allocations: 230.6 MB / 253.5 MB, free: 14.28 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.001733/0.001733, allocations: 205.1 kB / 310 MB, free: 3.098 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.04868/0.04868, allocations: 8.929 MB / 375.4 MB, free: 6.609 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.002581/0.002581, allocations: 83.86 kB / 0.4899 GB, free: 44.77 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1091/0.1117, allocations: 55.61 MB / 0.5442 GB, free: 5.062 MB / 366.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Classes.MixedDeclaration): time 0.002601/0.1143, allocations: 1.284 MB / 0.5454 GB, free: 3.766 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 6.23e-05/0.1143, allocations: 7.938 kB / 0.5455 GB, free: 3.758 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.138e-05/0.1144, allocations: 0 / 0.5455 GB, free: 3.758 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 4.255e-05/0.1144, allocations: 0 / 0.5455 GB, free: 3.758 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 6.93e-05/0.1145, allocations: 0 / 0.5455 GB, free: 3.758 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 2.457e-05/0.1145, allocations: 7.984 kB / 0.5455 GB, free: 3.75 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 7.014e-05/0.1146, allocations: 7.938 kB / 0.5455 GB, free: 3.742 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.283e-05/0.1147, allocations: 4 kB / 0.5455 GB, free: 3.738 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.32e-05/0.1147, allocations: 3.938 kB / 0.5455 GB, free: 3.734 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.196e-05/0.1147, allocations: 4 kB / 0.5455 GB, free: 3.73 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 1.702e-05/0.1147, allocations: 0 / 0.5455 GB, free: 3.73 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.392e-06/0.1147, allocations: 0 / 0.5455 GB, free: 3.73 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 1.947e-05/0.1148, allocations: 11.98 kB / 0.5455 GB, free: 3.719 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 2.31e-05/0.1148, allocations: 3.938 kB / 0.5455 GB, free: 3.715 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 6.576e-05/0.1149, allocations: 12.2 kB / 0.5455 GB, free: 3.703 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.588e-06/0.1149, allocations: 0 / 0.5455 GB, free: 3.703 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.1149, allocations: 0 / 0.5455 GB, free: 3.703 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.831e-06/0.1149, allocations: 0 / 0.5455 GB, free: 3.703 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.0003855/0.1153, allocations: 242.5 kB / 0.5457 GB, free: 3.434 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.551e-05/0.1153, allocations: 11.98 kB / 0.5457 GB, free: 3.422 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.051e-05/0.1153, allocations: 4.188 kB / 0.5458 GB, free: 3.418 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.005e-05/0.1154, allocations: 34.69 kB / 0.5458 GB, free: 3.375 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.052e-05/0.1154, allocations: 4.891 kB / 0.5458 GB, free: 3.371 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000128/0.1155, allocations: 114.5 kB / 0.5459 GB, free: 3.234 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.708e-06/0.1155, allocations: 384 / 0.5459 GB, free: 3.234 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.983e-06/0.1155, allocations: 384 / 0.5459 GB, free: 3.234 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001051/0.1156, allocations: 55.67 kB / 0.546 GB, free: 3.168 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.062e-05/0.1156, allocations: 3.984 kB / 0.546 GB, free: 3.164 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.604e-06/0.1156, allocations: 0 / 0.546 GB, free: 3.164 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.38e-06/0.1156, allocations: 0 / 0.546 GB, free: 3.164 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.001e-05/0.1157, allocations: 7.938 kB / 0.546 GB, free: 3.156 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003708/0.116, allocations: 442.7 kB / 0.5464 GB, free: 2.676 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00011/0.1161, allocations: 173.1 kB / 0.5466 GB, free: 2.496 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.384e-05/0.1162, allocations: 88.08 kB / 0.5466 GB, free: 2.406 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.279e-05/0.1162, allocations: 79.28 kB / 0.5467 GB, free: 2.328 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.301e-05/0.1163, allocations: 109.8 kB / 0.5468 GB, free: 2.211 MB / 366.1 MB Notification: Performance of pre-optimization done (n=0): time 8.42e-07/0.1163, allocations: 0 / 0.5468 GB, free: 2.211 MB / 366.1 MB Notification: Performance of matching and sorting (n=0): time 7.136e-05/0.1163, allocations: 25.7 kB / 0.5468 GB, free: 2.18 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.584e-05/0.1164, allocations: 130.7 kB / 0.547 GB, free: 2.039 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.885e-05/0.1165, allocations: 101.8 kB / 0.5471 GB, free: 1.93 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.302e-05/0.1165, allocations: 25.7 kB / 0.5471 GB, free: 1.898 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.749e-05/0.1166, allocations: 88.09 kB / 0.5472 GB, free: 1.809 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.755e-06/0.1166, allocations: 0 / 0.5472 GB, free: 1.809 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.927e-05/0.1166, allocations: 17.72 kB / 0.5472 GB, free: 1.785 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001343/0.1167, allocations: 322.8 kB / 0.5475 GB, free: 1.461 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.856e-06/0.1168, allocations: 0 / 0.5475 GB, free: 1.461 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.638e-05/0.1168, allocations: 17.66 kB / 0.5475 GB, free: 1.438 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.435e-05/0.1168, allocations: 17.72 kB / 0.5475 GB, free: 1.414 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.212e-06/0.1168, allocations: 0 / 0.5475 GB, free: 1.414 MB / 366.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 9.898e-05/0.1169, allocations: 45.59 kB / 0.5476 GB, free: 1.363 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.809e-05/0.1169, allocations: 11.98 kB / 0.5476 GB, free: 1.352 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.727e-06/0.1169, allocations: 4.125 kB / 0.5476 GB, free: 1.348 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.325e-05/0.1169, allocations: 0 / 0.5476 GB, free: 1.348 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.493e-05/0.117, allocations: 4 kB / 0.5476 GB, free: 1.344 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.869e-06/0.117, allocations: 0 / 0.5476 GB, free: 1.344 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.896e-05/0.117, allocations: 0 / 0.5476 GB, free: 1.344 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.237e-06/0.117, allocations: 4 kB / 0.5476 GB, free: 1.34 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.0001078/0.1171, allocations: 185.1 kB / 0.5478 GB, free: 1.148 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.842e-05/0.1172, allocations: 108.9 kB / 0.5479 GB, free: 1.035 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.144e-05/0.1172, allocations: 108.1 kB / 0.548 GB, free: 0.9258 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.472e-05/0.1173, allocations: 180.3 kB / 0.5482 GB, free: 0.7422 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.147e-05/0.1174, allocations: 192.1 kB / 0.5483 GB, free: 0.5469 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.976e-05/0.1175, allocations: 180.3 kB / 0.5485 GB, free: 372 kB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002517/0.1177, allocations: 384.2 kB / 0.5489 GB, free: 15.94 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.437e-05/0.1178, allocations: 101 kB / 0.549 GB, free: 15.83 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.429e-05/0.1178, allocations: 105 kB / 0.5491 GB, free: 15.72 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.34e-05/0.1179, allocations: 180.2 kB / 0.5492 GB, free: 15.54 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.379e-05/0.118, allocations: 180.2 kB / 0.5494 GB, free: 15.36 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.333e-05/0.118, allocations: 184.5 kB / 0.5496 GB, free: 15.17 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.071e-05/0.1181, allocations: 180.3 kB / 0.5498 GB, free: 14.98 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001515/0.1183, allocations: 312 kB / 0.5501 GB, free: 14.66 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.605e-05/0.1183, allocations: 109 kB / 0.5502 GB, free: 14.54 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.407e-05/0.1184, allocations: 188.2 kB / 0.5503 GB, free: 14.35 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.507e-05/0.1185, allocations: 105 kB / 0.5504 GB, free: 14.24 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.497e-05/0.1186, allocations: 184.1 kB / 0.5506 GB, free: 14.05 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.401e-05/0.1186, allocations: 105 kB / 0.5507 GB, free: 13.95 MB / 382.1 MB Notification: Performance of sorting global known variables: time 4.996e-05/0.1187, allocations: 87.27 kB / 0.5508 GB, free: 13.86 MB / 382.1 MB Notification: Performance of sort global known variables: time 6e-08/0.1187, allocations: 0 / 0.5508 GB, free: 13.86 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002224/0.1189, allocations: 4 kB / 0.5508 GB, free: 13.86 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.0004381/0.1194, allocations: 0.8086 MB / 0.5516 GB, free: 13.02 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 6.981e-05/0.1194, allocations: 4 kB / 0.5516 GB, free: 13.01 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.1194, allocations: 4.125 kB / 0.5516 GB, free: 13.01 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 1.202e-06/0.1194, allocations: 0 / 0.5516 GB, free: 13.01 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003994/0.1198, allocations: 455.7 kB / 0.552 GB, free: 12.56 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001002/0.1208, allocations: 1.284 MB / 0.5533 GB, free: 11.19 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.86e-05/0.1209, allocations: 59.34 kB / 0.5533 GB, free: 11.11 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 2.066e-05/0.1209, allocations: 0 / 0.5533 GB, free: 11.11 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.464e-05/0.1209, allocations: 11.44 kB / 0.5534 GB, free: 11.1 MB / 382.1 MB Notification: Performance of SimCode: time 3.41e-07/0.1209, allocations: 4 kB / 0.5534 GB, free: 11.09 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02139/0.1423, allocations: 1.145 MB / 0.5545 GB, free: 10.07 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.93/11.07, allocations: 10.97 kB / 0.5545 GB, free: 10.07 MB / 382.1 MB " [Timeout remaining time 649] (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: 14.3082758160308] Failed to read output from testmodel.py, exit status != 0: 11.224406684981659 11.392470075 11.275246908 Calling exit ...