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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001573/0.001573, allocations: 110.2 kB / 16.46 MB, free: 6.504 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.433/1.433, allocations: 225.6 MB / 244.8 MB, free: 14.17 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002281/0.002281, allocations: 194.1 kB / 299.8 MB, free: 9.809 MB / 238.1 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.04218/0.04218, allocations: 8.944 MB / 363.6 MB, free: 10.16 MB / 302.1 MB " [Timeout remaining time 180] Using package HanserModelica with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(HanserModelica.VariablesTypes.ComplexCalculation,fileNamePrefix="HanserModelica_HanserModelica_VariablesTypes_ComplexCalculation",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.VariablesTypes.ComplexCalculation,fileNamePrefix="HanserModelica_HanserModelica_VariablesTypes_ComplexCalculation",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002282/0.002282, allocations: 85.19 kB / 486 MB, free: 11.71 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1015/0.1038, allocations: 54.41 MB / 0.5278 GB, free: 1.348 MB / 334.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.VariablesTypes.ComplexCalculation): time 0.002513/0.1063, allocations: 1.385 MB / 0.5291 GB, free: 15.95 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00134/0.1076, allocations: 0.877 MB / 0.53 GB, free: 15.07 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.381e-05/0.1077, allocations: 0 / 0.53 GB, free: 15.07 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002748/0.108, allocations: 83.62 kB / 0.5301 GB, free: 14.98 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 7.295e-05/0.108, allocations: 19.91 kB / 0.5301 GB, free: 14.96 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008697/0.1089, allocations: 450 kB / 0.5305 GB, free: 14.52 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000134/0.109, allocations: 39.78 kB / 0.5306 GB, free: 14.48 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.219e-05/0.1091, allocations: 8 kB / 0.5306 GB, free: 14.48 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.631e-05/0.1091, allocations: 19.92 kB / 0.5306 GB, free: 14.46 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.004e-05/0.1092, allocations: 15.92 kB / 0.5306 GB, free: 14.44 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.498e-06/0.1092, allocations: 0 / 0.5306 GB, free: 14.44 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002296/0.1094, allocations: 107.9 kB / 0.5307 GB, free: 14.34 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.431e-05/0.1094, allocations: 11.92 kB / 0.5307 GB, free: 14.32 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.705e-05/0.1095, allocations: 15.92 kB / 0.5307 GB, free: 14.31 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002344/0.1097, allocations: 123.8 kB / 0.5308 GB, free: 14.19 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.1097, allocations: 3.938 kB / 0.5309 GB, free: 14.19 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.1097, allocations: 0 / 0.5309 GB, free: 14.19 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.749e-06/0.1097, allocations: 3.938 kB / 0.5309 GB, free: 14.18 MB / 350.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.0009087/0.1106, allocations: 435 kB / 0.5313 GB, free: 13.71 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.149e-05/0.1107, allocations: 12.03 kB / 0.5313 GB, free: 13.7 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.235e-05/0.1107, allocations: 34.75 kB / 0.5313 GB, free: 13.66 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.464e-05/0.1107, allocations: 4.938 kB / 0.5313 GB, free: 13.65 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001413/0.1109, allocations: 168.3 kB / 0.5315 GB, free: 13.45 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.282e-05/0.1109, allocations: 4.359 kB / 0.5315 GB, free: 13.45 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.187e-05/0.1109, allocations: 4.375 kB / 0.5315 GB, free: 13.44 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001325/0.111, allocations: 65.75 kB / 0.5316 GB, free: 13.37 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.624e-06/0.111, allocations: 0 / 0.5316 GB, free: 13.37 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.103e-05/0.111, allocations: 4 kB / 0.5316 GB, free: 13.37 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.058e-06/0.111, allocations: 0 / 0.5316 GB, free: 13.37 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.901e-05/0.1111, allocations: 35.98 kB / 0.5316 GB, free: 13.33 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001988/0.1113, allocations: 177.6 kB / 0.5318 GB, free: 13.11 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001672/0.1115, allocations: 62.62 kB / 0.5318 GB, free: 13.04 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.716e-05/0.1116, allocations: 24.97 kB / 0.5318 GB, free: 13.01 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.896e-05/0.1116, allocations: 11.98 kB / 0.5319 GB, free: 13 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.234e-05/0.1116, allocations: 42.44 kB / 0.5319 GB, free: 12.95 MB / 350.1 MB Notification: Performance of pre-optimization done (n=6): time 9.82e-07/0.1116, allocations: 0 / 0.5319 GB, free: 12.95 MB / 350.1 MB Notification: Performance of matching and sorting (n=6): time 0.0002281/0.1118, allocations: 89.69 kB / 0.532 GB, free: 12.86 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.014e-05/0.1119, allocations: 55.41 kB / 0.532 GB, free: 12.79 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.199e-05/0.112, allocations: 105.8 kB / 0.5321 GB, free: 12.68 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.134e-05/0.112, allocations: 29.7 kB / 0.5322 GB, free: 12.64 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.187e-05/0.112, allocations: 88.08 kB / 0.5322 GB, free: 12.55 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.306e-05/0.1121, allocations: 23.8 kB / 0.5323 GB, free: 12.53 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.11e-05/0.1121, allocations: 21.7 kB / 0.5323 GB, free: 12.5 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001337/0.1122, allocations: 314.8 kB / 0.5326 GB, free: 12.18 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.456e-05/0.1123, allocations: 19.98 kB / 0.5326 GB, free: 12.16 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.851e-05/0.1123, allocations: 20 kB / 0.5326 GB, free: 12.14 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.286e-05/0.1124, allocations: 48.8 kB / 0.5327 GB, free: 12.09 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.563e-06/0.1124, allocations: 0 / 0.5327 GB, free: 12.09 MB / 350.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.000145/0.1126, allocations: 81.58 kB / 0.5328 GB, free: 12.01 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.568e-05/0.1126, allocations: 14.97 kB / 0.5328 GB, free: 12 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.937e-06/0.1126, allocations: 0.6875 kB / 0.5328 GB, free: 12 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.199e-05/0.1126, allocations: 0 / 0.5328 GB, free: 12 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001086/0.1127, allocations: 11.98 kB / 0.5328 GB, free: 11.98 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.449e-06/0.1127, allocations: 0 / 0.5328 GB, free: 11.98 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.476e-05/0.1128, allocations: 4 kB / 0.5328 GB, free: 11.98 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.918e-06/0.1128, allocations: 8 kB / 0.5328 GB, free: 11.97 MB / 350.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 8.92e-05/0.1129, allocations: 113.7 kB / 0.5329 GB, free: 11.85 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.762e-05/0.1129, allocations: 15.83 kB / 0.5329 GB, free: 11.84 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002025/0.1131, allocations: 110 kB / 0.533 GB, free: 11.72 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.693e-06/0.1131, allocations: 0 / 0.533 GB, free: 11.72 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.807e-06/0.1131, allocations: 0 / 0.533 GB, free: 11.72 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.484e-06/0.1131, allocations: 0 / 0.533 GB, free: 11.72 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001689/0.1133, allocations: 185.6 kB / 0.5332 GB, free: 11.49 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-06/0.1133, allocations: 0 / 0.5332 GB, free: 11.49 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.549e-05/0.1133, allocations: 15.94 kB / 0.5332 GB, free: 11.47 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.463e-06/0.1133, allocations: 0 / 0.5332 GB, free: 11.47 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.025e-05/0.1134, allocations: 3.984 kB / 0.5332 GB, free: 11.47 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.112e-06/0.1134, allocations: 3.938 kB / 0.5332 GB, free: 11.46 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.01e-07/0.1134, allocations: 0 / 0.5332 GB, free: 11.46 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001798/0.1135, allocations: 121.1 kB / 0.5333 GB, free: 11.33 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.625e-05/0.1136, allocations: 81.05 kB / 0.5334 GB, free: 11.23 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.627e-05/0.1136, allocations: 4 kB / 0.5334 GB, free: 11.23 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.516e-05/0.1136, allocations: 0 / 0.5334 GB, free: 11.23 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.918e-05/0.1137, allocations: 7.984 kB / 0.5334 GB, free: 11.22 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.705e-06/0.1137, allocations: 7.938 kB / 0.5334 GB, free: 11.21 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.154e-05/0.1137, allocations: 79.28 kB / 0.5335 GB, free: 11.13 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1137, allocations: 4 kB / 0.5335 GB, free: 11.13 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002067/0.1139, allocations: 16 kB / 0.5335 GB, free: 11.11 MB / 350.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.0005125/0.1144, allocations: 0.6631 MB / 0.5342 GB, free: 10.42 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001413/0.1146, allocations: 48.22 kB / 0.5342 GB, free: 10.38 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.533e-06/0.1146, allocations: 0 / 0.5342 GB, free: 10.38 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 5.747e-05/0.1146, allocations: 39.91 kB / 0.5343 GB, free: 10.34 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001384/0.1148, allocations: 7.938 kB / 0.5343 GB, free: 10.33 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004666/0.1152, allocations: 198 kB / 0.5345 GB, free: 10.09 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003237/0.1156, allocations: 0.6844 MB / 0.5351 GB, free: 9.383 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.508e-05/0.1156, allocations: 4 kB / 0.5351 GB, free: 9.379 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.599e-05/0.1157, allocations: 15.42 kB / 0.5351 GB, free: 9.363 MB / 350.1 MB Notification: Performance of SimCode: time 2.9e-07/0.1157, allocations: 0 / 0.5351 GB, free: 9.363 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02462/0.1403, allocations: 1.947 MB / 0.537 GB, free: 7.5 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.738/7.879, allocations: 7.812 kB / 0.537 GB, free: 7.496 MB / 350.1 MB " [Timeout remaining time 652] (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: 10.642634478863329] Failed to read output from testmodel.py, exit status != 0: 8.106655127834529 7.958975846 7.846080934 Calling exit ...