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.001058/0.001058, allocations: 80.45 kB / 19.15 MB, free: 0.7734 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.0007823/0.0007823, allocations: 162 kB / 22.43 MB, free: 2.145 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.8345/0.8345, allocations: 177.2 MB / 202.8 MB, free: 5.785 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.6862/0.6862, allocations: 155 MB / 414.2 MB, free: 488 kB / 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: 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.0009381/0.0009381, allocations: 70.08 kB / 0.6186 GB, free: 12.2 MB / 0.5417 GB [/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. Notification: Performance of FrontEnd - Absyn->SCode: time 0.3998/0.4007, allocations: 102 MB / 0.7182 GB, free: 13.38 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(IDEAS.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold): time 0.001395/0.4021, allocations: 0.6552 MB / 0.7189 GB, free: 12.73 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.001014/0.4031, allocations: 1.095 MB / 0.7199 GB, free: 11.63 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.335e-05/0.4032, allocations: 3.938 kB / 0.7199 GB, free: 11.62 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 2.664e-05/0.4032, allocations: 0 / 0.7199 GB, free: 11.62 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 6.104e-05/0.4032, allocations: 7.875 kB / 0.7199 GB, free: 11.62 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002722/0.4035, allocations: 52.17 kB / 0.72 GB, free: 11.57 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 8.396e-05/0.4036, allocations: 47.86 kB / 0.72 GB, free: 11.52 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 8.631e-05/0.4037, allocations: 19.97 kB / 0.7201 GB, free: 11.5 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 7.273e-05/0.4038, allocations: 27.92 kB / 0.7201 GB, free: 11.48 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 4.538e-05/0.4038, allocations: 23.91 kB / 0.7201 GB, free: 11.45 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 1.28e-05/0.4038, allocations: 4 kB / 0.7201 GB, free: 11.45 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 5.468e-05/0.4039, allocations: 23.92 kB / 0.7201 GB, free: 11.43 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 2.107e-05/0.4039, allocations: 7.984 kB / 0.7201 GB, free: 11.42 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 2.967e-05/0.4039, allocations: 23.86 kB / 0.7202 GB, free: 11.39 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.0001301/0.4041, allocations: 71.7 kB / 0.7202 GB, free: 11.32 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 3.517e-06/0.4041, allocations: 4 kB / 0.7202 GB, free: 11.32 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.744e-06/0.4041, allocations: 0 / 0.7202 GB, free: 11.32 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 5.481e-06/0.4041, allocations: 4 kB / 0.7202 GB, free: 11.32 MB / 0.6042 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.0004386/0.4045, allocations: 290.2 kB / 0.7205 GB, free: 11 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 3.573e-05/0.4045, allocations: 13.47 kB / 0.7205 GB, free: 10.99 MB / 0.6042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.949e-05/0.4046, allocations: 42.73 kB / 0.7206 GB, free: 10.94 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.443e-05/0.4046, allocations: 4.938 kB / 0.7206 GB, free: 10.93 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.68e-05/0.4047, allocations: 110.5 kB / 0.7207 GB, free: 10.8 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.018e-05/0.4047, allocations: 384 / 0.7207 GB, free: 10.8 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.214e-05/0.4047, allocations: 8.375 kB / 0.7207 GB, free: 10.79 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001392/0.4049, allocations: 74.16 kB / 0.7208 GB, free: 10.71 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.136e-06/0.4049, allocations: 3.938 kB / 0.7208 GB, free: 10.71 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.827e-06/0.4049, allocations: 0 / 0.7208 GB, free: 10.71 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.561e-06/0.4049, allocations: 0 / 0.7208 GB, free: 10.71 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.782e-05/0.405, allocations: 43.95 kB / 0.7208 GB, free: 10.67 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003401/0.4053, allocations: 247.8 kB / 0.721 GB, free: 10.38 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001149/0.4054, allocations: 54.48 kB / 0.7211 GB, free: 10.32 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.409e-05/0.4055, allocations: 40.89 kB / 0.7211 GB, free: 10.28 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 1.927e-05/0.4055, allocations: 4 kB / 0.7211 GB, free: 10.27 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001421/0.4057, allocations: 84.5 kB / 0.7212 GB, free: 10.18 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=7): time 8.91e-07/0.4057, allocations: 0 / 0.7212 GB, free: 10.18 MB / 0.6042 GB Notification: Performance of matching and sorting (n=7): time 0.0002523/0.4059, allocations: 121.6 kB / 0.7213 GB, free: 10.05 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.279e-05/0.4059, allocations: 55.47 kB / 0.7214 GB, free: 9.988 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.688e-05/0.406, allocations: 113.8 kB / 0.7215 GB, free: 9.867 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 1.184e-05/0.406, allocations: 25.7 kB / 0.7215 GB, free: 9.836 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 3.879e-05/0.406, allocations: 88.14 kB / 0.7216 GB, free: 9.746 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 1.736e-05/0.4061, allocations: 15.86 kB / 0.7216 GB, free: 9.73 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.11e-05/0.4061, allocations: 25.7 kB / 0.7216 GB, free: 9.699 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 7.231e-05/0.4062, allocations: 322.8 kB / 0.722 GB, free: 9.375 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.136e-05/0.4062, allocations: 27.91 kB / 0.722 GB, free: 9.348 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.392e-05/0.4063, allocations: 60.27 kB / 0.722 GB, free: 9.273 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001248/0.4064, allocations: 96.19 kB / 0.7221 GB, free: 9.164 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.904e-06/0.4064, allocations: 0 / 0.7221 GB, free: 9.164 MB / 0.6042 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001452/0.4066, allocations: 117.5 kB / 0.7222 GB, free: 9.043 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.353e-05/0.4066, allocations: 12.12 kB / 0.7223 GB, free: 9.031 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.985e-06/0.4066, allocations: 0 / 0.7223 GB, free: 9.031 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.273e-05/0.4066, allocations: 0 / 0.7223 GB, free: 9.031 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.557e-05/0.4067, allocations: 19.98 kB / 0.7223 GB, free: 9.012 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.799e-06/0.4067, allocations: 3.938 kB / 0.7223 GB, free: 9.008 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.359e-05/0.4067, allocations: 11.92 kB / 0.7223 GB, free: 8.996 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.504e-06/0.4067, allocations: 4 kB / 0.7223 GB, free: 8.992 MB / 0.6042 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.299e-05/0.4068, allocations: 118.8 kB / 0.7224 GB, free: 8.867 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.724e-06/0.4068, allocations: 7.953 kB / 0.7224 GB, free: 8.859 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001632/0.4069, allocations: 110 kB / 0.7225 GB, free: 8.746 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.735e-06/0.4069, allocations: 4 kB / 0.7225 GB, free: 8.742 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.647e-06/0.4069, allocations: 256 / 0.7225 GB, free: 8.742 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.886e-06/0.4069, allocations: 0 / 0.7225 GB, free: 8.742 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002668/0.4072, allocations: 325.6 kB / 0.7228 GB, free: 8.375 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.373e-06/0.4072, allocations: 0 / 0.7228 GB, free: 8.375 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.251e-05/0.4072, allocations: 15.98 kB / 0.7228 GB, free: 8.359 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.983e-06/0.4072, allocations: 0 / 0.7228 GB, free: 8.359 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.384e-06/0.4073, allocations: 11.94 kB / 0.7229 GB, free: 8.348 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.332e-06/0.4073, allocations: 0 / 0.7229 GB, free: 8.348 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.4073, allocations: 192 / 0.7229 GB, free: 8.348 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001507/0.4074, allocations: 199.4 kB / 0.723 GB, free: 8.137 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 6.523e-06/0.4074, allocations: 7.938 kB / 0.7231 GB, free: 8.129 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.36e-05/0.4074, allocations: 3.984 kB / 0.7231 GB, free: 8.125 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.687e-05/0.4075, allocations: 4 kB / 0.7231 GB, free: 8.121 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.621e-05/0.4075, allocations: 11.92 kB / 0.7231 GB, free: 8.109 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.144e-05/0.4075, allocations: 8 kB / 0.7231 GB, free: 8.102 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 2.753e-05/0.4075, allocations: 87.27 kB / 0.7232 GB, free: 8.016 MB / 0.6042 GB Notification: Performance of sort global known variables: time 6e-08/0.4075, allocations: 0 / 0.7232 GB, free: 8.016 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0001635/0.4077, allocations: 19.94 kB / 0.7232 GB, free: 7.996 MB / 0.6042 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.0003976/0.4081, allocations: 0.7358 MB / 0.7239 GB, free: 7.234 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0001692/0.4083, allocations: 76.06 kB / 0.724 GB, free: 7.16 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.4083, allocations: 0 / 0.724 GB, free: 7.16 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 5.848e-05/0.4083, allocations: 28.61 kB / 0.724 GB, free: 7.133 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002092/0.4085, allocations: 17.95 kB / 0.724 GB, free: 7.117 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001296/0.4098, allocations: 1.416 MB / 0.7254 GB, free: 5.594 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.491e-05/0.4099, allocations: 71.28 kB / 0.7255 GB, free: 5.504 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 2.836e-05/0.4099, allocations: 3.984 kB / 0.7255 GB, free: 5.5 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.677e-05/0.41, allocations: 16.5 kB / 0.7255 GB, free: 5.484 MB / 0.6042 GB Notification: Performance of SimCode: time 9.52e-07/0.41, allocations: 0 / 0.7255 GB, free: 5.484 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01746/0.4274, allocations: 2.5 MB / 0.7279 GB, free: 3.121 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.596/7.023, allocations: 3.562 kB / 0.7279 GB, free: 3.121 MB / 0.6042 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.503971761092544] Failed to read output from testmodel.py, exit status != 0: 7.100089952116832 7.113905822 6.707078268 Calling exit ...