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.001209/0.001209, allocations: 109.5 kB / 18.95 MB, free: 1.184 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.001168/0.001168, allocations: 216.5 kB / 22.25 MB, free: 3.727 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.926/0.926, allocations: 230.6 MB / 256 MB, free: 9.602 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.7775/0.7775, allocations: 203.8 MB / 0.5042 GB, free: 10.38 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.0009005/0.0009005, allocations: 63.56 kB / 0.7182 GB, free: 4 MB / 0.5261 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.552/0.5529, allocations: 102 MB / 0.8178 GB, free: 1.023 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(IDEAS.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold): time 0.001592/0.5545, allocations: 0.6736 MB / 0.8184 GB, free: 0.6055 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0009933/0.5555, allocations: 1.099 MB / 0.8195 GB, free: 15.81 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.444e-05/0.5556, allocations: 0 / 0.8195 GB, free: 15.81 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 2.948e-05/0.5556, allocations: 4.641 kB / 0.8195 GB, free: 15.8 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 6.738e-05/0.5557, allocations: 14.03 kB / 0.8195 GB, free: 15.79 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003013/0.556, allocations: 54.89 kB / 0.8196 GB, free: 15.76 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0001172/0.5561, allocations: 68.62 kB / 0.8196 GB, free: 15.73 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000102/0.5562, allocations: 13.19 kB / 0.8197 GB, free: 15.72 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 7.421e-05/0.5563, allocations: 29.72 kB / 0.8197 GB, free: 15.71 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 5.849e-05/0.5563, allocations: 31.48 kB / 0.8197 GB, free: 15.7 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 1.389e-05/0.5563, allocations: 8 kB / 0.8197 GB, free: 15.7 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 6.33e-05/0.5564, allocations: 15.16 kB / 0.8197 GB, free: 15.7 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 2.904e-05/0.5564, allocations: 19.31 kB / 0.8198 GB, free: 15.68 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 3.569e-05/0.5565, allocations: 24.44 kB / 0.8198 GB, free: 15.67 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0001482/0.5566, allocations: 87.02 kB / 0.8199 GB, free: 15.64 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 3.897e-06/0.5566, allocations: 0 / 0.8199 GB, free: 15.64 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.673e-06/0.5566, allocations: 0 / 0.8199 GB, free: 15.64 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 5.771e-06/0.5566, allocations: 0 / 0.8199 GB, free: 15.64 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.0004809/0.5571, allocations: 313.9 kB / 0.8202 GB, free: 15.35 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 3.97e-05/0.5571, allocations: 10.5 kB / 0.8202 GB, free: 15.35 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.293e-05/0.5572, allocations: 36.84 kB / 0.8202 GB, free: 15.3 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.185e-05/0.5572, allocations: 10 kB / 0.8202 GB, free: 15.3 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.226e-05/0.5573, allocations: 117.9 kB / 0.8203 GB, free: 15.16 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.067e-05/0.5573, allocations: 4.609 kB / 0.8203 GB, free: 15.16 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.409e-05/0.5574, allocations: 7.141 kB / 0.8203 GB, free: 15.16 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001602/0.5575, allocations: 80.84 kB / 0.8204 GB, free: 15.12 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.606e-06/0.5575, allocations: 4.453 kB / 0.8204 GB, free: 15.11 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.047e-06/0.5575, allocations: 5.797 kB / 0.8204 GB, free: 15.11 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.59e-06/0.5575, allocations: 0.9688 kB / 0.8204 GB, free: 15.11 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001195/0.5577, allocations: 57.66 kB / 0.8205 GB, free: 15.09 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004072/0.5581, allocations: 269.5 kB / 0.8207 GB, free: 14.84 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000136/0.5582, allocations: 74.83 kB / 0.8208 GB, free: 14.8 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.142e-05/0.5583, allocations: 34.27 kB / 0.8208 GB, free: 14.78 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 2.633e-05/0.5583, allocations: 5.641 kB / 0.8208 GB, free: 14.78 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001722/0.5585, allocations: 92.75 kB / 0.8209 GB, free: 14.71 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=10): time 1.212e-06/0.5585, allocations: 0 / 0.8209 GB, free: 14.71 MB / 0.6198 GB Notification: Performance of matching and sorting (n=10): time 0.0003428/0.5588, allocations: 176.1 kB / 0.8211 GB, free: 14.64 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.885e-05/0.5589, allocations: 56.55 kB / 0.8212 GB, free: 14.58 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.36e-05/0.5589, allocations: 109.9 kB / 0.8213 GB, free: 14.47 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 1.536e-05/0.559, allocations: 27.02 kB / 0.8213 GB, free: 14.44 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 4.285e-05/0.559, allocations: 92.38 kB / 0.8214 GB, free: 14.35 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 2.713e-05/0.559, allocations: 25.31 kB / 0.8214 GB, free: 14.33 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.212e-05/0.5591, allocations: 37.8 kB / 0.8214 GB, free: 14.3 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 9.031e-05/0.5592, allocations: 317.1 kB / 0.8217 GB, free: 13.98 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.447e-05/0.5592, allocations: 46.5 kB / 0.8218 GB, free: 13.97 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.294e-05/0.5593, allocations: 62.12 kB / 0.8218 GB, free: 13.93 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001418/0.5595, allocations: 99.3 kB / 0.8219 GB, free: 13.88 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.457e-06/0.5595, allocations: 4.109 kB / 0.8219 GB, free: 13.88 MB / 0.6198 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002084/0.5597, allocations: 152.9 kB / 0.8221 GB, free: 13.8 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.364e-05/0.5597, allocations: 5.156 kB / 0.8221 GB, free: 13.8 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.941e-06/0.5597, allocations: 1.156 kB / 0.8221 GB, free: 13.8 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.549e-05/0.5597, allocations: 1.703 kB / 0.8221 GB, free: 13.8 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.452e-05/0.5598, allocations: 23.7 kB / 0.8221 GB, free: 13.8 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.572e-06/0.5598, allocations: 2.703 kB / 0.8221 GB, free: 13.8 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.543e-05/0.5598, allocations: 14.94 kB / 0.8221 GB, free: 13.79 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.528e-06/0.5598, allocations: 4.078 kB / 0.8221 GB, free: 13.79 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 7.153e-05/0.5599, allocations: 126.3 kB / 0.8223 GB, free: 13.67 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.165e-06/0.5599, allocations: 5.766 kB / 0.8223 GB, free: 13.66 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002127/0.5601, allocations: 145.7 kB / 0.8224 GB, free: 13.59 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.414e-06/0.5601, allocations: 0.7031 kB / 0.8224 GB, free: 13.59 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.258e-06/0.5601, allocations: 96 / 0.8224 GB, free: 13.59 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.787e-06/0.5601, allocations: 5.969 kB / 0.8224 GB, free: 13.59 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003608/0.5605, allocations: 374.2 kB / 0.8228 GB, free: 13.28 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.913e-06/0.5605, allocations: 5.688 kB / 0.8228 GB, free: 13.28 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.754e-05/0.5605, allocations: 13.72 kB / 0.8228 GB, free: 13.27 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.997e-06/0.5605, allocations: 10.33 kB / 0.8228 GB, free: 13.27 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.598e-06/0.5606, allocations: 5.5 kB / 0.8228 GB, free: 13.26 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.394e-06/0.5606, allocations: 0.9844 kB / 0.8228 GB, free: 13.26 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.5606, allocations: 1.281 kB / 0.8228 GB, free: 13.26 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002077/0.5608, allocations: 241.3 kB / 0.823 GB, free: 13.09 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 8.707e-06/0.5608, allocations: 7.141 kB / 0.823 GB, free: 13.09 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.342e-05/0.5608, allocations: 2.172 kB / 0.823 GB, free: 13.09 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.451e-05/0.5608, allocations: 13.38 kB / 0.8231 GB, free: 13.09 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.18e-05/0.5609, allocations: 13.72 kB / 0.8231 GB, free: 13.08 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.346e-06/0.5609, allocations: 3.75 kB / 0.8231 GB, free: 13.08 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 3.328e-05/0.5609, allocations: 82.75 kB / 0.8231 GB, free: 13 MB / 0.6198 GB Notification: Performance of sort global known variables: time 6.1e-08/0.5609, allocations: 0 / 0.8231 GB, free: 13 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0001709/0.5611, allocations: 19.75 kB / 0.8232 GB, free: 13 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.0004883/0.5616, allocations: 0.7723 MB / 0.8239 GB, free: 12.31 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0002141/0.5618, allocations: 99.89 kB / 0.824 GB, free: 12.28 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.5618, allocations: 0 / 0.824 GB, free: 12.28 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 8.1e-05/0.5619, allocations: 45.11 kB / 0.8241 GB, free: 12.27 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002111/0.5621, allocations: 15.3 kB / 0.8241 GB, free: 12.26 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001246/0.5633, allocations: 1.497 MB / 0.8255 GB, free: 10.96 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.557e-05/0.5634, allocations: 82.86 kB / 0.8256 GB, free: 10.88 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 3.605e-05/0.5634, allocations: 15.72 kB / 0.8256 GB, free: 10.87 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.445e-05/0.5635, allocations: 20.89 kB / 0.8256 GB, free: 10.85 MB / 0.6198 GB Notification: Performance of SimCode: time 5.21e-07/0.5635, allocations: 0 / 0.8256 GB, free: 10.85 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01559/0.5791, allocations: 2.649 MB / 0.8282 GB, free: 9.934 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.282/6.861, allocations: 13.44 kB / 0.8282 GB, free: 9.926 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: 9.770301776006818] Failed to read output from testmodel.py, exit status != 0: 6.9403166440315545 6.950603328 6.391835179 Calling exit ...