Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_IDEAS.Controls.OBC.CDL.Discrete.Validation.UnitDelay.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.0008194/0.0008194, 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.0007894/0.0007894, 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.8942/0.8942, allocations: 177.1 MB / 202.7 MB, free: 5.746 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/package.mo", uses=false) [Timeout 180] "[/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/Examples/PPD12/Structure.mo:531:21-531:686:writable] Warning: Lexer treating \\ as \\\\, since \\e is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/Examples/PPD12/Structure.mo:531:21-531:694:writable] Warning: Lexer treating \\ as \\\\, since \\< is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/Media/Refrigerants/R410A/package.order:0:0-0:0:readonly] Warning: Found duplicate names in package.order file: A, B, C. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/Media/Refrigerants/R410A/package.mo:2:1-70:10:writable] Warning: C was referenced in the package.order file, but was not found in package.mo, C/package.mo or C.mo. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/package.mo): time 0.7193/0.7193, allocations: 154.6 MB / 413.8 MB, free: 0.8086 MB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/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 4.0.0/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 4.0.0/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.UnitDelay,fileNamePrefix="IDEAS_IDEAS_Controls_OBC_CDL_Discrete_Validation_UnitDelay",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Controls.OBC.CDL.Discrete.Validation.UnitDelay,fileNamePrefix="IDEAS_IDEAS_Controls_OBC_CDL_Discrete_Validation_UnitDelay",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.776e-06/2.776e-06, allocations: 0 / 0.6181 GB, free: 13.68 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.378e-05/2.655e-05, allocations: 4.812 kB / 0.6181 GB, free: 13.68 MB / 0.5886 GB Notification: Performance of NFInst.instantiate(IDEAS.Controls.OBC.CDL.Discrete.Validation.UnitDelay): time 0.001924/0.001951, allocations: 0.6572 MB / 0.6187 GB, free: 13.02 MB / 0.5886 GB Notification: Performance of NFInst.instExpressions: time 0.001329/0.00328, allocations: 1.089 MB / 0.6198 GB, free: 11.92 MB / 0.5886 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.222e-05/0.003332, allocations: 0 / 0.6198 GB, free: 11.92 MB / 0.5886 GB Notification: Performance of NFTyping.typeComponents: time 3.228e-05/0.003365, allocations: 3.938 kB / 0.6198 GB, free: 11.91 MB / 0.5886 GB Notification: Performance of NFTyping.typeBindings: time 7.122e-05/0.003436, allocations: 15.86 kB / 0.6198 GB, free: 11.9 MB / 0.5886 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003154/0.003751, allocations: 39.84 kB / 0.6198 GB, free: 11.86 MB / 0.5886 GB Notification: Performance of NFFlatten.flatten: time 0.0001128/0.003864, allocations: 51.83 kB / 0.6199 GB, free: 11.81 MB / 0.5886 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001145/0.003978, allocations: 8 kB / 0.6199 GB, free: 11.8 MB / 0.5886 GB Notification: Performance of NFEvalConstants.evaluate: time 9.105e-05/0.004069, allocations: 27.91 kB / 0.6199 GB, free: 11.77 MB / 0.5886 GB Notification: Performance of NFSimplifyModel.simplify: time 5.112e-05/0.004121, allocations: 19.97 kB / 0.6199 GB, free: 11.75 MB / 0.5886 GB Notification: Performance of NFPackage.collectConstants: time 1.792e-05/0.004138, allocations: 4 kB / 0.6199 GB, free: 11.75 MB / 0.5886 GB Notification: Performance of NFFlatten.collectFunctions: time 6.846e-05/0.004207, allocations: 23.92 kB / 0.62 GB, free: 11.73 MB / 0.5886 GB Notification: Performance of NFScalarize.scalarize: time 2.179e-05/0.004229, allocations: 11.88 kB / 0.62 GB, free: 11.71 MB / 0.5886 GB Notification: Performance of NFVerifyModel.verify: time 3.734e-05/0.004266, allocations: 19.97 kB / 0.62 GB, free: 11.7 MB / 0.5886 GB Notification: Performance of NFConvertDAE.convert: time 0.0001557/0.004422, allocations: 63.78 kB / 0.6201 GB, free: 11.63 MB / 0.5886 GB Notification: Performance of FrontEnd - DAE generated: time 4.548e-06/0.004426, allocations: 4 kB / 0.6201 GB, free: 11.63 MB / 0.5886 GB Notification: Performance of FrontEnd: time 1.663e-06/0.004428, allocations: 0 / 0.6201 GB, free: 11.63 MB / 0.5886 GB Notification: Performance of Transformations before backend: time 5.831e-06/0.004434, allocations: 0 / 0.6201 GB, free: 11.63 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.000516/0.00495, allocations: 286.2 kB / 0.6203 GB, free: 11.32 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 4.525e-05/0.004995, allocations: 8.031 kB / 0.6203 GB, free: 11.31 MB / 0.5886 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.923e-05/0.005034, allocations: 34.73 kB / 0.6204 GB, free: 11.27 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.025e-05/0.005125, allocations: 12.89 kB / 0.6204 GB, free: 11.25 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.751e-05/0.005222, allocations: 109.7 kB / 0.6205 GB, free: 11.12 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.519e-05/0.005237, allocations: 4.375 kB / 0.6205 GB, free: 11.12 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.206e-05/0.005249, allocations: 4.375 kB / 0.6205 GB, free: 11.11 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000172/0.005421, allocations: 74.16 kB / 0.6206 GB, free: 11.04 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.867e-06/0.00543, allocations: 192 / 0.6206 GB, free: 11.04 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.518e-06/0.00544, allocations: 384 / 0.6206 GB, free: 11.04 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.162e-06/0.005446, allocations: 4.125 kB / 0.6206 GB, free: 11.03 MB / 0.5886 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001297/0.005576, allocations: 39.95 kB / 0.6206 GB, free: 10.99 MB / 0.5886 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004573/0.006033, allocations: 243.9 kB / 0.6208 GB, free: 10.71 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001403/0.006173, allocations: 54.55 kB / 0.6209 GB, free: 10.65 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002694/0.006442, allocations: 32.89 kB / 0.6209 GB, free: 10.61 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 2.899e-05/0.006471, allocations: 7.938 kB / 0.6209 GB, free: 10.61 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000215/0.006686, allocations: 67.39 kB / 0.621 GB, free: 10.53 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=6): time 1.573e-06/0.006688, allocations: 0 / 0.621 GB, free: 10.53 MB / 0.5886 GB Notification: Performance of matching and sorting (n=6): time 0.0003264/0.007014, allocations: 113.6 kB / 0.6211 GB, free: 10.41 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.727e-05/0.007062, allocations: 59.41 kB / 0.6212 GB, free: 10.34 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.336e-05/0.007145, allocations: 117.7 kB / 0.6213 GB, free: 10.21 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 1.37e-05/0.007159, allocations: 25.7 kB / 0.6213 GB, free: 10.18 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 4.65e-05/0.007205, allocations: 96.06 kB / 0.6214 GB, free: 10.09 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 2.144e-05/0.007227, allocations: 15.84 kB / 0.6214 GB, free: 10.07 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.573e-05/0.007272, allocations: 25.72 kB / 0.6214 GB, free: 10.04 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 8.668e-05/0.007359, allocations: 314.8 kB / 0.6217 GB, free: 9.723 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.927e-05/0.007428, allocations: 23.98 kB / 0.6218 GB, free: 9.699 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.593e-05/0.007514, allocations: 60.27 kB / 0.6218 GB, free: 9.625 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001602/0.007674, allocations: 92.19 kB / 0.6219 GB, free: 9.52 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.505e-06/0.007677, allocations: 0 / 0.6219 GB, free: 9.52 MB / 0.5886 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002155/0.007892, allocations: 121.6 kB / 0.622 GB, free: 9.395 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 1.557e-05/0.007908, allocations: 4 kB / 0.622 GB, free: 9.391 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.472e-06/0.007915, allocations: 3.938 kB / 0.622 GB, free: 9.387 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.552e-05/0.00793, allocations: 4 kB / 0.622 GB, free: 9.383 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001142/0.008044, allocations: 15.98 kB / 0.622 GB, free: 9.367 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.967e-06/0.008053, allocations: 3.938 kB / 0.622 GB, free: 9.363 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.005e-05/0.008113, allocations: 11.98 kB / 0.6221 GB, free: 9.352 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.658e-06/0.008123, allocations: 4 kB / 0.6221 GB, free: 9.348 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 (unitDelay1.u_internal,$PRE.unitDelay1.u_internal,unitDelay1.y,$PRE.unitDelay1.y,unitDelay1.sampleTrigger,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 9 * 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.129e-05/0.008194, allocations: 119 kB / 0.6222 GB, free: 9.223 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.263e-05/0.008207, allocations: 11.89 kB / 0.6222 GB, free: 9.211 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001921/0.008399, allocations: 106.3 kB / 0.6223 GB, free: 9.098 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.244e-06/0.008401, allocations: 0 / 0.6223 GB, free: 9.098 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.863e-06/0.008408, allocations: 4.062 kB / 0.6223 GB, free: 9.094 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.025e-06/0.008411, allocations: 0 / 0.6223 GB, free: 9.094 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003042/0.008715, allocations: 321.6 kB / 0.6226 GB, free: 8.73 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.683e-06/0.008717, allocations: 4 kB / 0.6226 GB, free: 8.727 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.838e-05/0.008755, allocations: 7.984 kB / 0.6226 GB, free: 8.719 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.895e-06/0.008758, allocations: 0 / 0.6226 GB, free: 8.719 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.656e-06/0.008767, allocations: 4 kB / 0.6226 GB, free: 8.715 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.934e-06/0.008769, allocations: 0 / 0.6226 GB, free: 8.715 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/0.008771, allocations: 0 / 0.6226 GB, free: 8.715 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001607/0.008932, allocations: 191.3 kB / 0.6228 GB, free: 8.512 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 9.338e-06/0.008941, allocations: 11.92 kB / 0.6228 GB, free: 8.5 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.635e-05/0.008957, allocations: 4 kB / 0.6228 GB, free: 8.496 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.876e-05/0.008996, allocations: 8 kB / 0.6228 GB, free: 8.488 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.03e-05/0.009036, allocations: 7.984 kB / 0.6228 GB, free: 8.48 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.951e-06/0.009042, allocations: 0 / 0.6228 GB, free: 8.48 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 3.84e-05/0.009081, allocations: 91.25 kB / 0.6229 GB, free: 8.391 MB / 0.5886 GB Notification: Performance of sort global known variables: time 7e-08/0.009081, allocations: 7.938 kB / 0.6229 GB, free: 8.383 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.0001715/0.009252, allocations: 8 kB / 0.6229 GB, free: 8.375 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 (unitDelay1.sampleTrigger,$whenCondition1,unitDelay1.y,unitDelay1.u_internal) * Number of discrete states: 1 (unitDelay1.u_internal) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 4 * 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.0004568/0.009709, allocations: 0.7279 MB / 0.6236 GB, free: 7.621 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.0001718/0.009881, allocations: 67.89 kB / 0.6237 GB, free: 7.555 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.009883, allocations: 0 / 0.6237 GB, free: 7.555 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 5.944e-05/0.009942, allocations: 31.97 kB / 0.6237 GB, free: 7.523 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002263/0.01017, allocations: 9.875 kB / 0.6237 GB, free: 7.516 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001113/0.01128, allocations: 1.411 MB / 0.6251 GB, free: 6 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.785e-05/0.01133, allocations: 67.34 kB / 0.6252 GB, free: 5.914 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 2.783e-05/0.01136, allocations: 8 kB / 0.6252 GB, free: 5.906 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.893e-05/0.0114, allocations: 16.48 kB / 0.6252 GB, free: 5.891 MB / 0.5886 GB Notification: Performance of SimCode: time 1.212e-06/0.0114, allocations: 8 kB / 0.6252 GB, free: 5.883 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01774/0.02913, allocations: 2.461 MB / 0.6276 GB, free: 3.578 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.989/7.018, allocations: 8.047 kB / 0.6276 GB, free: 3.57 MB / 0.5886 GB " [Timeout remaining time 653] (rm -f IDEAS_IDEAS.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe ; mkfifo IDEAS_IDEAS.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe ; head -c 1048576 < IDEAS_IDEAS.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe >> ../files/IDEAS_IDEAS.Controls.OBC.CDL.Discrete.Validation.UnitDelay.sim & python3 -m fmpy simulate --output-file IDEAS_IDEAS.Controls.OBC.CDL.Discrete.Validation.UnitDelay_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 IDEAS_IDEAS_Controls_OBC_CDL_Discrete_Validation_UnitDelay.fmu > IDEAS_IDEAS.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 9.794313511811197] Failed to read output from testmodel.py, exit status != 0: 7.097552383318543 7.108394681 7.101721496 Calling exit ...