Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_IDEAS.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.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.0008156/0.0008156, allocations: 68.47 kB / 19.16 MB, free: 0.7266 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.0008663/0.0008663, allocations: 169.9 kB / 22.46 MB, free: 2.082 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.8853/0.8853, allocations: 177.1 MB / 202.8 MB, free: 5.738 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.6993/0.6993, allocations: 154.6 MB / 413.7 MB, free: 0.8047 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.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold,fileNamePrefix="IDEAS_IDEAS_Controls_OBC_CDL_Discrete_Validation_FirstOrderHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold,fileNamePrefix="IDEAS_IDEAS_Controls_OBC_CDL_Discrete_Validation_FirstOrderHold",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 3.607e-06/3.607e-06, allocations: 0 / 0.6181 GB, free: 13.69 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.137e-05/2.498e-05, allocations: 4.672 kB / 0.6181 GB, free: 13.69 MB / 0.5886 GB Notification: Performance of NFInst.instantiate(IDEAS.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold): time 0.001514/0.001539, allocations: 0.6648 MB / 0.6187 GB, free: 13.02 MB / 0.5886 GB Notification: Performance of NFInst.instExpressions: time 0.001175/0.002714, allocations: 1.108 MB / 0.6198 GB, free: 11.9 MB / 0.5886 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.5e-05/0.002769, allocations: 8 kB / 0.6198 GB, free: 11.89 MB / 0.5886 GB Notification: Performance of NFTyping.typeComponents: time 3.165e-05/0.0028, allocations: 3.938 kB / 0.6198 GB, free: 11.89 MB / 0.5886 GB Notification: Performance of NFTyping.typeBindings: time 6.871e-05/0.002869, allocations: 7.875 kB / 0.6198 GB, free: 11.88 MB / 0.5886 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003132/0.003182, allocations: 55.75 kB / 0.6199 GB, free: 11.83 MB / 0.5886 GB Notification: Performance of NFFlatten.flatten: time 0.0001013/0.003283, allocations: 67.83 kB / 0.6199 GB, free: 11.76 MB / 0.5886 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001159/0.003399, allocations: 7.984 kB / 0.62 GB, free: 11.75 MB / 0.5886 GB Notification: Performance of NFEvalConstants.evaluate: time 8.825e-05/0.003488, allocations: 43.89 kB / 0.62 GB, free: 11.71 MB / 0.5886 GB Notification: Performance of NFSimplifyModel.simplify: time 4.88e-05/0.003536, allocations: 23.97 kB / 0.62 GB, free: 11.69 MB / 0.5886 GB Notification: Performance of NFPackage.collectConstants: time 1.754e-05/0.003554, allocations: 4 kB / 0.62 GB, free: 11.68 MB / 0.5886 GB Notification: Performance of NFFlatten.collectFunctions: time 7.242e-05/0.003626, allocations: 27.97 kB / 0.62 GB, free: 11.66 MB / 0.5886 GB Notification: Performance of NFScalarize.scalarize: time 1.951e-05/0.003646, allocations: 11.94 kB / 0.6201 GB, free: 11.64 MB / 0.5886 GB Notification: Performance of NFVerifyModel.verify: time 3.184e-05/0.003678, allocations: 23.97 kB / 0.6201 GB, free: 11.62 MB / 0.5886 GB Notification: Performance of NFConvertDAE.convert: time 0.0001463/0.003824, allocations: 83.73 kB / 0.6202 GB, free: 11.54 MB / 0.5886 GB Notification: Performance of FrontEnd - DAE generated: time 2.614e-06/0.003827, allocations: 0 / 0.6202 GB, free: 11.54 MB / 0.5886 GB Notification: Performance of FrontEnd: time 1.522e-06/0.003828, allocations: 0 / 0.6202 GB, free: 11.54 MB / 0.5886 GB Notification: Performance of Transformations before backend: time 4.85e-06/0.003833, allocations: 4 kB / 0.6202 GB, free: 11.54 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: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0005427/0.004376, allocations: 310.1 kB / 0.6205 GB, free: 11.2 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 5.1e-05/0.004427, allocations: 8.031 kB / 0.6205 GB, free: 11.19 MB / 0.5886 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.032e-05/0.004467, allocations: 42.69 kB / 0.6205 GB, free: 11.14 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.223e-05/0.004549, allocations: 8.891 kB / 0.6205 GB, free: 11.13 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.077e-05/0.00464, allocations: 113.7 kB / 0.6206 GB, free: 11 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.447e-05/0.004664, allocations: 8.359 kB / 0.6206 GB, free: 10.99 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.334e-05/0.004678, allocations: 8.375 kB / 0.6206 GB, free: 10.98 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001818/0.00486, allocations: 78.22 kB / 0.6207 GB, free: 10.9 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.456e-06/0.004868, allocations: 192 / 0.6207 GB, free: 10.9 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.213e-05/0.00488, allocations: 4.359 kB / 0.6207 GB, free: 10.89 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.062e-06/0.004886, allocations: 4.125 kB / 0.6207 GB, free: 10.89 MB / 0.5886 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001204/0.005007, allocations: 59.95 kB / 0.6208 GB, free: 10.83 MB / 0.5886 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004362/0.005443, allocations: 267.8 kB / 0.621 GB, free: 10.53 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001364/0.005579, allocations: 66.55 kB / 0.6211 GB, free: 10.45 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.622e-05/0.005645, allocations: 40.83 kB / 0.6211 GB, free: 10.41 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 2.744e-05/0.005673, allocations: 7.938 kB / 0.6211 GB, free: 10.4 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001837/0.005857, allocations: 99.42 kB / 0.6212 GB, free: 10.29 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=10): time 1.353e-06/0.005858, allocations: 0 / 0.6212 GB, free: 10.29 MB / 0.5886 GB Notification: Performance of matching and sorting (n=10): time 0.0003328/0.006191, allocations: 173.5 kB / 0.6214 GB, free: 10.12 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.443e-05/0.006235, allocations: 55.41 kB / 0.6215 GB, free: 10.05 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.295e-05/0.006308, allocations: 110 kB / 0.6216 GB, free: 9.934 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 1.515e-05/0.006323, allocations: 29.64 kB / 0.6216 GB, free: 9.898 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 4.219e-05/0.006365, allocations: 88.38 kB / 0.6217 GB, free: 9.805 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 2.671e-05/0.006392, allocations: 39.72 kB / 0.6217 GB, free: 9.766 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.178e-05/0.006434, allocations: 37.7 kB / 0.6218 GB, free: 9.723 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 8.014e-05/0.006514, allocations: 314.8 kB / 0.6221 GB, free: 9.406 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.151e-05/0.006586, allocations: 35.97 kB / 0.6221 GB, free: 9.371 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.595e-05/0.006662, allocations: 66.53 kB / 0.6222 GB, free: 9.297 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000135/0.006797, allocations: 97.66 kB / 0.6222 GB, free: 9.195 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.006799, allocations: 0 / 0.6222 GB, free: 9.195 MB / 0.5886 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001811/0.00698, allocations: 149.5 kB / 0.6224 GB, free: 9.043 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 1.517e-05/0.006995, allocations: 6.5 kB / 0.6224 GB, free: 9.039 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.514e-06/0.007003, allocations: 11.92 kB / 0.6224 GB, free: 9.027 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.363e-05/0.007016, allocations: 0 / 0.6224 GB, free: 9.027 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.574e-05/0.007102, allocations: 23.92 kB / 0.6224 GB, free: 9.004 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.2e-06/0.007107, allocations: 0 / 0.6224 GB, free: 9.004 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.367e-05/0.007141, allocations: 8 kB / 0.6224 GB, free: 8.996 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.106e-05/0.007152, allocations: 12.3 kB / 0.6224 GB, free: 8.984 MB / 0.5886 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 12 (firOrdHol.firstTrigger,$PRE.firOrdHol.firstTrigger,firOrdHol.sampleTrigger,$whenCondition1,firOrdHol.c,$PRE.firOrdHol.c,firOrdHol.pre_uSample,$PRE.firOrdHol.pre_uSample,firOrdHol.uSample,$PRE.firOrdHol.uSample,firOrdHol.tSample,$PRE.firOrdHol.tSample) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 16 * 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 7.609e-05/0.007228, allocations: 118.8 kB / 0.6226 GB, free: 8.859 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.141e-05/0.007239, allocations: 11.89 kB / 0.6226 GB, free: 8.848 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002106/0.00745, allocations: 146.3 kB / 0.6227 GB, free: 8.695 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.619e-06/0.007455, allocations: 8 kB / 0.6227 GB, free: 8.688 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.91e-06/0.007459, allocations: 3.984 kB / 0.6227 GB, free: 8.684 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.667e-06/0.007463, allocations: 96 / 0.6227 GB, free: 8.684 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003266/0.00779, allocations: 377.5 kB / 0.6231 GB, free: 8.266 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-06/0.007791, allocations: 0 / 0.6231 GB, free: 8.266 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.421e-05/0.007826, allocations: 11.98 kB / 0.6231 GB, free: 8.254 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.404e-06/0.007828, allocations: 0 / 0.6231 GB, free: 8.254 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.616e-06/0.007837, allocations: 3.984 kB / 0.6231 GB, free: 8.25 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.864e-06/0.007839, allocations: 4 kB / 0.6231 GB, free: 8.246 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.00784, allocations: 3.938 kB / 0.6231 GB, free: 8.242 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001933/0.008033, allocations: 235.4 kB / 0.6233 GB, free: 7.996 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 8.937e-06/0.008042, allocations: 7.953 kB / 0.6233 GB, free: 7.988 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.631e-05/0.008058, allocations: 11.98 kB / 0.6233 GB, free: 7.977 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.053e-05/0.008109, allocations: 4 kB / 0.6234 GB, free: 7.973 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.68e-05/0.008145, allocations: 11.92 kB / 0.6234 GB, free: 7.961 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.047e-05/0.008156, allocations: 7.984 kB / 0.6234 GB, free: 7.953 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 3.333e-05/0.008189, allocations: 83.28 kB / 0.6234 GB, free: 7.871 MB / 0.5886 GB Notification: Performance of sort global known variables: time 6e-08/0.008189, allocations: 0 / 0.6234 GB, free: 7.871 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.0001731/0.008362, allocations: 20 kB / 0.6235 GB, free: 7.852 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: 7 (firOrdHol.sampleTrigger,$whenCondition1,firOrdHol.firstTrigger,firOrdHol.tSample,firOrdHol.uSample,firOrdHol.pre_uSample,firOrdHol.c) * Number of discrete states: 2 (firOrdHol.uSample,firOrdHol.c) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.0004498/0.008812, allocations: 0.7786 MB / 0.6242 GB, free: 7.047 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.0001904/0.009003, allocations: 96.16 kB / 0.6243 GB, free: 6.953 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/0.009004, allocations: 0 / 0.6243 GB, free: 6.953 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 7.248e-05/0.009077, allocations: 51.78 kB / 0.6244 GB, free: 6.902 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002045/0.009281, allocations: 7.984 kB / 0.6244 GB, free: 6.895 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001143/0.01042, allocations: 1.51 MB / 0.6259 GB, free: 5.297 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.881e-05/0.01047, allocations: 67.34 kB / 0.6259 GB, free: 5.211 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 3.391e-05/0.01051, allocations: 8.484 kB / 0.6259 GB, free: 5.203 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.459e-05/0.01055, allocations: 24.5 kB / 0.6259 GB, free: 5.18 MB / 0.5886 GB Notification: Performance of SimCode: time 6.51e-07/0.01055, allocations: 4 kB / 0.626 GB, free: 5.176 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01741/0.02796, allocations: 2.774 MB / 0.6287 GB, free: 2.57 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.587/6.615, allocations: 6.766 kB / 0.6287 GB, free: 2.57 MB / 0.5886 GB " [Timeout remaining time 653] (rm -f IDEAS_IDEAS.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe ; mkfifo IDEAS_IDEAS.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe ; head -c 1048576 < IDEAS_IDEAS.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe >> ../files/IDEAS_IDEAS.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Controls_OBC_CDL_Discrete_Validation_FirstOrderHold_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 IDEAS_IDEAS_Controls_OBC_CDL_Discrete_Validation_FirstOrderHold.fmu > IDEAS_IDEAS.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 9.247764180414379] Failed to read output from testmodel.py, exit status != 0: 6.695128717459738 6.706657617 6.700901206 Calling exit ...