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.0009178/0.0009178, 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.001331/0.001331, 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.9512/0.9512, allocations: 177.1 MB / 202.8 MB, free: 5.738 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.7212/0.7212, allocations: 154.5 MB / 413.7 MB, free: 0.8203 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 3.055e-06/3.055e-06, allocations: 0 / 0.618 GB, free: 13.74 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.525e-05/2.83e-05, allocations: 5.234 kB / 0.618 GB, free: 13.74 MB / 0.5886 GB Notification: Performance of NFInst.instantiate(IDEAS.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold): time 0.002251/0.00228, allocations: 0.6528 MB / 0.6187 GB, free: 13.09 MB / 0.5886 GB Notification: Performance of NFInst.instExpressions: time 0.001476/0.003756, allocations: 1.096 MB / 0.6197 GB, free: 11.98 MB / 0.5886 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.781e-05/0.003823, allocations: 4 kB / 0.6197 GB, free: 11.97 MB / 0.5886 GB Notification: Performance of NFTyping.typeComponents: time 3.99e-05/0.003863, allocations: 3.938 kB / 0.6197 GB, free: 11.97 MB / 0.5886 GB Notification: Performance of NFTyping.typeBindings: time 8.121e-05/0.003944, allocations: 11.88 kB / 0.6198 GB, free: 11.96 MB / 0.5886 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003786/0.004323, allocations: 51.75 kB / 0.6198 GB, free: 11.91 MB / 0.5886 GB Notification: Performance of NFFlatten.flatten: time 0.0001019/0.004425, allocations: 47.84 kB / 0.6198 GB, free: 11.86 MB / 0.5886 GB Notification: Performance of NFFlatten.resolveConnections: time 9.486e-05/0.00452, allocations: 11.98 kB / 0.6199 GB, free: 11.85 MB / 0.5886 GB Notification: Performance of NFEvalConstants.evaluate: time 8.431e-05/0.004604, allocations: 23.92 kB / 0.6199 GB, free: 11.82 MB / 0.5886 GB Notification: Performance of NFSimplifyModel.simplify: time 4.434e-05/0.004648, allocations: 19.97 kB / 0.6199 GB, free: 11.8 MB / 0.5886 GB Notification: Performance of NFPackage.collectConstants: time 1.503e-05/0.004663, allocations: 4 kB / 0.6199 GB, free: 11.8 MB / 0.5886 GB Notification: Performance of NFFlatten.collectFunctions: time 6.207e-05/0.004726, allocations: 23.97 kB / 0.6199 GB, free: 11.78 MB / 0.5886 GB Notification: Performance of NFScalarize.scalarize: time 2.067e-05/0.004746, allocations: 15.94 kB / 0.6199 GB, free: 11.76 MB / 0.5886 GB Notification: Performance of NFVerifyModel.verify: time 2.591e-05/0.004772, allocations: 11.98 kB / 0.62 GB, free: 11.75 MB / 0.5886 GB Notification: Performance of NFConvertDAE.convert: time 0.0001392/0.004911, allocations: 75.75 kB / 0.62 GB, free: 11.68 MB / 0.5886 GB Notification: Performance of FrontEnd - DAE generated: time 4.048e-06/0.004915, allocations: 0 / 0.62 GB, free: 11.68 MB / 0.5886 GB Notification: Performance of FrontEnd: time 1.332e-06/0.004917, allocations: 0 / 0.62 GB, free: 11.68 MB / 0.5886 GB Notification: Performance of Transformations before backend: time 4.418e-06/0.004921, allocations: 0 / 0.62 GB, free: 11.68 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.0004582/0.005379, allocations: 294.1 kB / 0.6203 GB, free: 11.36 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 3.959e-05/0.005419, allocations: 9.469 kB / 0.6203 GB, free: 11.35 MB / 0.5886 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.222e-05/0.005451, allocations: 38.73 kB / 0.6204 GB, free: 11.3 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.589e-05/0.005527, allocations: 8.891 kB / 0.6204 GB, free: 11.29 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.183e-05/0.005619, allocations: 113.7 kB / 0.6205 GB, free: 11.16 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.521e-05/0.005634, allocations: 4.375 kB / 0.6205 GB, free: 11.15 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.238e-05/0.005646, allocations: 4.375 kB / 0.6205 GB, free: 11.15 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001735/0.00582, allocations: 66.22 kB / 0.6205 GB, free: 11.08 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.709e-06/0.00583, allocations: 192 / 0.6205 GB, free: 11.08 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.32e-05/0.005843, allocations: 384 / 0.6205 GB, free: 11.08 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.915e-06/0.005851, allocations: 4.125 kB / 0.6205 GB, free: 11.07 MB / 0.5886 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001116/0.005962, allocations: 47.95 kB / 0.6206 GB, free: 11.03 MB / 0.5886 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004782/0.006441, allocations: 243.9 kB / 0.6208 GB, free: 10.75 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001458/0.006586, allocations: 50.55 kB / 0.6209 GB, free: 10.69 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.911e-05/0.006645, allocations: 36.95 kB / 0.6209 GB, free: 10.65 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 2.793e-05/0.006673, allocations: 3.938 kB / 0.6209 GB, free: 10.64 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002289/0.006902, allocations: 79.38 kB / 0.621 GB, free: 10.55 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=7): time 2.715e-06/0.006905, allocations: 7.938 kB / 0.621 GB, free: 10.55 MB / 0.5886 GB Notification: Performance of matching and sorting (n=7): time 0.0003062/0.007211, allocations: 121.6 kB / 0.6211 GB, free: 10.42 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.999e-05/0.007251, allocations: 51.41 kB / 0.6212 GB, free: 10.36 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001199/0.007371, allocations: 105.8 kB / 0.6213 GB, free: 10.25 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 1.323e-05/0.007384, allocations: 29.7 kB / 0.6213 GB, free: 10.21 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 4.086e-05/0.007425, allocations: 88.09 kB / 0.6214 GB, free: 10.12 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 2.314e-05/0.007448, allocations: 23.91 kB / 0.6214 GB, free: 10.1 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.165e-05/0.00749, allocations: 25.64 kB / 0.6214 GB, free: 10.07 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 8.638e-05/0.007576, allocations: 322.8 kB / 0.6217 GB, free: 9.742 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.129e-05/0.007638, allocations: 27.97 kB / 0.6218 GB, free: 9.715 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.757e-05/0.007705, allocations: 60.2 kB / 0.6218 GB, free: 9.641 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001234/0.007829, allocations: 92.19 kB / 0.6219 GB, free: 9.535 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.265e-06/0.007831, allocations: 4 kB / 0.6219 GB, free: 9.531 MB / 0.5886 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001641/0.007995, allocations: 117.5 kB / 0.622 GB, free: 9.41 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 1.559e-05/0.008011, allocations: 10.03 kB / 0.622 GB, free: 9.402 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.51e-06/0.008016, allocations: 0 / 0.622 GB, free: 9.402 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.493e-05/0.008031, allocations: 4 kB / 0.622 GB, free: 9.398 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.158e-05/0.008113, allocations: 19.92 kB / 0.622 GB, free: 9.379 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.843e-06/0.00812, allocations: 0 / 0.622 GB, free: 9.379 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.676e-05/0.008156, allocations: 16.11 kB / 0.6221 GB, free: 9.363 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.494e-06/0.008164, allocations: 0 / 0.6221 GB, free: 9.363 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 0.0002679/0.008432, allocations: 118.8 kB / 0.6222 GB, free: 9.238 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.207e-05/0.008444, allocations: 7.891 kB / 0.6222 GB, free: 9.23 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001851/0.008629, allocations: 110.3 kB / 0.6223 GB, free: 9.113 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.527e-06/0.008632, allocations: 4.25 kB / 0.6223 GB, free: 9.109 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.629e-06/0.008637, allocations: 0 / 0.6223 GB, free: 9.109 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.044e-06/0.008644, allocations: 4 kB / 0.6223 GB, free: 9.105 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000313/0.008957, allocations: 337.5 kB / 0.6226 GB, free: 8.727 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.764e-06/0.008959, allocations: 0 / 0.6226 GB, free: 8.727 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.648e-05/0.008995, allocations: 15.98 kB / 0.6226 GB, free: 8.711 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.557e-06/0.008999, allocations: 4 kB / 0.6226 GB, free: 8.707 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.206e-06/0.009007, allocations: 0 / 0.6226 GB, free: 8.707 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.009009, allocations: 0 / 0.6226 GB, free: 8.707 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.293e-06/0.00901, allocations: 0 / 0.6226 GB, free: 8.707 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001588/0.009169, allocations: 195.4 kB / 0.6228 GB, free: 8.5 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 1.05e-05/0.009179, allocations: 12 kB / 0.6228 GB, free: 8.488 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.545e-05/0.009195, allocations: 192 / 0.6228 GB, free: 8.488 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.699e-05/0.009242, allocations: 7.984 kB / 0.6228 GB, free: 8.48 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.604e-05/0.009278, allocations: 11.92 kB / 0.6229 GB, free: 8.469 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.295e-05/0.009291, allocations: 4 kB / 0.6229 GB, free: 8.465 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 3.85e-05/0.009329, allocations: 95.14 kB / 0.6229 GB, free: 8.371 MB / 0.5886 GB Notification: Performance of sort global known variables: time 7e-08/0.009329, allocations: 0 / 0.6229 GB, free: 8.371 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.0001767/0.009506, allocations: 16 kB / 0.623 GB, free: 8.355 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.0003978/0.009904, allocations: 0.7358 MB / 0.6237 GB, free: 7.594 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.0001627/0.01007, allocations: 63.88 kB / 0.6237 GB, free: 7.531 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 2.285e-06/0.01007, allocations: 4 kB / 0.6237 GB, free: 7.527 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 5.952e-05/0.01013, allocations: 31.92 kB / 0.6238 GB, free: 7.496 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002127/0.01034, allocations: 8.234 kB / 0.6238 GB, free: 7.488 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001324/0.01166, allocations: 1.416 MB / 0.6252 GB, free: 5.965 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.245e-05/0.01172, allocations: 67.33 kB / 0.6252 GB, free: 5.879 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 4.211e-05/0.01176, allocations: 8 kB / 0.6252 GB, free: 5.871 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.25e-05/0.0118, allocations: 16.5 kB / 0.6253 GB, free: 5.855 MB / 0.5886 GB Notification: Performance of SimCode: time 9.41e-07/0.0118, allocations: 0 / 0.6253 GB, free: 5.855 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02024/0.03205, allocations: 2.521 MB / 0.6277 GB, free: 3.488 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.934/6.966, allocations: 8.25 kB / 0.6277 GB, free: 3.484 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 & 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: 9.85271432530135] Failed to read output from testmodel.py, exit status != 0: 7.050357021391392 7.060064933 7.053336544 Calling exit ...