Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_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.001178/0.001178, allocations: 109.9 kB / 18.93 MB, free: 1.27 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.0008805/0.0008805, allocations: 221.7 kB / 22.26 MB, free: 3.695 MB / 13.93 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.9359/0.9359, allocations: 230.6 MB / 256 MB, free: 9.809 MB / 202.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.8055/0.8055, allocations: 203.8 MB / 0.5042 GB, free: 10.76 MB / 410.7 MB " [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.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold,fileNamePrefix="IDEAS_dev_IDEAS_Controls_OBC_CDL_Discrete_Validation_FirstOrderHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold,fileNamePrefix="IDEAS_dev_IDEAS_Controls_OBC_CDL_Discrete_Validation_FirstOrderHold",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: IDEAS requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.000784/0.000784, allocations: 61.38 kB / 0.7182 GB, free: 4.395 MB / 0.5261 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5676/0.5684, allocations: 102 MB / 0.8178 GB, free: 1.266 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(IDEAS.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold): time 0.00157/0.5699, allocations: 0.6879 MB / 0.8185 GB, free: 0.8281 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.001179/0.5711, allocations: 1.121 MB / 0.8196 GB, free: 8 kB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.889e-05/0.5712, allocations: 7.438 kB / 0.8196 GB, free: 4 kB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 2.674e-05/0.5712, allocations: 4.688 kB / 0.8196 GB, free: 0 / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 9.772e-05/0.5713, allocations: 5.172 kB / 0.8196 GB, free: 15.99 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003261/0.5716, allocations: 53.47 kB / 0.8197 GB, free: 15.96 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0001224/0.5717, allocations: 65.56 kB / 0.8197 GB, free: 15.94 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001108/0.5718, allocations: 7.406 kB / 0.8197 GB, free: 15.93 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 8.554e-05/0.5719, allocations: 37.28 kB / 0.8198 GB, free: 15.91 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 7.165e-05/0.572, allocations: 27.23 kB / 0.8198 GB, free: 15.9 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 1.896e-05/0.572, allocations: 6.344 kB / 0.8198 GB, free: 15.9 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 7.794e-05/0.5721, allocations: 32.31 kB / 0.8198 GB, free: 15.89 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 2.154e-05/0.5721, allocations: 18.31 kB / 0.8199 GB, free: 15.88 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 4.342e-05/0.5722, allocations: 31.89 kB / 0.8199 GB, free: 15.86 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0001744/0.5723, allocations: 77.39 kB / 0.82 GB, free: 15.83 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 4.408e-06/0.5723, allocations: 3.5 kB / 0.82 GB, free: 15.83 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.553e-06/0.5723, allocations: 0 / 0.82 GB, free: 15.83 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 7.033e-06/0.5724, allocations: 0.5625 kB / 0.82 GB, free: 15.83 MB / 0.6198 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.0005357/0.5729, allocations: 321.1 kB / 0.8203 GB, free: 15.53 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.206e-05/0.5729, allocations: 9.812 kB / 0.8203 GB, free: 15.53 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.683e-05/0.573, allocations: 35.09 kB / 0.8203 GB, free: 15.49 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.696e-05/0.5731, allocations: 9.531 kB / 0.8203 GB, free: 15.49 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.667e-05/0.5732, allocations: 115 kB / 0.8204 GB, free: 15.36 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.767e-05/0.5732, allocations: 10.06 kB / 0.8204 GB, free: 15.35 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.456e-05/0.5732, allocations: 4.25 kB / 0.8205 GB, free: 15.35 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000186/0.5734, allocations: 81.41 kB / 0.8205 GB, free: 15.3 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.096e-05/0.5734, allocations: 3.938 kB / 0.8205 GB, free: 15.3 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.363e-05/0.5734, allocations: 8.578 kB / 0.8205 GB, free: 15.3 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.471e-06/0.5734, allocations: 0 / 0.8205 GB, free: 15.3 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001218/0.5735, allocations: 47.81 kB / 0.8206 GB, free: 15.29 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000475/0.574, allocations: 287.3 kB / 0.8209 GB, free: 15.02 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000156/0.5742, allocations: 78.48 kB / 0.8209 GB, free: 14.98 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.296e-05/0.5742, allocations: 34.83 kB / 0.821 GB, free: 14.96 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 2.541e-05/0.5743, allocations: 5.562 kB / 0.821 GB, free: 14.96 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001934/0.5745, allocations: 91.38 kB / 0.8211 GB, free: 14.9 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=10): time 1.433e-06/0.5745, allocations: 5.031 kB / 0.8211 GB, free: 14.89 MB / 0.6198 GB Notification: Performance of matching and sorting (n=10): time 0.0003637/0.5748, allocations: 170.1 kB / 0.8212 GB, free: 14.83 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.615e-05/0.5749, allocations: 64.25 kB / 0.8213 GB, free: 14.76 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.971e-05/0.575, allocations: 108.3 kB / 0.8214 GB, free: 14.65 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 1.704e-05/0.575, allocations: 30.22 kB / 0.8214 GB, free: 14.62 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 4.109e-05/0.575, allocations: 91.28 kB / 0.8215 GB, free: 14.52 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 2.572e-05/0.575, allocations: 26.53 kB / 0.8215 GB, free: 14.5 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.473e-05/0.5751, allocations: 31.58 kB / 0.8216 GB, free: 14.48 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 9.438e-05/0.5752, allocations: 324.3 kB / 0.8219 GB, free: 14.16 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.046e-05/0.5753, allocations: 34.88 kB / 0.8219 GB, free: 14.15 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.316e-05/0.5754, allocations: 68 kB / 0.822 GB, free: 14.11 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001557/0.5755, allocations: 103 kB / 0.8221 GB, free: 14.06 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.216e-06/0.5755, allocations: 0 / 0.8221 GB, free: 14.06 MB / 0.6198 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002341/0.5757, allocations: 146 kB / 0.8222 GB, free: 13.99 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 2.362e-05/0.5758, allocations: 5.406 kB / 0.8222 GB, free: 13.99 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.536e-06/0.5758, allocations: 4.062 kB / 0.8222 GB, free: 13.98 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.166e-05/0.5758, allocations: 2.172 kB / 0.8222 GB, free: 13.98 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001188/0.5759, allocations: 19.31 kB / 0.8222 GB, free: 13.98 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.078e-05/0.5759, allocations: 3.844 kB / 0.8222 GB, free: 13.98 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.101e-05/0.576, allocations: 13.91 kB / 0.8223 GB, free: 13.98 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.35e-05/0.576, allocations: 9.125 kB / 0.8223 GB, free: 13.97 MB / 0.6198 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 0.0001058/0.5761, allocations: 124.3 kB / 0.8224 GB, free: 13.85 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.684e-05/0.5761, allocations: 11.81 kB / 0.8224 GB, free: 13.84 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003022/0.5764, allocations: 146.9 kB / 0.8225 GB, free: 13.77 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.721e-06/0.5764, allocations: 3.75 kB / 0.8225 GB, free: 13.77 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.272e-06/0.5764, allocations: 0 / 0.8225 GB, free: 13.77 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.05e-06/0.5764, allocations: 0.6562 kB / 0.8225 GB, free: 13.77 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004715/0.5769, allocations: 378.6 kB / 0.8229 GB, free: 13.46 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.424e-06/0.5769, allocations: 0 / 0.8229 GB, free: 13.46 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.775e-05/0.5769, allocations: 18.55 kB / 0.8229 GB, free: 13.45 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.839e-06/0.5769, allocations: 1.828 kB / 0.8229 GB, free: 13.45 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.14e-05/0.577, allocations: 1.656 kB / 0.8229 GB, free: 13.45 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.196e-06/0.577, allocations: 0 / 0.8229 GB, free: 13.45 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.026e-06/0.577, allocations: 2.266 kB / 0.8229 GB, free: 13.45 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000249/0.5772, allocations: 233.8 kB / 0.8231 GB, free: 13.29 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 1.753e-05/0.5772, allocations: 18.78 kB / 0.8232 GB, free: 13.27 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.72e-05/0.5773, allocations: 1.5 kB / 0.8232 GB, free: 13.27 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.631e-05/0.5773, allocations: 8.734 kB / 0.8232 GB, free: 13.27 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.58e-05/0.5774, allocations: 18.83 kB / 0.8232 GB, free: 13.26 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.061e-05/0.5774, allocations: 6.406 kB / 0.8232 GB, free: 13.26 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 4.756e-05/0.5774, allocations: 83.91 kB / 0.8233 GB, free: 13.18 MB / 0.6198 GB Notification: Performance of sort global known variables: time 5e-08/0.5774, allocations: 1.375 kB / 0.8233 GB, free: 13.18 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.000184/0.5776, allocations: 22.67 kB / 0.8233 GB, free: 13.18 MB / 0.6198 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.0004822/0.5781, allocations: 0.7614 MB / 0.824 GB, free: 12.49 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0002081/0.5783, allocations: 99.14 kB / 0.8241 GB, free: 12.46 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.5783, allocations: 5.156 kB / 0.8241 GB, free: 12.46 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 7.983e-05/0.5784, allocations: 43.33 kB / 0.8242 GB, free: 12.45 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002174/0.5786, allocations: 18.66 kB / 0.8242 GB, free: 12.43 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00132/0.5799, allocations: 1.496 MB / 0.8257 GB, free: 11.13 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000217/0.5801, allocations: 0.6934 MB / 0.8263 GB, free: 10.43 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 4.195e-05/0.5802, allocations: 8.578 kB / 0.8263 GB, free: 10.43 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.984e-05/0.5802, allocations: 22.33 kB / 0.8264 GB, free: 10.41 MB / 0.6198 GB Notification: Performance of SimCode: time 8.82e-07/0.5802, allocations: 1.5 kB / 0.8264 GB, free: 10.41 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01993/0.6002, allocations: 2.217 MB / 0.8285 GB, free: 9.938 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.467/7.067, allocations: 7.031 kB / 0.8285 GB, free: 9.934 MB / 0.6198 GB " [Timeout remaining time 653] (rm -f IDEAS_dev_IDEAS.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe ; mkfifo IDEAS_dev_IDEAS.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe >> ../files/IDEAS_dev_IDEAS.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_dev_IDEAS_Controls_OBC_CDL_Discrete_Validation_FirstOrderHold_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 IDEAS_dev_IDEAS_Controls_OBC_CDL_Discrete_Validation_FirstOrderHold.fmu > IDEAS_dev_IDEAS.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 10.05064378795214] Failed to read output from testmodel.py, exit status != 0: 7.146435098024085 7.160656472 6.585500515 Calling exit ...