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.0007445/0.0007445, 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.0007889/0.0007889, allocations: 165.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.856/0.856, allocations: 177.1 MB / 202.8 MB, free: 5.758 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.7013/0.7013, 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 3.156e-06/3.156e-06, allocations: 0 / 0.6181 GB, free: 13.73 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.975e-05/2.29e-05, allocations: 12.38 kB / 0.6181 GB, free: 13.73 MB / 0.5886 GB Notification: Performance of NFInst.instantiate(IDEAS.Controls.OBC.CDL.Discrete.Validation.UnitDelay): time 0.001358/0.001381, allocations: 0.6416 MB / 0.6187 GB, free: 13.09 MB / 0.5886 GB Notification: Performance of NFInst.instExpressions: time 0.0009517/0.002332, allocations: 1.096 MB / 0.6198 GB, free: 11.98 MB / 0.5886 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.332e-05/0.002376, allocations: 3.938 kB / 0.6198 GB, free: 11.97 MB / 0.5886 GB Notification: Performance of NFTyping.typeComponents: time 2.866e-05/0.002404, allocations: 3.938 kB / 0.6198 GB, free: 11.97 MB / 0.5886 GB Notification: Performance of NFTyping.typeBindings: time 7.898e-05/0.002483, allocations: 11.92 kB / 0.6198 GB, free: 11.96 MB / 0.5886 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002538/0.002737, allocations: 47.77 kB / 0.6198 GB, free: 11.91 MB / 0.5886 GB Notification: Performance of NFFlatten.flatten: time 0.0001952/0.002932, allocations: 43.84 kB / 0.6199 GB, free: 11.87 MB / 0.5886 GB Notification: Performance of NFFlatten.resolveConnections: time 8.609e-05/0.003018, allocations: 8 kB / 0.6199 GB, free: 11.86 MB / 0.5886 GB Notification: Performance of NFEvalConstants.evaluate: time 7.052e-05/0.003089, allocations: 31.91 kB / 0.6199 GB, free: 11.83 MB / 0.5886 GB Notification: Performance of NFSimplifyModel.simplify: time 3.689e-05/0.003126, allocations: 15.97 kB / 0.6199 GB, free: 11.81 MB / 0.5886 GB Notification: Performance of NFPackage.collectConstants: time 1.383e-05/0.00314, allocations: 4 kB / 0.6199 GB, free: 11.81 MB / 0.5886 GB Notification: Performance of NFFlatten.collectFunctions: time 5.864e-05/0.003198, allocations: 23.98 kB / 0.62 GB, free: 11.79 MB / 0.5886 GB Notification: Performance of NFScalarize.scalarize: time 1.897e-05/0.003217, allocations: 11.98 kB / 0.62 GB, free: 11.77 MB / 0.5886 GB Notification: Performance of NFVerifyModel.verify: time 2.632e-05/0.003244, allocations: 15.92 kB / 0.62 GB, free: 11.76 MB / 0.5886 GB Notification: Performance of NFConvertDAE.convert: time 0.000117/0.00336, allocations: 67.77 kB / 0.6201 GB, free: 11.69 MB / 0.5886 GB Notification: Performance of FrontEnd - DAE generated: time 1.683e-06/0.003362, allocations: 0 / 0.6201 GB, free: 11.69 MB / 0.5886 GB Notification: Performance of FrontEnd: time 1.062e-06/0.003363, allocations: 0 / 0.6201 GB, free: 11.69 MB / 0.5886 GB Notification: Performance of Transformations before backend: time 3.727e-06/0.003367, allocations: 7.938 kB / 0.6201 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0003753/0.003742, allocations: 278.2 kB / 0.6203 GB, free: 11.38 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 4.21e-05/0.003784, allocations: 8.031 kB / 0.6203 GB, free: 11.37 MB / 0.5886 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.886e-05/0.003813, allocations: 38.73 kB / 0.6204 GB, free: 11.32 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.061e-05/0.003874, allocations: 12.89 kB / 0.6204 GB, free: 11.31 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.716e-05/0.003941, allocations: 105.7 kB / 0.6205 GB, free: 11.18 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.12e-05/0.003952, allocations: 8.375 kB / 0.6205 GB, free: 11.18 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.474e-05/0.003967, allocations: 4.375 kB / 0.6205 GB, free: 11.17 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001254/0.004092, allocations: 66.2 kB / 0.6206 GB, free: 11.1 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.713e-06/0.004099, allocations: 192 / 0.6206 GB, free: 11.1 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.957e-06/0.004108, allocations: 384 / 0.6206 GB, free: 11.1 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.612e-06/0.004115, allocations: 8.109 kB / 0.6206 GB, free: 11.09 MB / 0.5886 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.42e-05/0.004209, allocations: 47.89 kB / 0.6206 GB, free: 11.05 MB / 0.5886 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003324/0.004541, allocations: 244 kB / 0.6208 GB, free: 10.77 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 9.563e-05/0.004637, allocations: 50.55 kB / 0.6209 GB, free: 10.71 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.75e-05/0.004684, allocations: 28.95 kB / 0.6209 GB, free: 10.68 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 1.77e-05/0.004702, allocations: 3.938 kB / 0.6209 GB, free: 10.67 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001273/0.004829, allocations: 75.31 kB / 0.621 GB, free: 10.59 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=6): time 1.212e-06/0.004831, allocations: 4 kB / 0.621 GB, free: 10.58 MB / 0.5886 GB Notification: Performance of matching and sorting (n=6): time 0.0002334/0.005064, allocations: 113.6 kB / 0.6211 GB, free: 10.46 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.047e-05/0.005094, allocations: 51.41 kB / 0.6212 GB, free: 10.4 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.792e-05/0.005152, allocations: 113.8 kB / 0.6213 GB, free: 10.28 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 1.114e-05/0.005163, allocations: 29.7 kB / 0.6213 GB, free: 10.25 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 3.315e-05/0.005197, allocations: 88.12 kB / 0.6214 GB, free: 10.16 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 1.57e-05/0.005212, allocations: 19.84 kB / 0.6214 GB, free: 10.14 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.08e-05/0.005243, allocations: 25.7 kB / 0.6214 GB, free: 10.11 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 6.925e-05/0.005312, allocations: 318.8 kB / 0.6217 GB, free: 9.785 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.792e-05/0.00536, allocations: 31.84 kB / 0.6218 GB, free: 9.754 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.96e-05/0.00542, allocations: 56.28 kB / 0.6218 GB, free: 9.684 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001065/0.005526, allocations: 96.12 kB / 0.6219 GB, free: 9.574 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.316e-06/0.00553, allocations: 4 kB / 0.6219 GB, free: 9.57 MB / 0.5886 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001367/0.005666, allocations: 113.4 kB / 0.622 GB, free: 9.453 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 1.714e-05/0.005684, allocations: 8 kB / 0.622 GB, free: 9.445 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.428e-06/0.005688, allocations: 0 / 0.622 GB, free: 9.445 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.68e-05/0.005705, allocations: 0 / 0.622 GB, free: 9.445 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.998e-05/0.005795, allocations: 16.14 kB / 0.622 GB, free: 9.43 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.015e-06/0.005803, allocations: 8 kB / 0.622 GB, free: 9.422 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.736e-05/0.00584, allocations: 11.98 kB / 0.6221 GB, free: 9.41 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.955e-06/0.005848, allocations: 4.25 kB / 0.6221 GB, free: 9.406 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 5.83e-05/0.005906, allocations: 118.8 kB / 0.6222 GB, free: 9.281 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.071e-05/0.005917, allocations: 7.891 kB / 0.6222 GB, free: 9.273 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001624/0.006079, allocations: 106.1 kB / 0.6223 GB, free: 9.16 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.753e-06/0.006081, allocations: 0 / 0.6223 GB, free: 9.16 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.506e-06/0.006085, allocations: 0 / 0.6223 GB, free: 9.16 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.846e-06/0.006088, allocations: 4 kB / 0.6223 GB, free: 9.156 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002494/0.006337, allocations: 325.6 kB / 0.6226 GB, free: 8.789 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.81e-07/0.006338, allocations: 0 / 0.6226 GB, free: 8.789 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.723e-05/0.006365, allocations: 11.98 kB / 0.6226 GB, free: 8.777 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.903e-06/0.006367, allocations: 0 / 0.6226 GB, free: 8.777 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.342e-06/0.006373, allocations: 0 / 0.6226 GB, free: 8.777 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.81e-07/0.006374, allocations: 0 / 0.6226 GB, free: 8.777 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.61e-07/0.006375, allocations: 0 / 0.6226 GB, free: 8.777 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002109/0.006586, allocations: 203.3 kB / 0.6228 GB, free: 8.562 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 5.932e-06/0.006592, allocations: 3.938 kB / 0.6228 GB, free: 8.559 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.907e-05/0.006611, allocations: 8 kB / 0.6228 GB, free: 8.551 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.647e-05/0.006647, allocations: 3.984 kB / 0.6228 GB, free: 8.547 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.117e-05/0.006678, allocations: 4 kB / 0.6228 GB, free: 8.543 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.719e-06/0.006683, allocations: 0 / 0.6228 GB, free: 8.543 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 3.21e-05/0.006715, allocations: 91.27 kB / 0.6229 GB, free: 8.453 MB / 0.5886 GB Notification: Performance of sort global known variables: time 4e-08/0.006715, allocations: 0 / 0.6229 GB, free: 8.453 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.0001535/0.006869, allocations: 12 kB / 0.6229 GB, free: 8.441 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.0003236/0.007192, allocations: 0.7281 MB / 0.6236 GB, free: 7.688 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.0001418/0.007334, allocations: 68.14 kB / 0.6237 GB, free: 7.621 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 1.482e-06/0.007336, allocations: 0 / 0.6237 GB, free: 7.621 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 5.314e-05/0.007389, allocations: 39.84 kB / 0.6237 GB, free: 7.582 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001676/0.007556, allocations: 12.31 kB / 0.6237 GB, free: 7.57 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00105/0.008606, allocations: 1.407 MB / 0.6251 GB, free: 6.059 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.042e-05/0.008647, allocations: 63.34 kB / 0.6252 GB, free: 5.977 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 2.273e-05/0.008669, allocations: 11.98 kB / 0.6252 GB, free: 5.965 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.003e-05/0.008699, allocations: 16.5 kB / 0.6252 GB, free: 5.949 MB / 0.5886 GB Notification: Performance of SimCode: time 4.51e-07/0.0087, allocations: 0 / 0.6252 GB, free: 5.949 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01307/0.02177, allocations: 2.476 MB / 0.6276 GB, free: 3.633 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.771/6.793, allocations: 7.578 kB / 0.6276 GB, free: 3.629 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Controls_OBC_CDL_Discrete_Validation_UnitDelay_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 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.34552294574678] Failed to read output from testmodel.py, exit status != 0: 6.870114684104919 6.878272168 6.8731530339999996 Calling exit ...