Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_IDEAS.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.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.000736/0.000736, 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.0007909/0.0007909, allocations: 213.7 kB / 22.25 MB, free: 3.711 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.9373/0.9373, allocations: 230.6 MB / 256 MB, free: 9.805 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.802/0.802, allocations: 203.8 MB / 0.5042 GB, free: 10.71 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.ZeroOrderHold,fileNamePrefix="IDEAS_dev_IDEAS_Controls_OBC_CDL_Discrete_Validation_ZeroOrderHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold,fileNamePrefix="IDEAS_dev_IDEAS_Controls_OBC_CDL_Discrete_Validation_ZeroOrderHold",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.001004/0.001004, allocations: 70.98 kB / 0.7182 GB, free: 4.328 MB / 0.5261 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5223/0.5233, allocations: 102 MB / 0.8178 GB, free: 1.246 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(IDEAS.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold): time 0.001459/0.5248, allocations: 0.6677 MB / 0.8185 GB, free: 0.8242 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.001033/0.5258, allocations: 1.112 MB / 0.8196 GB, free: 12 kB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.568e-05/0.5258, allocations: 6.438 kB / 0.8196 GB, free: 8 kB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 2.77e-05/0.5259, allocations: 0.6562 kB / 0.8196 GB, free: 8 kB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 8.855e-05/0.526, allocations: 12.62 kB / 0.8196 GB, free: 15.99 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003592/0.5263, allocations: 45.92 kB / 0.8196 GB, free: 15.97 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0001139/0.5264, allocations: 61.34 kB / 0.8197 GB, free: 15.94 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000111/0.5265, allocations: 5.328 kB / 0.8197 GB, free: 15.94 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 7.874e-05/0.5266, allocations: 20.17 kB / 0.8197 GB, free: 15.93 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 6.291e-05/0.5267, allocations: 25.22 kB / 0.8198 GB, free: 15.92 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 1.475e-05/0.5267, allocations: 3.531 kB / 0.8198 GB, free: 15.92 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 8.168e-05/0.5268, allocations: 31.83 kB / 0.8198 GB, free: 15.9 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 2.353e-05/0.5268, allocations: 9.062 kB / 0.8198 GB, free: 15.9 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 4.001e-05/0.5268, allocations: 23.23 kB / 0.8198 GB, free: 15.88 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0001754/0.527, allocations: 63.06 kB / 0.8199 GB, free: 15.86 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 5.179e-06/0.527, allocations: 0 / 0.8199 GB, free: 15.86 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.443e-06/0.527, allocations: 0 / 0.8199 GB, free: 15.86 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 6.903e-06/0.527, allocations: 4 kB / 0.8199 GB, free: 15.86 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0005359/0.5276, allocations: 300.1 kB / 0.8202 GB, free: 15.58 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.471e-05/0.5276, allocations: 10.69 kB / 0.8202 GB, free: 15.57 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.257e-05/0.5276, allocations: 33.17 kB / 0.8202 GB, free: 15.54 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.905e-05/0.5277, allocations: 4.938 kB / 0.8202 GB, free: 15.54 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.922e-05/0.5278, allocations: 115.5 kB / 0.8203 GB, free: 15.4 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.425e-05/0.5278, allocations: 6.266 kB / 0.8203 GB, free: 15.4 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.383e-05/0.5278, allocations: 7.25 kB / 0.8203 GB, free: 15.39 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001653/0.528, allocations: 72.88 kB / 0.8204 GB, free: 15.35 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.126e-05/0.528, allocations: 8.484 kB / 0.8204 GB, free: 15.34 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.438e-06/0.528, allocations: 0 / 0.8204 GB, free: 15.34 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.512e-06/0.528, allocations: 3.438 kB / 0.8204 GB, free: 15.34 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001146/0.5281, allocations: 44.75 kB / 0.8205 GB, free: 15.33 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003973/0.5285, allocations: 253.3 kB / 0.8207 GB, free: 15.07 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000115/0.5287, allocations: 57.45 kB / 0.8208 GB, free: 15.04 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.897e-05/0.5287, allocations: 29.31 kB / 0.8208 GB, free: 15.03 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 2.191e-05/0.5287, allocations: 0.6094 kB / 0.8208 GB, free: 15.03 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001767/0.5289, allocations: 76.84 kB / 0.8209 GB, free: 14.97 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=7): time 9.42e-07/0.5289, allocations: 0 / 0.8209 GB, free: 14.97 MB / 0.6198 GB Notification: Performance of matching and sorting (n=7): time 0.0002866/0.5292, allocations: 129.7 kB / 0.821 GB, free: 14.91 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.224e-05/0.5292, allocations: 57.98 kB / 0.821 GB, free: 14.84 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.959e-05/0.5293, allocations: 102.7 kB / 0.8211 GB, free: 14.74 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 1.43e-05/0.5293, allocations: 29.64 kB / 0.8212 GB, free: 14.71 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 3.965e-05/0.5294, allocations: 89.12 kB / 0.8213 GB, free: 14.62 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 1.934e-05/0.5294, allocations: 16.55 kB / 0.8213 GB, free: 14.61 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.79e-05/0.5294, allocations: 25.61 kB / 0.8213 GB, free: 14.59 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 8.285e-05/0.5295, allocations: 317.8 kB / 0.8216 GB, free: 14.27 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.315e-05/0.5296, allocations: 29.62 kB / 0.8216 GB, free: 14.26 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.613e-05/0.5297, allocations: 60.56 kB / 0.8217 GB, free: 14.21 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001337/0.5298, allocations: 87.67 kB / 0.8218 GB, free: 14.16 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/0.5298, allocations: 0.5156 kB / 0.8218 GB, free: 14.16 MB / 0.6198 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001798/0.53, allocations: 120 kB / 0.8219 GB, free: 14.1 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.262e-05/0.53, allocations: 5.125 kB / 0.8219 GB, free: 14.1 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.254e-05/0.53, allocations: 0 / 0.8219 GB, free: 14.1 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.634e-05/0.53, allocations: 3.281 kB / 0.8219 GB, free: 14.1 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.552e-05/0.5301, allocations: 19.77 kB / 0.8219 GB, free: 14.09 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.362e-06/0.5301, allocations: 3.25 kB / 0.8219 GB, free: 14.09 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.285e-05/0.5301, allocations: 26.12 kB / 0.8219 GB, free: 14.07 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.888e-06/0.5302, allocations: 3.562 kB / 0.8219 GB, free: 14.07 MB / 0.6198 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 6 (zerOrdHol.firstTrigger,$PRE.zerOrdHol.firstTrigger,zerOrdHol.sampleTrigger,$whenCondition1,$PRE.zerOrdHol.ySample,zerOrdHol.ySample) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 10 * 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.742e-05/0.5302, allocations: 119.6 kB / 0.8221 GB, free: 13.95 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.516e-06/0.5302, allocations: 6.281 kB / 0.8221 GB, free: 13.95 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002076/0.5304, allocations: 110.5 kB / 0.8222 GB, free: 13.89 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.126e-06/0.5304, allocations: 0 / 0.8222 GB, free: 13.89 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.558e-06/0.5305, allocations: 0.7031 kB / 0.8222 GB, free: 13.89 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.116e-06/0.5305, allocations: 0 / 0.8222 GB, free: 13.89 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003486/0.5308, allocations: 341.5 kB / 0.8225 GB, free: 13.59 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.655e-06/0.5308, allocations: 0.6094 kB / 0.8225 GB, free: 13.59 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.942e-05/0.5308, allocations: 12.86 kB / 0.8225 GB, free: 13.59 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.334e-06/0.5309, allocations: 0 / 0.8225 GB, free: 13.59 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.668e-06/0.5309, allocations: 1.875 kB / 0.8225 GB, free: 13.59 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.797e-06/0.5309, allocations: 4.469 kB / 0.8225 GB, free: 13.58 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.925e-06/0.5309, allocations: 1.906 kB / 0.8225 GB, free: 13.58 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002036/0.5311, allocations: 206.8 kB / 0.8227 GB, free: 13.42 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 1.233e-05/0.5311, allocations: 6.109 kB / 0.8227 GB, free: 13.42 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.992e-05/0.5311, allocations: 5.406 kB / 0.8227 GB, free: 13.41 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.464e-05/0.5312, allocations: 9.5 kB / 0.8227 GB, free: 13.41 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.715e-05/0.5312, allocations: 8.562 kB / 0.8227 GB, free: 13.41 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.379e-05/0.5312, allocations: 7.094 kB / 0.8227 GB, free: 13.41 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 4.181e-05/0.5313, allocations: 86.59 kB / 0.8228 GB, free: 13.33 MB / 0.6198 GB Notification: Performance of sort global known variables: time 5e-08/0.5313, allocations: 0 / 0.8228 GB, free: 13.33 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0001981/0.5315, allocations: 14.47 kB / 0.8228 GB, free: 13.33 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: 4 (zerOrdHol.sampleTrigger,$whenCondition1,zerOrdHol.ySample,zerOrdHol.firstTrigger) * Number of discrete states: 1 (zerOrdHol.ySample) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 5 * 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.0004969/0.532, allocations: 0.737 MB / 0.8236 GB, free: 12.64 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0001957/0.5322, allocations: 65.5 kB / 0.8236 GB, free: 12.63 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.5322, allocations: 0 / 0.8236 GB, free: 12.63 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 7.287e-05/0.5322, allocations: 33.33 kB / 0.8237 GB, free: 12.62 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002244/0.5324, allocations: 10.8 kB / 0.8237 GB, free: 12.62 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001222/0.5337, allocations: 1.43 MB / 0.8251 GB, free: 11.3 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002036/0.5339, allocations: 0.6842 MB / 0.8257 GB, free: 10.61 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 3.759e-05/0.5339, allocations: 2.734 kB / 0.8257 GB, free: 10.61 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.915e-05/0.534, allocations: 21.06 kB / 0.8257 GB, free: 10.59 MB / 0.6198 GB Notification: Performance of SimCode: time 7.62e-07/0.534, allocations: 0 / 0.8257 GB, free: 10.59 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01887/0.5528, allocations: 1.95 MB / 0.8277 GB, free: 10.14 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.793/7.345, allocations: 7.516 kB / 0.8277 GB, free: 10.13 MB / 0.6198 GB " [Timeout remaining time 653] (rm -f IDEAS_dev_IDEAS.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe ; mkfifo IDEAS_dev_IDEAS.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe >> ../files/IDEAS_dev_IDEAS.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.sim & python3 -m fmpy simulate --output-file IDEAS_dev_IDEAS.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 IDEAS_dev_IDEAS_Controls_OBC_CDL_Discrete_Validation_ZeroOrderHold.fmu > IDEAS_dev_IDEAS.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 10.345447400119156] Failed to read output from testmodel.py, exit status != 0: 7.42258580820635 7.436467619 6.907194751 Calling exit ...