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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001035/0.001035, allocations: 111.3 kB / 15.23 MB, free: 0.6602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.312/1.312, allocations: 222.9 MB / 238.9 MB, free: 4.684 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001234/0.001234, allocations: 200.4 kB / 289.2 MB, free: 2.414 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03575/0.03575, allocations: 8.793 MB / 348.1 MB, free: 4.871 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001715/0.001715, allocations: 78.39 kB / 410.5 MB, free: 42.34 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09437/0.09611, allocations: 51.56 MB / 462.1 MB, free: 14.78 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.VariablesTypes.ComplexCalculation): time 0.00316/0.09931, allocations: 1.449 MB / 463.5 MB, free: 13.31 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001395/0.1007, allocations: 0.8451 MB / 464.4 MB, free: 12.46 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.021e-05/0.1008, allocations: 0 / 464.4 MB, free: 12.46 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003782/0.1012, allocations: 87.67 kB / 464.4 MB, free: 12.37 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 7.917e-05/0.1013, allocations: 4 kB / 464.5 MB, free: 12.37 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009075/0.1022, allocations: 450.4 kB / 464.9 MB, free: 11.93 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001563/0.1024, allocations: 39.86 kB / 464.9 MB, free: 11.89 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.275e-05/0.1024, allocations: 0 / 464.9 MB, free: 11.89 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.646e-05/0.1025, allocations: 11.94 kB / 464.9 MB, free: 11.88 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.585e-05/0.1026, allocations: 11.92 kB / 465 MB, free: 11.86 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.155e-05/0.1026, allocations: 7.938 kB / 465 MB, free: 11.86 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000265/0.1029, allocations: 115.8 kB / 465.1 MB, free: 11.74 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 1.37e-05/0.1029, allocations: 11.94 kB / 465.1 MB, free: 11.73 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 2.994e-05/0.1029, allocations: 15.91 kB / 465.1 MB, free: 11.71 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002734/0.1032, allocations: 123.8 kB / 465.2 MB, free: 11.59 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.328e-06/0.1032, allocations: 0 / 465.2 MB, free: 11.59 MB / 302.1 MB Notification: Performance of FrontEnd: time 7.32e-07/0.1032, allocations: 0 / 465.2 MB, free: 11.59 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.787e-06/0.1032, allocations: 0 / 465.2 MB, free: 11.59 MB / 302.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.0009544/0.1042, allocations: 432.3 kB / 465.6 MB, free: 11.12 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.077e-05/0.1043, allocations: 16.03 kB / 465.7 MB, free: 11.11 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.929e-05/0.1043, allocations: 34.69 kB / 465.7 MB, free: 11.07 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.02e-05/0.1044, allocations: 0.9375 kB / 465.7 MB, free: 11.07 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001427/0.1045, allocations: 168.3 kB / 465.9 MB, free: 10.86 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.367e-05/0.1045, allocations: 384 / 465.9 MB, free: 10.86 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.076e-05/0.1046, allocations: 8.375 kB / 465.9 MB, free: 10.86 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001445/0.1047, allocations: 57.8 kB / 465.9 MB, free: 10.79 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.517e-06/0.1047, allocations: 0 / 465.9 MB, free: 10.79 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.458e-05/0.1047, allocations: 3.984 kB / 465.9 MB, free: 10.79 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.15e-06/0.1048, allocations: 0 / 465.9 MB, free: 10.79 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.327e-05/0.1049, allocations: 39.98 kB / 466 MB, free: 10.75 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002474/0.1051, allocations: 189.5 kB / 466.2 MB, free: 10.52 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001704/0.1053, allocations: 62.56 kB / 466.2 MB, free: 10.45 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.621e-05/0.1054, allocations: 24.98 kB / 466.2 MB, free: 10.42 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.854e-05/0.1054, allocations: 4 kB / 466.2 MB, free: 10.41 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.486e-05/0.1054, allocations: 42.48 kB / 466.3 MB, free: 10.36 MB / 302.1 MB Notification: Performance of pre-optimization done (n=6): time 1.002e-06/0.1054, allocations: 0 / 466.3 MB, free: 10.36 MB / 302.1 MB Notification: Performance of matching and sorting (n=6): time 0.0002491/0.1057, allocations: 97.62 kB / 466.4 MB, free: 10.26 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.93e-05/0.1057, allocations: 55.41 kB / 466.4 MB, free: 10.2 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.466e-05/0.1058, allocations: 101.8 kB / 466.5 MB, free: 10.09 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.463e-05/0.1058, allocations: 25.7 kB / 466.6 MB, free: 10.05 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.961e-05/0.1059, allocations: 88.14 kB / 466.6 MB, free: 9.965 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.672e-05/0.1059, allocations: 19.66 kB / 466.7 MB, free: 9.945 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.231e-05/0.106, allocations: 17.7 kB / 466.7 MB, free: 9.922 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001198/0.1061, allocations: 318.8 kB / 467 MB, free: 9.602 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.135e-05/0.1062, allocations: 23.94 kB / 467 MB, free: 9.578 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.945e-05/0.1062, allocations: 24.48 kB / 467 MB, free: 9.555 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.128e-05/0.1063, allocations: 48.98 kB / 467.1 MB, free: 9.504 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.894e-06/0.1063, allocations: 0 / 467.1 MB, free: 9.504 MB / 302.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001415/0.1065, allocations: 81.56 kB / 467.2 MB, free: 9.418 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.408e-05/0.1065, allocations: 4 kB / 467.2 MB, free: 9.414 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.559e-06/0.1065, allocations: 4 kB / 467.2 MB, free: 9.41 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.509e-05/0.1065, allocations: 0 / 467.2 MB, free: 9.41 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001139/0.1066, allocations: 15.92 kB / 467.2 MB, free: 9.395 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.672e-06/0.1066, allocations: 4 kB / 467.2 MB, free: 9.391 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.461e-05/0.1067, allocations: 7.906 kB / 467.2 MB, free: 9.383 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.448e-06/0.1067, allocations: 4 kB / 467.2 MB, free: 9.379 MB / 302.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 9.087e-05/0.1068, allocations: 109.8 kB / 467.3 MB, free: 9.262 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.617e-05/0.1068, allocations: 7.938 kB / 467.3 MB, free: 9.254 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002123/0.1071, allocations: 110 kB / 467.4 MB, free: 9.137 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.284e-06/0.1071, allocations: 0 / 467.4 MB, free: 9.137 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.739e-06/0.1071, allocations: 0 / 467.4 MB, free: 9.137 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.695e-06/0.1071, allocations: 0 / 467.4 MB, free: 9.137 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001543/0.1072, allocations: 189.6 kB / 467.6 MB, free: 8.902 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.054e-06/0.1073, allocations: 0 / 467.6 MB, free: 8.902 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.803e-05/0.1073, allocations: 11.94 kB / 467.6 MB, free: 8.891 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.558e-06/0.1074, allocations: 4 kB / 467.6 MB, free: 8.887 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.077e-06/0.1074, allocations: 0 / 467.6 MB, free: 8.887 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.855e-06/0.1074, allocations: 3.984 kB / 467.6 MB, free: 8.883 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.1074, allocations: 0 / 467.6 MB, free: 8.883 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001875/0.1076, allocations: 121 kB / 467.8 MB, free: 8.746 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.356e-05/0.1076, allocations: 92.89 kB / 467.8 MB, free: 8.637 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.568e-05/0.1077, allocations: 0 / 467.8 MB, free: 8.637 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.706e-05/0.1077, allocations: 4 kB / 467.8 MB, free: 8.633 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.374e-05/0.1077, allocations: 7.984 kB / 467.9 MB, free: 8.625 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.634e-06/0.1078, allocations: 4.062 kB / 467.9 MB, free: 8.621 MB / 302.1 MB Notification: Performance of sorting global known variables: time 4.28e-05/0.1078, allocations: 83.28 kB / 467.9 MB, free: 8.539 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1078, allocations: 0 / 467.9 MB, free: 8.539 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002046/0.108, allocations: 16 kB / 468 MB, free: 8.523 MB / 302.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.0005018/0.1085, allocations: 0.6632 MB / 468.6 MB, free: 7.832 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001606/0.1087, allocations: 55.97 kB / 468.7 MB, free: 7.777 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.277e-06/0.1087, allocations: 4 kB / 468.7 MB, free: 7.773 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 5.783e-05/0.1088, allocations: 35.92 kB / 468.7 MB, free: 7.738 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00017/0.109, allocations: 6.25 kB / 468.7 MB, free: 7.734 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000501/0.1095, allocations: 207.7 kB / 468.9 MB, free: 7.488 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002859/0.1098, allocations: 0.6848 MB / 469.6 MB, free: 6.777 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.869e-05/0.1098, allocations: 7.906 kB / 469.6 MB, free: 6.77 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.344e-05/0.1099, allocations: 15.44 kB / 469.6 MB, free: 6.758 MB / 302.1 MB Notification: Performance of SimCode: time 3e-07/0.1099, allocations: 0 / 469.6 MB, free: 6.758 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01248/0.1224, allocations: 1.791 MB / 471.4 MB, free: 5.059 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001973/0.1226, allocations: 195.2 kB / 471.6 MB, free: 4.809 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.622/1.745, allocations: 0 / 471.6 MB, free: 4.809 MB / 302.1 MB (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 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_VariablesTypes_ComplexCalculation.fmu > HanserModelica_HanserModelica.VariablesTypes.ComplexCalculation.pipe 2>&1)