Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_IDEAS.Utilities.Math.Examples.Average.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.001276/0.001276, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 MB " [Timeout remaining time 180] 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.001765/0.001765, allocations: 169.9 kB / 22.46 MB, free: 2.105 MB / 18.57 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 0.9206/0.9206, allocations: 177.1 MB / 202.8 MB, free: 5.742 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/package.mo", uses=false) [Timeout 180] "[/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/Examples/PPD12/Structure.mo:531:21-531:190:writable] Warning: Lexer treating \\ as \\\\, since \\e is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/Examples/PPD12/Structure.mo:531:21-531:198:writable] Warning: Lexer treating \\ as \\\\, since \\< is not a valid Modelica escape sequence. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/package.mo): time 0.7276/0.7276, allocations: 154.5 MB / 413.7 MB, free: 0.8281 MB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/Utilities/Cryptographics/BaseClasses/sha.mo:2:1-19:8:writable] Warning: External function annotation should occur on the external-clause, not on the function. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/Utilities/File/sha2.mo:2:1-9:9:writable] Warning: External function annotation should occur on the external-clause, not on the function. " [Timeout remaining time 179] Using package IDEAS with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/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 Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 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(IDEAS.Utilities.Math.Examples.Average,fileNamePrefix="IDEAS_dev_IDEAS_Utilities_Math_Examples_Average",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.Math.Examples.Average,fileNamePrefix="IDEAS_dev_IDEAS_Utilities_Math_Examples_Average",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.984e-06/1.984e-06, allocations: 3.938 kB / 0.6181 GB, free: 13.71 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.706e-05/2.905e-05, allocations: 5.375 kB / 0.6181 GB, free: 13.71 MB / 0.5886 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.Average): time 0.002323/0.002352, allocations: 1.541 MB / 0.6196 GB, free: 12.15 MB / 0.5886 GB Notification: Performance of NFInst.instExpressions: time 0.0003065/0.002659, allocations: 119.7 kB / 0.6197 GB, free: 12.04 MB / 0.5886 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.656e-05/0.002715, allocations: 4 kB / 0.6197 GB, free: 12.03 MB / 0.5886 GB Notification: Performance of NFTyping.typeComponents: time 0.0001359/0.002851, allocations: 11.86 kB / 0.6197 GB, free: 12.02 MB / 0.5886 GB Notification: Performance of NFTyping.typeBindings: time 2.123e-05/0.002872, allocations: 3.938 kB / 0.6197 GB, free: 12.02 MB / 0.5886 GB Notification: Performance of NFTyping.typeClassSections: time 0.000293/0.003165, allocations: 27.91 kB / 0.6197 GB, free: 11.99 MB / 0.5886 GB Notification: Performance of NFFlatten.flatten: time 0.0001014/0.003267, allocations: 59.78 kB / 0.6198 GB, free: 11.93 MB / 0.5886 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000132/0.003399, allocations: 19.97 kB / 0.6198 GB, free: 11.91 MB / 0.5886 GB Notification: Performance of NFEvalConstants.evaluate: time 7.962e-05/0.003478, allocations: 35.84 kB / 0.6198 GB, free: 11.88 MB / 0.5886 GB Notification: Performance of NFSimplifyModel.simplify: time 6.497e-05/0.003543, allocations: 23.97 kB / 0.6199 GB, free: 11.85 MB / 0.5886 GB Notification: Performance of NFPackage.collectConstants: time 2.172e-05/0.003565, allocations: 4 kB / 0.6199 GB, free: 11.85 MB / 0.5886 GB Notification: Performance of NFFlatten.collectFunctions: time 6.822e-05/0.003633, allocations: 15.98 kB / 0.6199 GB, free: 11.83 MB / 0.5886 GB Notification: Performance of NFScalarize.scalarize: time 4.181e-05/0.003675, allocations: 19.92 kB / 0.6199 GB, free: 11.81 MB / 0.5886 GB Notification: Performance of NFVerifyModel.verify: time 3.019e-05/0.003705, allocations: 15.98 kB / 0.6199 GB, free: 11.8 MB / 0.5886 GB Notification: Performance of NFConvertDAE.convert: time 0.0001548/0.00386, allocations: 63.78 kB / 0.62 GB, free: 11.73 MB / 0.5886 GB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.003864, allocations: 0 / 0.62 GB, free: 11.73 MB / 0.5886 GB Notification: Performance of FrontEnd: time 1.293e-06/0.003865, allocations: 0 / 0.62 GB, free: 11.73 MB / 0.5886 GB Notification: Performance of Transformations before backend: time 5.039e-06/0.00387, allocations: 0 / 0.62 GB, free: 11.73 MB / 0.5886 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.000482/0.004352, allocations: 308.3 kB / 0.6203 GB, free: 11.4 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 5.495e-05/0.004407, allocations: 9.469 kB / 0.6203 GB, free: 11.39 MB / 0.5886 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.885e-05/0.004446, allocations: 38.75 kB / 0.6203 GB, free: 11.35 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.222e-05/0.004478, allocations: 4.891 kB / 0.6203 GB, free: 11.34 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001428/0.004621, allocations: 129.6 kB / 0.6204 GB, free: 11.19 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.024e-05/0.004631, allocations: 4.375 kB / 0.6204 GB, free: 11.19 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.028e-05/0.004641, allocations: 4.375 kB / 0.6204 GB, free: 11.18 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002126/0.004854, allocations: 86.2 kB / 0.6205 GB, free: 11.09 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.685e-06/0.004862, allocations: 192 / 0.6205 GB, free: 11.09 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.088e-05/0.004873, allocations: 384 / 0.6205 GB, free: 11.09 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.877e-06/0.004881, allocations: 8.125 kB / 0.6205 GB, free: 11.09 MB / 0.5886 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001659/0.005047, allocations: 83.91 kB / 0.6206 GB, free: 11 MB / 0.5886 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004263/0.005474, allocations: 283.8 kB / 0.6209 GB, free: 10.68 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001331/0.005607, allocations: 54.53 kB / 0.6209 GB, free: 10.62 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.913e-05/0.005686, allocations: 52.88 kB / 0.621 GB, free: 10.57 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 4.375e-05/0.00573, allocations: 4 kB / 0.621 GB, free: 10.56 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.27e-05/0.005752, allocations: 30.56 kB / 0.621 GB, free: 10.52 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=3): time 1.443e-06/0.005754, allocations: 0 / 0.621 GB, free: 10.52 MB / 0.5886 GB Notification: Performance of matching and sorting (n=3): time 0.0003268/0.006081, allocations: 137.6 kB / 0.6212 GB, free: 10.38 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.561e-05/0.006116, allocations: 55.41 kB / 0.6212 GB, free: 10.32 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.562e-05/0.006192, allocations: 117.8 kB / 0.6213 GB, free: 10.19 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 1.363e-05/0.006205, allocations: 29.69 kB / 0.6213 GB, free: 10.16 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 4.603e-05/0.006251, allocations: 96.03 kB / 0.6214 GB, free: 10.06 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 2.168e-05/0.006273, allocations: 7.906 kB / 0.6214 GB, free: 10.05 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.09e-05/0.006304, allocations: 17.72 kB / 0.6215 GB, free: 10.03 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 9.34e-05/0.006397, allocations: 318.8 kB / 0.6218 GB, free: 9.707 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.535e-05/0.006483, allocations: 39.89 kB / 0.6218 GB, free: 9.668 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.694e-05/0.00655, allocations: 35.97 kB / 0.6218 GB, free: 9.633 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001391/0.006689, allocations: 72.72 kB / 0.6219 GB, free: 9.559 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.485e-06/0.006691, allocations: 0 / 0.6219 GB, free: 9.559 MB / 0.5886 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001837/0.006875, allocations: 105.9 kB / 0.622 GB, free: 9.449 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 1.924e-05/0.006894, allocations: 4 kB / 0.622 GB, free: 9.445 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.046e-05/0.006905, allocations: 4 kB / 0.622 GB, free: 9.441 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.729e-05/0.006922, allocations: 48 / 0.622 GB, free: 9.441 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001051/0.007027, allocations: 15.97 kB / 0.622 GB, free: 9.426 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.923e-06/0.007034, allocations: 0 / 0.622 GB, free: 9.426 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.941e-05/0.007073, allocations: 19.97 kB / 0.6221 GB, free: 9.406 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.278e-05/0.007096, allocations: 7.938 kB / 0.6221 GB, free: 9.398 MB / 0.5886 GB 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 (3): * Single equations (assignments): 3 * 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.864e-05/0.007185, allocations: 118.8 kB / 0.6222 GB, free: 9.273 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.664e-05/0.007201, allocations: 3.953 kB / 0.6222 GB, free: 9.27 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000241/0.007442, allocations: 117.6 kB / 0.6223 GB, free: 9.141 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.476e-06/0.007446, allocations: 0 / 0.6223 GB, free: 9.141 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.09e-06/0.007451, allocations: 0 / 0.6223 GB, free: 9.141 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.278e-06/0.007455, allocations: 4 kB / 0.6223 GB, free: 9.137 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001302/0.007585, allocations: 152.7 kB / 0.6224 GB, free: 8.945 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.054e-06/0.007588, allocations: 0 / 0.6224 GB, free: 8.945 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.402e-05/0.007632, allocations: 15.98 kB / 0.6225 GB, free: 8.93 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.445e-06/0.007634, allocations: 0 / 0.6225 GB, free: 8.93 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.837e-06/0.007643, allocations: 4 kB / 0.6225 GB, free: 8.926 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.324e-06/0.007645, allocations: 0 / 0.6225 GB, free: 8.926 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.332e-06/0.007646, allocations: 0 / 0.6225 GB, free: 8.926 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002084/0.007855, allocations: 207.3 kB / 0.6227 GB, free: 8.707 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 7.835e-06/0.007863, allocations: 4 kB / 0.6227 GB, free: 8.703 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.2e-05/0.007875, allocations: 4 kB / 0.6227 GB, free: 8.699 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.43e-05/0.007929, allocations: 15.91 kB / 0.6227 GB, free: 8.684 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.704e-05/0.007976, allocations: 4 kB / 0.6227 GB, free: 8.68 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.153e-05/0.007988, allocations: 3.938 kB / 0.6227 GB, free: 8.676 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 5.277e-05/0.00804, allocations: 92.58 kB / 0.6228 GB, free: 8.586 MB / 0.5886 GB Notification: Performance of sort global known variables: time 5e-08/0.00804, allocations: 0 / 0.6228 GB, free: 8.586 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.0001693/0.00821, allocations: 23.89 kB / 0.6228 GB, free: 8.562 MB / 0.5886 GB 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 (3): * Single equations (assignments): 3 * 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.0005159/0.008726, allocations: 0.7319 MB / 0.6235 GB, free: 7.801 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.0002206/0.008946, allocations: 75.91 kB / 0.6236 GB, free: 7.727 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.008948, allocations: 0 / 0.6236 GB, free: 7.727 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 7.307e-05/0.009022, allocations: 39.97 kB / 0.6236 GB, free: 7.688 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003055/0.009327, allocations: 11.98 kB / 0.6236 GB, free: 7.676 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001274/0.0106, allocations: 1.428 MB / 0.625 GB, free: 6.168 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.756e-05/0.01066, allocations: 71.33 kB / 0.6251 GB, free: 6.078 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 4.182e-05/0.0107, allocations: 4 kB / 0.6251 GB, free: 6.074 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.583e-05/0.01075, allocations: 24.86 kB / 0.6251 GB, free: 6.051 MB / 0.5886 GB Notification: Performance of SimCode: time 1.132e-06/0.01075, allocations: 0 / 0.6251 GB, free: 6.051 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01883/0.02958, allocations: 2.518 MB / 0.6276 GB, free: 3.68 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.944/6.974, allocations: 0.7031 kB / 0.6276 GB, free: 3.68 MB / 0.5886 GB " [Timeout remaining time 653] (rm -f IDEAS_dev_IDEAS.Utilities.Math.Examples.Average.pipe ; mkfifo IDEAS_dev_IDEAS.Utilities.Math.Examples.Average.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Utilities.Math.Examples.Average.pipe >> ../files/IDEAS_dev_IDEAS.Utilities.Math.Examples.Average.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_dev_IDEAS_Utilities_Math_Examples_Average_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 IDEAS_dev_IDEAS_Utilities_Math_Examples_Average.fmu > IDEAS_dev_IDEAS.Utilities.Math.Examples.Average.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 9.74132306408137] Failed to read output from testmodel.py, exit status != 0: 7.0533832386136055 7.06151003 7.055895865 Calling exit ...