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.001322/0.001322, 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.479/1.479, allocations: 230.6 MB / 253.4 MB, free: 14.66 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.001629/0.001629, allocations: 205.6 kB / 310 MB, free: 3.055 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.04047/0.04047, allocations: 8.912 MB / 375.4 MB, free: 6.805 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.002662/0.002662, allocations: 83.88 kB / 0.4899 GB, free: 44.95 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1043/0.107, allocations: 55.62 MB / 0.5443 GB, free: 5.238 MB / 366.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.VariablesTypes.ComplexCalculation): time 0.004384/0.1114, allocations: 1.405 MB / 0.5456 GB, free: 3.82 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002064/0.1134, allocations: 0.9461 MB / 0.5466 GB, free: 2.867 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.197e-05/0.1135, allocations: 4 kB / 0.5466 GB, free: 2.863 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004186/0.1139, allocations: 91.61 kB / 0.5466 GB, free: 2.773 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 8.737e-05/0.114, allocations: 7.938 kB / 0.5467 GB, free: 2.766 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008769/0.1149, allocations: 290.7 kB / 0.5469 GB, free: 2.48 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001836/0.115, allocations: 31.86 kB / 0.547 GB, free: 2.449 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.642e-05/0.1151, allocations: 12 kB / 0.547 GB, free: 2.438 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001231/0.1152, allocations: 23.91 kB / 0.547 GB, free: 2.414 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.317e-05/0.1153, allocations: 7.938 kB / 0.547 GB, free: 2.406 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 1.158e-05/0.1153, allocations: 4 kB / 0.547 GB, free: 2.402 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003604/0.1157, allocations: 123.8 kB / 0.5471 GB, free: 2.281 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 1.654e-05/0.1157, allocations: 7.984 kB / 0.5471 GB, free: 2.273 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 3.836e-05/0.1157, allocations: 19.86 kB / 0.5472 GB, free: 2.254 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003238/0.1161, allocations: 135.9 kB / 0.5473 GB, free: 2.121 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.61e-06/0.1161, allocations: 0 / 0.5473 GB, free: 2.121 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.924e-06/0.1161, allocations: 0 / 0.5473 GB, free: 2.121 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.523e-06/0.1161, allocations: 4 kB / 0.5473 GB, free: 2.117 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.001198/0.1173, allocations: 353.9 kB / 0.5476 GB, free: 1.742 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.118e-05/0.1173, allocations: 19.92 kB / 0.5476 GB, free: 1.723 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.508e-05/0.1173, allocations: 192 / 0.5476 GB, free: 1.723 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.316e-05/0.1174, allocations: 30.75 kB / 0.5477 GB, free: 1.684 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.166e-05/0.1174, allocations: 20.81 kB / 0.5477 GB, free: 1.664 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001236/0.1175, allocations: 106.5 kB / 0.5478 GB, free: 1.535 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.036e-05/0.1175, allocations: 4.375 kB / 0.5478 GB, free: 1.531 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.278e-05/0.1176, allocations: 384 / 0.5478 GB, free: 1.531 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000182/0.1177, allocations: 65.61 kB / 0.5479 GB, free: 1.461 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.196e-06/0.1178, allocations: 4 kB / 0.5479 GB, free: 1.457 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.648e-05/0.1178, allocations: 3.984 kB / 0.5479 GB, free: 1.453 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.31e-06/0.1178, allocations: 0 / 0.5479 GB, free: 1.453 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001225/0.1179, allocations: 35.92 kB / 0.5479 GB, free: 1.418 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002425/0.1181, allocations: 152.7 kB / 0.548 GB, free: 1.227 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002262/0.1184, allocations: 66.62 kB / 0.5481 GB, free: 1.152 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.649e-05/0.1184, allocations: 24.97 kB / 0.5481 GB, free: 1.125 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.802e-05/0.1185, allocations: 7.922 kB / 0.5481 GB, free: 1.117 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.735e-05/0.1185, allocations: 34.56 kB / 0.5482 GB, free: 1.074 MB / 366.1 MB Notification: Performance of pre-optimization done (n=6): time 1.102e-06/0.1185, allocations: 0 / 0.5482 GB, free: 1.074 MB / 366.1 MB Notification: Performance of matching and sorting (n=6): time 0.0003522/0.1189, allocations: 101.8 kB / 0.5483 GB, free: 0.9688 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.595e-05/0.1189, allocations: 51.41 kB / 0.5483 GB, free: 0.9062 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001086/0.119, allocations: 113.9 kB / 0.5484 GB, free: 0.7852 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.652e-05/0.1191, allocations: 25.7 kB / 0.5485 GB, free: 0.7539 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.666e-05/0.1191, allocations: 92.08 kB / 0.5485 GB, free: 0.6602 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.52e-05/0.1192, allocations: 15.84 kB / 0.5486 GB, free: 0.6445 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.1e-05/0.1192, allocations: 17.72 kB / 0.5486 GB, free: 0.6211 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001676/0.1194, allocations: 318.8 kB / 0.5489 GB, free: 308 kB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.627e-05/0.1194, allocations: 19.98 kB / 0.5489 GB, free: 288 kB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.79e-05/0.1195, allocations: 12 kB / 0.5489 GB, free: 276 kB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001361/0.1196, allocations: 56.84 kB / 0.549 GB, free: 216 kB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.1196, allocations: 0 / 0.549 GB, free: 216 kB / 366.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0002028/0.1198, allocations: 85.56 kB / 0.549 GB, free: 124 kB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.83e-05/0.1199, allocations: 4 kB / 0.549 GB, free: 120 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.831e-06/0.1199, allocations: 0 / 0.549 GB, free: 120 kB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.013e-05/0.1199, allocations: 4 kB / 0.5491 GB, free: 116 kB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001373/0.12, allocations: 8 kB / 0.5491 GB, free: 108 kB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.935e-06/0.12, allocations: 0 / 0.5491 GB, free: 108 kB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.016e-05/0.1201, allocations: 7.891 kB / 0.5491 GB, free: 100 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.887e-06/0.1201, allocations: 0 / 0.5491 GB, free: 100 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.0001615/0.1203, allocations: 121.8 kB / 0.5492 GB, free: 15.97 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.007e-05/0.1203, allocations: 3.938 kB / 0.5492 GB, free: 15.96 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002833/0.1206, allocations: 106 kB / 0.5493 GB, free: 15.86 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.11e-06/0.1206, allocations: 4 kB / 0.5493 GB, free: 15.85 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.893e-06/0.1206, allocations: 0 / 0.5493 GB, free: 15.85 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.649e-06/0.1206, allocations: 0 / 0.5493 GB, free: 15.85 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002108/0.1208, allocations: 160.7 kB / 0.5494 GB, free: 15.65 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.149e-06/0.1208, allocations: 3.938 kB / 0.5494 GB, free: 15.65 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001065/0.1209, allocations: 12.42 kB / 0.5495 GB, free: 15.64 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.868e-06/0.1209, allocations: 8 kB / 0.5495 GB, free: 15.63 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.193e-05/0.1209, allocations: 0 / 0.5495 GB, free: 15.63 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.069e-06/0.1209, allocations: 4 kB / 0.5495 GB, free: 15.62 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.1209, allocations: 0 / 0.5495 GB, free: 15.62 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002499/0.1212, allocations: 121.1 kB / 0.5496 GB, free: 15.49 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.942e-05/0.1212, allocations: 7.891 kB / 0.5496 GB, free: 15.48 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.134e-05/0.1212, allocations: 4 kB / 0.5496 GB, free: 15.48 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.576e-05/0.1213, allocations: 3.984 kB / 0.5496 GB, free: 15.47 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.587e-05/0.1213, allocations: 4 kB / 0.5496 GB, free: 15.47 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.239e-05/0.1213, allocations: 8 kB / 0.5496 GB, free: 15.46 MB / 382.1 MB Notification: Performance of sorting global known variables: time 6.889e-05/0.1214, allocations: 83.27 kB / 0.5497 GB, free: 15.38 MB / 382.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1214, allocations: 0 / 0.5497 GB, free: 15.38 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000305/0.1217, allocations: 16 kB / 0.5497 GB, free: 15.36 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.0007465/0.1224, allocations: 0.6592 MB / 0.5504 GB, free: 14.68 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.000224/0.1227, allocations: 47.98 kB / 0.5504 GB, free: 14.63 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.1227, allocations: 3.938 kB / 0.5504 GB, free: 14.62 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 7.934e-05/0.1227, allocations: 27.94 kB / 0.5504 GB, free: 14.6 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002316/0.123, allocations: 16.61 kB / 0.5504 GB, free: 14.59 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000714/0.1237, allocations: 206.5 kB / 0.5506 GB, free: 14.34 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004018/0.1241, allocations: 0.6845 MB / 0.5513 GB, free: 13.63 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 4.264e-05/0.1241, allocations: 3.984 kB / 0.5513 GB, free: 13.63 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.838e-05/0.1242, allocations: 19.44 kB / 0.5513 GB, free: 13.61 MB / 382.1 MB Notification: Performance of SimCode: time 5.31e-07/0.1242, allocations: 3.938 kB / 0.5513 GB, free: 13.61 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02363/0.1478, allocations: 2.122 MB / 0.5534 GB, free: 11.61 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.7/11.85, allocations: 4 kB / 0.5534 GB, free: 11.6 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.932295614969917] Failed to read output from testmodel.py, exit status != 0: 12.01584989798721 12.335902186 12.216118436 Calling exit ...