Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_IDEAS.Utilities.Math.Examples.MovingAverage.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.0008409/0.0008409, 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.0008758/0.0008758, allocations: 165.9 kB / 22.45 MB, free: 2.109 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.876/0.876, allocations: 177.1 MB / 202.8 MB, free: 5.73 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/package.mo", uses=false) [Timeout 180] "[/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/Examples/PPD12/Structure.mo:531:21-531:686:writable] Warning: Lexer treating \\ as \\\\, since \\e is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/Examples/PPD12/Structure.mo:531:21-531:694:writable] Warning: Lexer treating \\ as \\\\, since \\< is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/Media/Refrigerants/R410A/package.order:0:0-0:0:readonly] Warning: Found duplicate names in package.order file: A, B, C. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/Media/Refrigerants/R410A/package.mo:2:1-70:10:writable] Warning: C was referenced in the package.order file, but was not found in package.mo, C/package.mo or C.mo. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/package.mo): time 0.6998/0.6998, allocations: 154.6 MB / 413.8 MB, free: 0.7969 MB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/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 4.0.0/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 4.0.0/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.MovingAverage,fileNamePrefix="IDEAS_IDEAS_Utilities_Math_Examples_MovingAverage",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.Math.Examples.MovingAverage,fileNamePrefix="IDEAS_IDEAS_Utilities_Math_Examples_MovingAverage",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.954e-06/1.954e-06, allocations: 0 / 0.6181 GB, free: 13.64 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.283e-05/2.479e-05, allocations: 5.375 kB / 0.6181 GB, free: 13.64 MB / 0.5886 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.MovingAverage): time 0.002034/0.002059, allocations: 1.584 MB / 0.6197 GB, free: 12.04 MB / 0.5886 GB Notification: Performance of NFInst.instExpressions: time 0.0007797/0.002838, allocations: 0.5415 MB / 0.6202 GB, free: 11.5 MB / 0.5886 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.756e-05/0.002906, allocations: 0 / 0.6202 GB, free: 11.5 MB / 0.5886 GB Notification: Performance of NFTyping.typeComponents: time 2.866e-05/0.002935, allocations: 7.922 kB / 0.6202 GB, free: 11.49 MB / 0.5886 GB Notification: Performance of NFTyping.typeBindings: time 8.876e-05/0.003023, allocations: 15.81 kB / 0.6202 GB, free: 11.47 MB / 0.5886 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002876/0.003311, allocations: 59.73 kB / 0.6203 GB, free: 11.41 MB / 0.5886 GB Notification: Performance of NFFlatten.flatten: time 0.0001769/0.003488, allocations: 99.75 kB / 0.6204 GB, free: 11.32 MB / 0.5886 GB Notification: Performance of NFFlatten.resolveConnections: time 9.879e-05/0.003587, allocations: 4.188 kB / 0.6204 GB, free: 11.31 MB / 0.5886 GB Notification: Performance of NFEvalConstants.evaluate: time 9.341e-05/0.00368, allocations: 59.88 kB / 0.6204 GB, free: 11.25 MB / 0.5886 GB Notification: Performance of NFSimplifyModel.simplify: time 7.573e-05/0.003756, allocations: 35.89 kB / 0.6205 GB, free: 11.22 MB / 0.5886 GB Notification: Performance of NFPackage.collectConstants: time 2.38e-05/0.00378, allocations: 12 kB / 0.6205 GB, free: 11.21 MB / 0.5886 GB Notification: Performance of NFFlatten.collectFunctions: time 1.319e-05/0.003793, allocations: 8 kB / 0.6205 GB, free: 11.2 MB / 0.5886 GB Notification: Performance of NFScalarize.scalarize: time 2.809e-05/0.003821, allocations: 23.91 kB / 0.6205 GB, free: 11.18 MB / 0.5886 GB Notification: Performance of NFVerifyModel.verify: time 4.465e-05/0.003866, allocations: 27.97 kB / 0.6205 GB, free: 11.15 MB / 0.5886 GB Notification: Performance of NFConvertDAE.convert: time 0.0001295/0.003995, allocations: 95.73 kB / 0.6206 GB, free: 11.05 MB / 0.5886 GB Notification: Performance of FrontEnd - DAE generated: time 2.375e-06/0.003997, allocations: 0 / 0.6206 GB, free: 11.05 MB / 0.5886 GB Notification: Performance of FrontEnd: time 1.342e-06/0.003999, allocations: 0 / 0.6206 GB, free: 11.05 MB / 0.5886 GB Notification: Performance of Transformations before backend: time 4.558e-06/0.004003, allocations: 0 / 0.6206 GB, free: 11.05 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0006186/0.004622, allocations: 403.2 kB / 0.621 GB, free: 10.61 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 4.451e-05/0.004666, allocations: 12.03 kB / 0.621 GB, free: 10.6 MB / 0.5886 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.8e-05/0.004694, allocations: 38.69 kB / 0.621 GB, free: 10.55 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.673e-05/0.004731, allocations: 8.891 kB / 0.6211 GB, free: 10.55 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001908/0.004922, allocations: 140.7 kB / 0.6212 GB, free: 10.39 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.803e-05/0.005, allocations: 89.59 kB / 0.6213 GB, free: 10.28 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.081e-05/0.005021, allocations: 8.375 kB / 0.6213 GB, free: 10.27 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001771/0.005198, allocations: 98.19 kB / 0.6214 GB, free: 10.17 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.31e-05/0.005211, allocations: 15.83 kB / 0.6214 GB, free: 10.16 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.048e-05/0.005221, allocations: 0 / 0.6214 GB, free: 10.16 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.608e-06/0.005226, allocations: 0 / 0.6214 GB, free: 10.16 MB / 0.5886 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001556/0.005382, allocations: 75.86 kB / 0.6215 GB, free: 10.08 MB / 0.5886 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005776/0.005959, allocations: 283.9 kB / 0.6217 GB, free: 9.762 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003037/0.006263, allocations: 94.61 kB / 0.6218 GB, free: 9.66 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.091e-05/0.006344, allocations: 44.81 kB / 0.6219 GB, free: 9.613 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 2.052e-05/0.006364, allocations: 4 kB / 0.6219 GB, free: 9.609 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000224/0.006588, allocations: 119.3 kB / 0.622 GB, free: 9.48 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=9): time 1.834e-06/0.00659, allocations: 0 / 0.622 GB, free: 9.48 MB / 0.5886 GB Notification: Performance of matching and sorting (n=9): time 0.0003837/0.006974, allocations: 177.5 kB / 0.6222 GB, free: 9.301 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.785e-05/0.007022, allocations: 55.41 kB / 0.6222 GB, free: 9.234 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.444e-05/0.007096, allocations: 124.9 kB / 0.6223 GB, free: 9.105 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 1.93e-05/0.007115, allocations: 33.69 kB / 0.6224 GB, free: 9.066 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 4.79e-05/0.007163, allocations: 96.02 kB / 0.6224 GB, free: 8.969 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 2.499e-05/0.007188, allocations: 31.78 kB / 0.6225 GB, free: 8.938 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.73e-05/0.007236, allocations: 33.72 kB / 0.6225 GB, free: 8.898 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 7.306e-05/0.007309, allocations: 322.8 kB / 0.6228 GB, free: 8.574 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001323/0.007441, allocations: 107.4 kB / 0.6229 GB, free: 8.457 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001185/0.00756, allocations: 125 kB / 0.623 GB, free: 8.316 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001861/0.007746, allocations: 165 kB / 0.6232 GB, free: 8.137 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.007748, allocations: 0 / 0.6232 GB, free: 8.137 MB / 0.5886 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002855/0.008034, allocations: 284.3 kB / 0.6235 GB, free: 7.828 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 4.168e-05/0.008075, allocations: 67.39 kB / 0.6235 GB, free: 7.75 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.612e-06/0.008082, allocations: 0 / 0.6235 GB, free: 7.75 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.435e-05/0.008096, allocations: 0 / 0.6235 GB, free: 7.75 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.109e-05/0.008167, allocations: 24.02 kB / 0.6236 GB, free: 7.727 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.125e-06/0.008176, allocations: 4 kB / 0.6236 GB, free: 7.723 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.074e-05/0.008246, allocations: 15.94 kB / 0.6236 GB, free: 7.707 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.139e-05/0.008258, allocations: 16.3 kB / 0.6236 GB, free: 7.691 MB / 0.5886 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition2,step.count,$PRE.step.count,step.T_start,$PRE.step.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (14): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 2 * 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 7.495e-05/0.008333, allocations: 118.8 kB / 0.6237 GB, free: 7.566 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.367e-05/0.008346, allocations: 11.95 kB / 0.6237 GB, free: 7.555 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.062e-05/0.008377, allocations: 16.38 kB / 0.6237 GB, free: 7.535 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.875e-06/0.00838, allocations: 3.938 kB / 0.6237 GB, free: 7.531 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.609e-06/0.008384, allocations: 0 / 0.6237 GB, free: 7.531 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.52e-06/0.00839, allocations: 11.98 kB / 0.6237 GB, free: 7.52 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001245/0.008514, allocations: 148.7 kB / 0.6239 GB, free: 7.332 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-06/0.008516, allocations: 0 / 0.6239 GB, free: 7.332 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.485e-05/0.00859, allocations: 19.98 kB / 0.6239 GB, free: 7.312 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.393e-06/0.008592, allocations: 0 / 0.6239 GB, free: 7.312 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.175e-05/0.008604, allocations: 8 kB / 0.6239 GB, free: 7.305 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.52e-07/0.008604, allocations: 0 / 0.6239 GB, free: 7.305 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.555e-06/0.008607, allocations: 3.984 kB / 0.6239 GB, free: 7.301 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003483/0.008955, allocations: 224.8 kB / 0.6241 GB, free: 7.062 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 1.761e-05/0.008973, allocations: 7.938 kB / 0.6241 GB, free: 7.055 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.665e-05/0.00899, allocations: 7.938 kB / 0.6241 GB, free: 7.047 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.177e-05/0.009041, allocations: 16.02 kB / 0.6242 GB, free: 7.031 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.596e-05/0.009097, allocations: 15.97 kB / 0.6242 GB, free: 7.016 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.456e-06/0.009106, allocations: 4 kB / 0.6242 GB, free: 7.012 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 4.19e-05/0.009148, allocations: 102.5 kB / 0.6243 GB, free: 6.914 MB / 0.5886 GB Notification: Performance of sort global known variables: time 5.1e-08/0.009148, allocations: 4 kB / 0.6243 GB, free: 6.91 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.000146/0.009294, allocations: 23.95 kB / 0.6243 GB, free: 6.887 MB / 0.5886 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (movingAverage.iDelay,movingAverage.iStop,firstOrder.y) * Number of discrete variables: 4 ($whenCondition2,$whenCondition1,step.T_start,step.count) * Number of discrete states: 1 (step.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0005893/0.009883, allocations: 0.7489 MB / 0.625 GB, free: 6.109 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.000295/0.01018, allocations: 286.1 kB / 0.6253 GB, free: 5.793 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.01018, allocations: 0 / 0.6253 GB, free: 5.793 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 9.626e-05/0.01028, allocations: 56.03 kB / 0.6254 GB, free: 5.738 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002046/0.01048, allocations: 20.08 kB / 0.6254 GB, free: 5.723 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001915/0.0124, allocations: 1.914 MB / 0.6273 GB, free: 3.66 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.369e-05/0.01247, allocations: 83.33 kB / 0.6273 GB, free: 3.559 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 6.23e-05/0.01253, allocations: 12.47 kB / 0.6273 GB, free: 3.547 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.784e-05/0.0126, allocations: 28.48 kB / 0.6274 GB, free: 3.52 MB / 0.5886 GB Notification: Performance of SimCode: time 1.113e-06/0.0126, allocations: 0 / 0.6274 GB, free: 3.52 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01812/0.03072, allocations: 3.603 MB / 0.6309 GB, free: 96 kB / 0.5886 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.916/6.947, allocations: 0 / 0.6309 GB, free: 96 kB / 0.5886 GB " [Timeout remaining time 653] (rm -f IDEAS_IDEAS.Utilities.Math.Examples.MovingAverage.pipe ; mkfifo IDEAS_IDEAS.Utilities.Math.Examples.MovingAverage.pipe ; head -c 1048576 < IDEAS_IDEAS.Utilities.Math.Examples.MovingAverage.pipe >> ../files/IDEAS_IDEAS.Utilities.Math.Examples.MovingAverage.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Utilities_Math_Examples_MovingAverage_fmu --startTime=0 --stopTime=30 --stepSize=0.012 --timeout=50 --tolerance=1e-06 IDEAS_IDEAS_Utilities_Math_Examples_MovingAverage.fmu > IDEAS_IDEAS.Utilities.Math.Examples.MovingAverage.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 9.525322164408863] Failed to read output from testmodel.py, exit status != 0: 7.02911483310163 7.039301548 7.033501735 Calling exit ...