Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_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.0008341/0.0008341, 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.0009196/0.0009196, 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.9039/0.9039, allocations: 177.1 MB / 202.8 MB, free: 5.742 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.7486/0.7486, allocations: 154.5 MB / 413.7 MB, free: 0.8359 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.UnitDelay,fileNamePrefix="IDEAS_dev_IDEAS_Controls_OBC_CDL_Discrete_Validation_UnitDelay",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Controls.OBC.CDL.Discrete.Validation.UnitDelay,fileNamePrefix="IDEAS_dev_IDEAS_Controls_OBC_CDL_Discrete_Validation_UnitDelay",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.415e-06/2.415e-06, allocations: 0 / 0.618 GB, free: 13.78 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.774e-05/2.016e-05, allocations: 6.812 kB / 0.618 GB, free: 13.77 MB / 0.5886 GB Notification: Performance of NFInst.instantiate(IDEAS.Controls.OBC.CDL.Discrete.Validation.UnitDelay): time 0.001428/0.001448, allocations: 0.6451 MB / 0.6187 GB, free: 13.12 MB / 0.5886 GB Notification: Performance of NFInst.instExpressions: time 0.001078/0.002526, allocations: 1.089 MB / 0.6197 GB, free: 12.02 MB / 0.5886 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.017e-05/0.002576, allocations: 0 / 0.6197 GB, free: 12.02 MB / 0.5886 GB Notification: Performance of NFTyping.typeComponents: time 2.919e-05/0.002605, allocations: 0 / 0.6197 GB, free: 12.02 MB / 0.5886 GB Notification: Performance of NFTyping.typeBindings: time 6.079e-05/0.002666, allocations: 19.8 kB / 0.6197 GB, free: 12 MB / 0.5886 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002908/0.002957, allocations: 43.77 kB / 0.6198 GB, free: 11.96 MB / 0.5886 GB Notification: Performance of NFFlatten.flatten: time 0.0001028/0.003059, allocations: 43.86 kB / 0.6198 GB, free: 11.92 MB / 0.5886 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000114/0.003173, allocations: 15.97 kB / 0.6198 GB, free: 11.9 MB / 0.5886 GB Notification: Performance of NFEvalConstants.evaluate: time 8.169e-05/0.003255, allocations: 27.92 kB / 0.6199 GB, free: 11.88 MB / 0.5886 GB Notification: Performance of NFSimplifyModel.simplify: time 4.794e-05/0.003303, allocations: 11.98 kB / 0.6199 GB, free: 11.86 MB / 0.5886 GB Notification: Performance of NFPackage.collectConstants: time 1.646e-05/0.00332, allocations: 8 kB / 0.6199 GB, free: 11.86 MB / 0.5886 GB Notification: Performance of NFFlatten.collectFunctions: time 7.222e-05/0.003392, allocations: 19.97 kB / 0.6199 GB, free: 11.84 MB / 0.5886 GB Notification: Performance of NFScalarize.scalarize: time 2.579e-05/0.003418, allocations: 15.92 kB / 0.6199 GB, free: 11.82 MB / 0.5886 GB Notification: Performance of NFVerifyModel.verify: time 3.367e-05/0.003451, allocations: 8 kB / 0.6199 GB, free: 11.81 MB / 0.5886 GB Notification: Performance of NFConvertDAE.convert: time 0.0001534/0.003605, allocations: 67.77 kB / 0.62 GB, free: 11.75 MB / 0.5886 GB Notification: Performance of FrontEnd - DAE generated: time 2.745e-06/0.003607, allocations: 0 / 0.62 GB, free: 11.75 MB / 0.5886 GB Notification: Performance of FrontEnd: time 1.743e-06/0.003609, allocations: 0 / 0.62 GB, free: 11.75 MB / 0.5886 GB Notification: Performance of Transformations before backend: time 5.801e-06/0.003615, allocations: 4 kB / 0.62 GB, free: 11.74 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.0004/0.004015, allocations: 282.2 kB / 0.6203 GB, free: 11.43 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 4.06e-05/0.004056, allocations: 13.47 kB / 0.6203 GB, free: 11.42 MB / 0.5886 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.183e-05/0.004087, allocations: 38.75 kB / 0.6203 GB, free: 11.38 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.053e-05/0.004148, allocations: 4.891 kB / 0.6203 GB, free: 11.37 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.199e-05/0.00422, allocations: 121.6 kB / 0.6204 GB, free: 11.23 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.043e-05/0.00423, allocations: 4.375 kB / 0.6204 GB, free: 11.22 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.017e-05/0.00424, allocations: 4.375 kB / 0.6204 GB, free: 11.22 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001331/0.004374, allocations: 62.22 kB / 0.6205 GB, free: 11.15 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.223e-06/0.004381, allocations: 192 / 0.6205 GB, free: 11.15 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.556e-06/0.004389, allocations: 384 / 0.6205 GB, free: 11.15 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.571e-06/0.004395, allocations: 4.125 kB / 0.6205 GB, free: 11.15 MB / 0.5886 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.581e-05/0.004491, allocations: 47.95 kB / 0.6206 GB, free: 11.1 MB / 0.5886 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003446/0.004835, allocations: 251.9 kB / 0.6208 GB, free: 10.81 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 9.796e-05/0.004933, allocations: 46.55 kB / 0.6208 GB, free: 10.76 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.63e-05/0.00499, allocations: 28.97 kB / 0.6209 GB, free: 10.73 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 2.025e-05/0.00501, allocations: 3.938 kB / 0.6209 GB, free: 10.72 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001242/0.005134, allocations: 75.38 kB / 0.6209 GB, free: 10.64 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=6): time 1.002e-06/0.005135, allocations: 0 / 0.6209 GB, free: 10.64 MB / 0.5886 GB Notification: Performance of matching and sorting (n=6): time 0.0002689/0.005404, allocations: 121.6 kB / 0.6211 GB, free: 10.51 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.974e-05/0.005444, allocations: 51.41 kB / 0.6211 GB, free: 10.45 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.263e-05/0.005516, allocations: 109.8 kB / 0.6212 GB, free: 10.33 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 1.652e-05/0.005533, allocations: 33.7 kB / 0.6212 GB, free: 10.29 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 4.405e-05/0.005577, allocations: 80.22 kB / 0.6213 GB, free: 10.21 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 2.139e-05/0.005598, allocations: 27.83 kB / 0.6213 GB, free: 10.18 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.566e-05/0.005634, allocations: 25.7 kB / 0.6214 GB, free: 10.15 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 9.088e-05/0.005725, allocations: 322.8 kB / 0.6217 GB, free: 9.828 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.407e-05/0.005779, allocations: 23.97 kB / 0.6217 GB, free: 9.805 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.183e-05/0.005851, allocations: 68.14 kB / 0.6218 GB, free: 9.723 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001388/0.00599, allocations: 84.2 kB / 0.6218 GB, free: 9.625 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.316e-06/0.005993, allocations: 4 kB / 0.6219 GB, free: 9.621 MB / 0.5886 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001607/0.006154, allocations: 113.5 kB / 0.622 GB, free: 9.504 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 1.517e-05/0.006169, allocations: 8 kB / 0.622 GB, free: 9.496 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.673e-06/0.006175, allocations: 3.938 kB / 0.622 GB, free: 9.492 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.328e-05/0.006189, allocations: 0 / 0.622 GB, free: 9.492 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.729e-05/0.006266, allocations: 20.14 kB / 0.622 GB, free: 9.473 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.995e-06/0.006274, allocations: 4 kB / 0.622 GB, free: 9.469 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.56e-05/0.00631, allocations: 7.984 kB / 0.622 GB, free: 9.461 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.558e-06/0.006319, allocations: 4 kB / 0.622 GB, free: 9.457 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.926e-05/0.006398, allocations: 114.8 kB / 0.6221 GB, free: 9.336 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.076e-05/0.006409, allocations: 8.141 kB / 0.6221 GB, free: 9.328 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001813/0.00659, allocations: 110 kB / 0.6222 GB, free: 9.211 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.705e-06/0.006593, allocations: 0 / 0.6222 GB, free: 9.211 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.61e-06/0.006599, allocations: 7.984 kB / 0.6222 GB, free: 9.203 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.368e-06/0.006603, allocations: 0 / 0.6222 GB, free: 9.203 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003002/0.006903, allocations: 317.5 kB / 0.6225 GB, free: 8.844 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.006905, allocations: 0 / 0.6225 GB, free: 8.844 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.138e-05/0.006936, allocations: 11.98 kB / 0.6225 GB, free: 8.832 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.226e-06/0.00694, allocations: 0 / 0.6225 GB, free: 8.832 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.083e-06/0.006947, allocations: 0 / 0.6225 GB, free: 8.832 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.082e-06/0.006948, allocations: 0 / 0.6225 GB, free: 8.832 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.11e-07/0.006949, allocations: 0 / 0.6225 GB, free: 8.832 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001525/0.007101, allocations: 203.4 kB / 0.6227 GB, free: 8.617 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 7.554e-06/0.007109, allocations: 3.938 kB / 0.6227 GB, free: 8.613 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.496e-05/0.007123, allocations: 4 kB / 0.6228 GB, free: 8.609 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.848e-05/0.007162, allocations: 3.984 kB / 0.6228 GB, free: 8.605 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.689e-05/0.007199, allocations: 15.92 kB / 0.6228 GB, free: 8.59 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.468e-06/0.007203, allocations: 0 / 0.6228 GB, free: 8.59 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 3.004e-05/0.007233, allocations: 87.58 kB / 0.6229 GB, free: 8.504 MB / 0.5886 GB Notification: Performance of sort global known variables: time 5e-08/0.007233, allocations: 0 / 0.6229 GB, free: 8.504 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.0001716/0.007405, allocations: 20 kB / 0.6229 GB, free: 8.484 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.0003667/0.007772, allocations: 0.7281 MB / 0.6236 GB, free: 7.73 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.0001539/0.007926, allocations: 67.89 kB / 0.6236 GB, free: 7.664 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 1.232e-06/0.007927, allocations: 3.938 kB / 0.6237 GB, free: 7.66 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 5.374e-05/0.007981, allocations: 32.48 kB / 0.6237 GB, free: 7.629 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001885/0.008169, allocations: 16.09 kB / 0.6237 GB, free: 7.613 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009879/0.009157, allocations: 1.41 MB / 0.6251 GB, free: 6.098 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.367e-05/0.009201, allocations: 71.33 kB / 0.6251 GB, free: 6.008 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 2.335e-05/0.009224, allocations: 4 kB / 0.6251 GB, free: 6.004 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.268e-05/0.009257, allocations: 16.5 kB / 0.6252 GB, free: 5.988 MB / 0.5886 GB Notification: Performance of SimCode: time 5.41e-07/0.009257, allocations: 0 / 0.6252 GB, free: 5.988 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01428/0.02353, allocations: 2.467 MB / 0.6276 GB, free: 3.676 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.861/6.885, allocations: 8.984 kB / 0.6276 GB, free: 3.668 MB / 0.5886 GB " [Timeout remaining time 653] (rm -f IDEAS_dev_IDEAS.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe ; mkfifo IDEAS_dev_IDEAS.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe >> ../files/IDEAS_dev_IDEAS.Controls.OBC.CDL.Discrete.Validation.UnitDelay.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_dev_IDEAS_Controls_OBC_CDL_Discrete_Validation_UnitDelay_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 IDEAS_dev_IDEAS_Controls_OBC_CDL_Discrete_Validation_UnitDelay.fmu > IDEAS_dev_IDEAS.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 9.655914642848074] Failed to read output from testmodel.py, exit status != 0: 6.969567849300802 6.984000293 6.977207573 Calling exit ...