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.0008722/0.0008722, 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.0009238/0.0009238, allocations: 221.7 kB / 22.26 MB, free: 3.691 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 1.012/1.012, 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.7974/0.7974, allocations: 203.8 MB / 0.5041 GB, free: 10.73 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.0009256/0.0009256, allocations: 69.14 kB / 0.7182 GB, free: 4.359 MB / 0.5261 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.485/0.4859, allocations: 102 MB / 0.8178 GB, free: 1.254 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(IDEAS.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold): time 0.0013/0.4872, allocations: 0.6783 MB / 0.8185 GB, free: 0.8242 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.001144/0.4884, allocations: 1.113 MB / 0.8196 GB, free: 12 kB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.137e-05/0.4884, allocations: 1.25 kB / 0.8196 GB, free: 12 kB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 2.462e-05/0.4885, allocations: 3.938 kB / 0.8196 GB, free: 8 kB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 6.836e-05/0.4885, allocations: 10.02 kB / 0.8196 GB, free: 0 / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.000283/0.4888, allocations: 48.64 kB / 0.8197 GB, free: 15.97 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 9.017e-05/0.4889, allocations: 59.05 kB / 0.8197 GB, free: 15.94 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 9.128e-05/0.489, allocations: 9.609 kB / 0.8197 GB, free: 15.94 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 6.18e-05/0.4891, allocations: 14.91 kB / 0.8197 GB, free: 15.93 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 5.079e-05/0.4891, allocations: 38.41 kB / 0.8198 GB, free: 15.91 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 1.097e-05/0.4891, allocations: 2.656 kB / 0.8198 GB, free: 15.91 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 5.972e-05/0.4892, allocations: 21.09 kB / 0.8198 GB, free: 15.91 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 1.694e-05/0.4892, allocations: 9.484 kB / 0.8198 GB, free: 15.9 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 3.269e-05/0.4892, allocations: 22.47 kB / 0.8198 GB, free: 15.89 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0001278/0.4894, allocations: 66.47 kB / 0.8199 GB, free: 15.86 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 4.028e-06/0.4894, allocations: 0 / 0.8199 GB, free: 15.86 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.333e-06/0.4894, allocations: 0 / 0.8199 GB, free: 15.86 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 6.031e-06/0.4894, allocations: 0 / 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.0004247/0.4898, allocations: 301.4 kB / 0.8202 GB, free: 15.58 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 3.648e-05/0.4898, allocations: 8.875 kB / 0.8202 GB, free: 15.58 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.872e-05/0.4899, allocations: 35.89 kB / 0.8202 GB, free: 15.54 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.981e-05/0.4899, allocations: 3.469 kB / 0.8202 GB, free: 15.54 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.15e-05/0.49, allocations: 114.6 kB / 0.8203 GB, free: 15.41 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.209e-05/0.49, allocations: 6.812 kB / 0.8203 GB, free: 15.4 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.175e-05/0.49, allocations: 3.656 kB / 0.8203 GB, free: 15.4 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001353/0.4901, allocations: 68.06 kB / 0.8204 GB, free: 15.36 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.155e-06/0.4902, allocations: 11.88 kB / 0.8204 GB, free: 15.35 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.905e-06/0.4902, allocations: 3.938 kB / 0.8204 GB, free: 15.34 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.009e-06/0.4902, allocations: 1.812 kB / 0.8204 GB, free: 15.34 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.988e-05/0.4903, allocations: 43.62 kB / 0.8205 GB, free: 15.34 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003268/0.4906, allocations: 249.9 kB / 0.8207 GB, free: 15.09 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001035/0.4907, allocations: 54.5 kB / 0.8207 GB, free: 15.05 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.078e-05/0.4908, allocations: 28.06 kB / 0.8208 GB, free: 15.04 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 1.698e-05/0.4908, allocations: 6.703 kB / 0.8208 GB, free: 15.04 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001411/0.4909, allocations: 81.83 kB / 0.8209 GB, free: 14.97 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=7): time 1.022e-06/0.4909, allocations: 0 / 0.8209 GB, free: 14.97 MB / 0.6198 GB Notification: Performance of matching and sorting (n=7): time 0.0002538/0.4912, allocations: 132.5 kB / 0.821 GB, free: 14.91 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.451e-05/0.4912, allocations: 53.42 kB / 0.821 GB, free: 14.85 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.184e-05/0.4913, allocations: 105.8 kB / 0.8211 GB, free: 14.75 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 1.181e-05/0.4913, allocations: 26.22 kB / 0.8212 GB, free: 14.71 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001693/0.4914, allocations: 93.44 kB / 0.8213 GB, free: 14.62 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 1.63e-05/0.4915, allocations: 13.17 kB / 0.8213 GB, free: 14.61 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.246e-05/0.4915, allocations: 26.78 kB / 0.8213 GB, free: 14.59 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 7.135e-05/0.4916, allocations: 325.6 kB / 0.8216 GB, free: 14.27 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.52e-05/0.4916, allocations: 26.66 kB / 0.8216 GB, free: 14.26 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.811e-05/0.4917, allocations: 53.91 kB / 0.8217 GB, free: 14.22 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00012/0.4918, allocations: 94.27 kB / 0.8218 GB, free: 14.16 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.4918, allocations: 256 / 0.8218 GB, free: 14.16 MB / 0.6198 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001567/0.492, allocations: 117 kB / 0.8219 GB, free: 14.1 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.202e-05/0.492, allocations: 6.797 kB / 0.8219 GB, free: 14.1 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.331e-06/0.492, allocations: 6.406 kB / 0.8219 GB, free: 14.09 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.045e-05/0.492, allocations: 1.281 kB / 0.8219 GB, free: 14.09 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.14e-05/0.4921, allocations: 17.41 kB / 0.8219 GB, free: 14.09 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.542e-06/0.4921, allocations: 1.828 kB / 0.8219 GB, free: 14.09 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.892e-05/0.4921, allocations: 18.45 kB / 0.8219 GB, free: 14.08 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.107e-06/0.4921, allocations: 4.766 kB / 0.8219 GB, free: 14.08 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 6.024e-05/0.4922, allocations: 128.3 kB / 0.8221 GB, free: 13.95 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.632e-06/0.4922, allocations: 4.594 kB / 0.8221 GB, free: 13.95 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001705/0.4924, allocations: 106 kB / 0.8222 GB, free: 13.89 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.703e-06/0.4924, allocations: 1.438 kB / 0.8222 GB, free: 13.89 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.817e-06/0.4924, allocations: 0 / 0.8222 GB, free: 13.89 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.276e-06/0.4924, allocations: 1.516 kB / 0.8222 GB, free: 13.89 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000275/0.4926, allocations: 342.6 kB / 0.8225 GB, free: 13.59 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.4926, allocations: 2.312 kB / 0.8225 GB, free: 13.59 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.079e-05/0.4927, allocations: 9.188 kB / 0.8225 GB, free: 13.59 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.074e-06/0.4927, allocations: 2.203 kB / 0.8225 GB, free: 13.59 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.093e-06/0.4927, allocations: 4 kB / 0.8225 GB, free: 13.59 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.745e-06/0.4927, allocations: 3.156 kB / 0.8225 GB, free: 13.59 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.41e-07/0.4927, allocations: 0 / 0.8225 GB, free: 13.59 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001487/0.4928, allocations: 201.6 kB / 0.8227 GB, free: 13.43 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 7.975e-06/0.4928, allocations: 10.8 kB / 0.8227 GB, free: 13.42 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.195e-05/0.4929, allocations: 0.75 kB / 0.8227 GB, free: 13.42 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.67e-05/0.4929, allocations: 13.47 kB / 0.8227 GB, free: 13.42 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.525e-05/0.4929, allocations: 9.547 kB / 0.8227 GB, free: 13.41 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.999e-06/0.4929, allocations: 2.719 kB / 0.8227 GB, free: 13.41 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 2.766e-05/0.493, allocations: 85.39 kB / 0.8228 GB, free: 13.34 MB / 0.6198 GB Notification: Performance of sort global known variables: time 5e-08/0.493, allocations: 0 / 0.8228 GB, free: 13.34 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0001545/0.4931, allocations: 20.78 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.0003427/0.4935, allocations: 0.73 MB / 0.8236 GB, free: 12.65 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0001573/0.4936, allocations: 72.42 kB / 0.8236 GB, free: 12.63 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 1.392e-06/0.4936, allocations: 0 / 0.8236 GB, free: 12.63 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 5.745e-05/0.4937, allocations: 28.62 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.0001789/0.4939, allocations: 10.09 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.00102/0.4949, allocations: 1.42 MB / 0.825 GB, free: 11.31 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004285/0.4953, allocations: 0.6912 MB / 0.8257 GB, free: 10.61 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 2.659e-05/0.4953, allocations: 5.188 kB / 0.8257 GB, free: 10.61 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.153e-05/0.4954, allocations: 17.25 kB / 0.8257 GB, free: 10.6 MB / 0.6198 GB Notification: Performance of SimCode: time 4.6e-07/0.4954, allocations: 0 / 0.8257 GB, free: 10.6 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0147/0.5101, allocations: 1.955 MB / 0.8277 GB, free: 10.14 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.799/7.309, allocations: 1.891 kB / 0.8277 GB, free: 10.14 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_dev_IDEAS_Controls_OBC_CDL_Discrete_Validation_ZeroOrderHold_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 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.228252124972641] Failed to read output from testmodel.py, exit status != 0: 7.385025904048234 7.4013407319999995 6.909654125 Calling exit ...