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.0009491/0.0009491, allocations: 80.44 kB / 19.17 MB, free: 0.7422 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.0009859/0.0009859, allocations: 169.9 kB / 22.46 MB, free: 2.105 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.9087/0.9087, allocations: 177.1 MB / 202.8 MB, free: 5.754 MB / 186.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.7229/0.7229, allocations: 154.6 MB / 413.7 MB, free: 0.832 MB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/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 master/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 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: Performance of FrontEnd - loaded program: time 2.314e-06/2.314e-06, allocations: 0 / 0.618 GB, free: 13.78 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.547e-05/1.778e-05, allocations: 5.344 kB / 0.618 GB, free: 13.78 MB / 0.5886 GB Notification: Performance of NFInst.instantiate(IDEAS.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold): time 0.001654/0.001672, allocations: 0.6538 MB / 0.6187 GB, free: 13.13 MB / 0.5886 GB Notification: Performance of NFInst.instExpressions: time 0.001372/0.003044, allocations: 1.096 MB / 0.6197 GB, free: 12.02 MB / 0.5886 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.437e-05/0.003089, allocations: 4 kB / 0.6197 GB, free: 12.02 MB / 0.5886 GB Notification: Performance of NFTyping.typeComponents: time 3.077e-05/0.003119, allocations: 3.938 kB / 0.6197 GB, free: 12.01 MB / 0.5886 GB Notification: Performance of NFTyping.typeBindings: time 6.615e-05/0.003186, allocations: 11.86 kB / 0.6198 GB, free: 12 MB / 0.5886 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003064/0.003492, allocations: 39.83 kB / 0.6198 GB, free: 11.96 MB / 0.5886 GB Notification: Performance of NFFlatten.flatten: time 0.0001071/0.003599, allocations: 51.84 kB / 0.6198 GB, free: 11.91 MB / 0.5886 GB Notification: Performance of NFFlatten.resolveConnections: time 9.758e-05/0.003697, allocations: 15.98 kB / 0.6199 GB, free: 11.89 MB / 0.5886 GB Notification: Performance of NFEvalConstants.evaluate: time 8.705e-05/0.003784, allocations: 35.84 kB / 0.6199 GB, free: 11.86 MB / 0.5886 GB Notification: Performance of NFSimplifyModel.simplify: time 4.891e-05/0.003833, allocations: 15.97 kB / 0.6199 GB, free: 11.84 MB / 0.5886 GB Notification: Performance of NFPackage.collectConstants: time 1.734e-05/0.00385, allocations: 4 kB / 0.6199 GB, free: 11.84 MB / 0.5886 GB Notification: Performance of NFFlatten.collectFunctions: time 7.01e-05/0.00392, allocations: 16 kB / 0.6199 GB, free: 11.82 MB / 0.5886 GB Notification: Performance of NFScalarize.scalarize: time 2.786e-05/0.003948, allocations: 19.91 kB / 0.6199 GB, free: 11.8 MB / 0.5886 GB Notification: Performance of NFVerifyModel.verify: time 3.083e-05/0.003979, allocations: 11.98 kB / 0.62 GB, free: 11.79 MB / 0.5886 GB Notification: Performance of NFConvertDAE.convert: time 0.0001555/0.004134, allocations: 67.77 kB / 0.62 GB, free: 11.73 MB / 0.5886 GB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.004138, allocations: 4 kB / 0.62 GB, free: 11.72 MB / 0.5886 GB Notification: Performance of FrontEnd: time 1.072e-06/0.004139, allocations: 0 / 0.62 GB, free: 11.72 MB / 0.5886 GB Notification: Performance of Transformations before backend: time 3.667e-06/0.004143, allocations: 0 / 0.62 GB, free: 11.72 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0005123/0.004655, allocations: 294.1 kB / 0.6203 GB, free: 11.4 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 4.007e-05/0.004695, allocations: 9.469 kB / 0.6203 GB, free: 11.39 MB / 0.5886 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.007e-05/0.004735, allocations: 38.75 kB / 0.6203 GB, free: 11.35 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.602e-05/0.004811, allocations: 8.875 kB / 0.6204 GB, free: 11.34 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.656e-05/0.004898, allocations: 105.8 kB / 0.6205 GB, free: 11.21 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.599e-05/0.004914, allocations: 8.312 kB / 0.6205 GB, free: 11.2 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.41e-05/0.004928, allocations: 4.375 kB / 0.6205 GB, free: 11.2 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001826/0.00511, allocations: 74.2 kB / 0.6205 GB, free: 11.12 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.039e-05/0.005121, allocations: 4.172 kB / 0.6205 GB, free: 11.12 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.709e-06/0.00513, allocations: 384 / 0.6205 GB, free: 11.12 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.043e-06/0.005137, allocations: 8.125 kB / 0.6206 GB, free: 11.11 MB / 0.5886 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001548/0.005292, allocations: 43.95 kB / 0.6206 GB, free: 11.07 MB / 0.5886 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004082/0.005701, allocations: 232 kB / 0.6208 GB, free: 10.8 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001623/0.005863, allocations: 58.48 kB / 0.6209 GB, free: 10.73 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.094e-05/0.005944, allocations: 32.97 kB / 0.6209 GB, free: 10.7 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 2.261e-05/0.005966, allocations: 7.922 kB / 0.6209 GB, free: 10.69 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001812/0.006148, allocations: 75.39 kB / 0.621 GB, free: 10.6 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=7): time 1.453e-06/0.006149, allocations: 0 / 0.621 GB, free: 10.6 MB / 0.5886 GB Notification: Performance of matching and sorting (n=7): time 0.0003627/0.006512, allocations: 125.6 kB / 0.6211 GB, free: 10.47 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.171e-05/0.006553, allocations: 59.39 kB / 0.6212 GB, free: 10.4 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.084e-05/0.006624, allocations: 105.9 kB / 0.6213 GB, free: 10.29 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 1.594e-05/0.00664, allocations: 33.58 kB / 0.6213 GB, free: 10.25 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 4.282e-05/0.006683, allocations: 92.08 kB / 0.6214 GB, free: 10.16 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 2.508e-05/0.006708, allocations: 19.84 kB / 0.6214 GB, free: 10.14 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.233e-05/0.00676, allocations: 25.7 kB / 0.6214 GB, free: 10.11 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 9.476e-05/0.006855, allocations: 314.8 kB / 0.6217 GB, free: 9.789 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.516e-05/0.00695, allocations: 27.97 kB / 0.6218 GB, free: 9.762 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001055/0.007056, allocations: 60.27 kB / 0.6218 GB, free: 9.688 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001812/0.007237, allocations: 92.2 kB / 0.6219 GB, free: 9.582 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.515e-06/0.007239, allocations: 0 / 0.6219 GB, free: 9.582 MB / 0.5886 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002445/0.007484, allocations: 117.4 kB / 0.622 GB, free: 9.461 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 1.472e-05/0.007499, allocations: 4.125 kB / 0.622 GB, free: 9.457 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.402e-06/0.007505, allocations: 7.984 kB / 0.622 GB, free: 9.449 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.332e-05/0.007518, allocations: 4 kB / 0.622 GB, free: 9.445 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.948e-05/0.007618, allocations: 23.92 kB / 0.622 GB, free: 9.422 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.823e-06/0.007625, allocations: 4 kB / 0.622 GB, free: 9.418 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.269e-05/0.007687, allocations: 4 kB / 0.6221 GB, free: 9.414 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.169e-05/0.007699, allocations: 4.25 kB / 0.6221 GB, free: 9.41 MB / 0.5886 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.88e-05/0.007778, allocations: 120.7 kB / 0.6222 GB, free: 9.285 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.431e-05/0.007792, allocations: 7.891 kB / 0.6222 GB, free: 9.277 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002493/0.008042, allocations: 114.3 kB / 0.6223 GB, free: 9.156 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.364e-06/0.008044, allocations: 0 / 0.6223 GB, free: 9.156 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.728e-06/0.008049, allocations: 4 kB / 0.6223 GB, free: 9.152 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.717e-06/0.008052, allocations: 0 / 0.6223 GB, free: 9.152 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003958/0.008448, allocations: 333.6 kB / 0.6226 GB, free: 8.777 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.00845, allocations: 0 / 0.6226 GB, free: 8.777 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.51e-05/0.008505, allocations: 15.92 kB / 0.6226 GB, free: 8.762 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.044e-06/0.008507, allocations: 0 / 0.6226 GB, free: 8.762 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.548e-06/0.008516, allocations: 8 kB / 0.6226 GB, free: 8.754 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.694e-06/0.008518, allocations: 0 / 0.6226 GB, free: 8.754 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.008519, allocations: 0 / 0.6226 GB, free: 8.754 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002493/0.008768, allocations: 203.4 kB / 0.6228 GB, free: 8.539 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 9.157e-06/0.008778, allocations: 4.031 kB / 0.6228 GB, free: 8.535 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.787e-05/0.008796, allocations: 4 kB / 0.6228 GB, free: 8.531 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.704e-05/0.008883, allocations: 15.92 kB / 0.6229 GB, free: 8.516 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.84e-05/0.008921, allocations: 3.984 kB / 0.6229 GB, free: 8.512 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.442e-05/0.008935, allocations: 8 kB / 0.6229 GB, free: 8.504 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 4.059e-05/0.008976, allocations: 83.47 kB / 0.6229 GB, free: 8.422 MB / 0.5886 GB Notification: Performance of sort global known variables: time 1e-07/0.008976, allocations: 0 / 0.6229 GB, free: 8.422 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.0002728/0.009249, allocations: 15.94 kB / 0.623 GB, free: 8.406 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: 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.0005482/0.009797, allocations: 0.7396 MB / 0.6237 GB, free: 7.641 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.0002326/0.01003, allocations: 68.08 kB / 0.6237 GB, free: 7.574 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.01003, allocations: 0 / 0.6237 GB, free: 7.574 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 9.088e-05/0.01012, allocations: 31.97 kB / 0.6238 GB, free: 7.543 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002743/0.0104, allocations: 8 kB / 0.6238 GB, free: 7.535 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001097/0.01149, allocations: 1.424 MB / 0.6252 GB, free: 6.004 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.153e-05/0.01154, allocations: 67.34 kB / 0.6252 GB, free: 5.918 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 2.592e-05/0.01156, allocations: 7.984 kB / 0.6252 GB, free: 5.91 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.262e-05/0.01159, allocations: 16.5 kB / 0.6253 GB, free: 5.895 MB / 0.5886 GB Notification: Performance of SimCode: time 5.01e-07/0.01159, allocations: 0 / 0.6253 GB, free: 5.895 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01385/0.02545, allocations: 2.502 MB / 0.6277 GB, free: 3.543 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.885/6.911, allocations: 4.641 kB / 0.6277 GB, free: 3.539 MB / 0.5886 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: 9.587450610473752] Failed to read output from testmodel.py, exit status != 0: 6.990940688177943 6.99979613 6.993776873 Calling exit ...