Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_IDEAS.Controls.OBC.CDL.Discrete.Validation.Sampler.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.0007577/0.0007577, 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.000814/0.000814, allocations: 162 kB / 22.43 MB, free: 2.141 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.8777/0.8777, allocations: 177.2 MB / 202.8 MB, free: 5.773 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.6999/0.6999, allocations: 155 MB / 414.2 MB, free: 480 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.Sampler,fileNamePrefix="IDEAS_dev_IDEAS_Controls_OBC_CDL_Discrete_Validation_Sampler",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Controls.OBC.CDL.Discrete.Validation.Sampler,fileNamePrefix="IDEAS_dev_IDEAS_Controls_OBC_CDL_Discrete_Validation_Sampler",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.001356/0.001356, allocations: 69.95 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.4747/0.4761, allocations: 102 MB / 0.7182 GB, free: 13.4 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(IDEAS.Controls.OBC.CDL.Discrete.Validation.Sampler): time 0.001426/0.4775, allocations: 0.6524 MB / 0.7189 GB, free: 12.75 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0009931/0.4785, allocations: 1.082 MB / 0.7199 GB, free: 11.66 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.375e-05/0.4785, allocations: 0 / 0.7199 GB, free: 11.66 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 2.826e-05/0.4786, allocations: 3.938 kB / 0.7199 GB, free: 11.65 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 6.739e-05/0.4786, allocations: 7.922 kB / 0.7199 GB, free: 11.64 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002852/0.4789, allocations: 44.39 kB / 0.72 GB, free: 11.6 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 8.826e-05/0.479, allocations: 47.8 kB / 0.72 GB, free: 11.55 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 9.461e-05/0.4791, allocations: 15.97 kB / 0.72 GB, free: 11.54 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 7.802e-05/0.4792, allocations: 23.98 kB / 0.7201 GB, free: 11.52 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 4.738e-05/0.4792, allocations: 23.91 kB / 0.7201 GB, free: 11.49 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 1.333e-05/0.4792, allocations: 4 kB / 0.7201 GB, free: 11.49 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 5.963e-05/0.4793, allocations: 19.94 kB / 0.7201 GB, free: 11.47 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 2.346e-05/0.4793, allocations: 15.91 kB / 0.7201 GB, free: 11.45 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 2.815e-05/0.4793, allocations: 15.92 kB / 0.7201 GB, free: 11.44 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.0001408/0.4795, allocations: 71.72 kB / 0.7202 GB, free: 11.37 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 3.917e-06/0.4795, allocations: 0 / 0.7202 GB, free: 11.37 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.883e-06/0.4795, allocations: 0 / 0.7202 GB, free: 11.37 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 6.983e-06/0.4795, allocations: 0 / 0.7202 GB, free: 11.37 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0004732/0.48, allocations: 306.1 kB / 0.7205 GB, free: 11.04 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 3.883e-05/0.48, allocations: 9.469 kB / 0.7205 GB, free: 11.03 MB / 0.6042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.61e-05/0.48, allocations: 30.75 kB / 0.7205 GB, free: 10.99 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.217e-05/0.4801, allocations: 4.938 kB / 0.7205 GB, free: 10.98 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.86e-05/0.4802, allocations: 118.4 kB / 0.7206 GB, free: 10.84 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.442e-05/0.4802, allocations: 4.359 kB / 0.7206 GB, free: 10.84 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.42e-05/0.4802, allocations: 4.375 kB / 0.7207 GB, free: 10.84 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001823/0.4804, allocations: 58.23 kB / 0.7207 GB, free: 10.77 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.164e-05/0.4804, allocations: 3.938 kB / 0.7207 GB, free: 10.77 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.19e-05/0.4804, allocations: 7.938 kB / 0.7207 GB, free: 10.76 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.514e-06/0.4804, allocations: 7.938 kB / 0.7207 GB, free: 10.75 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001078/0.4805, allocations: 39.95 kB / 0.7208 GB, free: 10.71 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004224/0.481, allocations: 243.9 kB / 0.721 GB, free: 10.43 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001337/0.4811, allocations: 50.55 kB / 0.721 GB, free: 10.38 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.492e-05/0.4812, allocations: 28.95 kB / 0.7211 GB, free: 10.34 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 2.703e-05/0.4812, allocations: 11.94 kB / 0.7211 GB, free: 10.33 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002002/0.4814, allocations: 71.38 kB / 0.7212 GB, free: 10.25 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=6): time 2.124e-06/0.4814, allocations: 0 / 0.7212 GB, free: 10.25 MB / 0.6042 GB Notification: Performance of matching and sorting (n=6): time 0.0003112/0.4817, allocations: 117.6 kB / 0.7213 GB, free: 10.13 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.563e-05/0.4817, allocations: 59.39 kB / 0.7213 GB, free: 10.06 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.795e-05/0.4818, allocations: 105.9 kB / 0.7214 GB, free: 9.945 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 1.75e-05/0.4818, allocations: 25.7 kB / 0.7214 GB, free: 9.914 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 5.187e-05/0.4819, allocations: 92.12 kB / 0.7215 GB, free: 9.82 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 2.762e-05/0.4819, allocations: 20.97 kB / 0.7216 GB, free: 9.801 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.833e-05/0.482, allocations: 25.72 kB / 0.7216 GB, free: 9.77 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 0.0001017/0.4821, allocations: 318.8 kB / 0.7219 GB, free: 9.449 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.322e-05/0.4821, allocations: 19.98 kB / 0.7219 GB, free: 9.43 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.047e-05/0.4822, allocations: 59.39 kB / 0.722 GB, free: 9.359 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001266/0.4823, allocations: 79.33 kB / 0.722 GB, free: 9.27 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.925e-06/0.4823, allocations: 4 kB / 0.722 GB, free: 9.266 MB / 0.6042 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001621/0.4825, allocations: 101.5 kB / 0.7221 GB, free: 9.16 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.665e-05/0.4825, allocations: 4 kB / 0.7221 GB, free: 9.156 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.463e-06/0.4825, allocations: 4.047 kB / 0.7221 GB, free: 9.152 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.758e-05/0.4825, allocations: 3.984 kB / 0.7221 GB, free: 9.148 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.362e-05/0.4826, allocations: 20.08 kB / 0.7222 GB, free: 9.129 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.376e-06/0.4826, allocations: 3.938 kB / 0.7222 GB, free: 9.125 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.406e-05/0.4827, allocations: 11.92 kB / 0.7222 GB, free: 9.113 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.127e-05/0.4827, allocations: 8 kB / 0.7222 GB, free: 9.105 MB / 0.6042 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 5 (sampler1.firstTrigger,$PRE.sampler1.firstTrigger,sampler1.sampleTrigger,$whenCondition1,sampler1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 8 * 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 8.686e-05/0.4828, allocations: 116.1 kB / 0.7223 GB, free: 8.984 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.324e-06/0.4828, allocations: 3.953 kB / 0.7223 GB, free: 8.98 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002008/0.483, allocations: 106.1 kB / 0.7224 GB, free: 8.871 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.617e-06/0.483, allocations: 0 / 0.7224 GB, free: 8.871 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.092e-06/0.483, allocations: 8.562 kB / 0.7224 GB, free: 8.863 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.719e-06/0.483, allocations: 3.938 kB / 0.7224 GB, free: 8.859 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003333/0.4833, allocations: 317.7 kB / 0.7227 GB, free: 8.5 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.354e-06/0.4833, allocations: 0 / 0.7227 GB, free: 8.5 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.576e-05/0.4833, allocations: 11.98 kB / 0.7227 GB, free: 8.488 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.374e-06/0.4833, allocations: 0 / 0.7227 GB, free: 8.488 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.838e-06/0.4834, allocations: 4 kB / 0.7227 GB, free: 8.484 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.965e-06/0.4834, allocations: 4 kB / 0.7227 GB, free: 8.48 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.4834, allocations: 4 kB / 0.7227 GB, free: 8.477 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001913/0.4836, allocations: 199.3 kB / 0.7229 GB, free: 8.266 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 9.929e-06/0.4836, allocations: 7.938 kB / 0.7229 GB, free: 8.258 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.244e-05/0.4836, allocations: 0 / 0.7229 GB, free: 8.258 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.848e-05/0.4836, allocations: 7.984 kB / 0.7229 GB, free: 8.25 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.63e-05/0.4837, allocations: 7.938 kB / 0.723 GB, free: 8.242 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.421e-05/0.4837, allocations: 3.984 kB / 0.723 GB, free: 8.238 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 5.979e-05/0.4837, allocations: 87.28 kB / 0.723 GB, free: 8.152 MB / 0.6042 GB Notification: Performance of sort global known variables: time 8e-08/0.4837, allocations: 0 / 0.723 GB, free: 8.152 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0001736/0.4839, allocations: 15.94 kB / 0.7231 GB, free: 8.137 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 (sampler1.sampleTrigger,$whenCondition1,sampler1.y,sampler1.firstTrigger) * Number of discrete states: 0 () * 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.0005091/0.4844, allocations: 0.728 MB / 0.7238 GB, free: 7.383 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0001715/0.4846, allocations: 63.88 kB / 0.7238 GB, free: 7.32 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.4846, allocations: 0 / 0.7238 GB, free: 7.32 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 6.478e-05/0.4847, allocations: 36.17 kB / 0.7239 GB, free: 7.285 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002247/0.4849, allocations: 12.42 kB / 0.7239 GB, free: 7.273 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001131/0.486, allocations: 1.371 MB / 0.7252 GB, free: 5.805 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.07e-05/0.4861, allocations: 71.33 kB / 0.7253 GB, free: 5.715 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 2.954e-05/0.4861, allocations: 8 kB / 0.7253 GB, free: 5.707 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.182e-05/0.4861, allocations: 16.44 kB / 0.7253 GB, free: 5.691 MB / 0.6042 GB Notification: Performance of SimCode: time 7.01e-07/0.4861, allocations: 4 kB / 0.7253 GB, free: 5.688 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01759/0.5037, allocations: 2.441 MB / 0.7277 GB, free: 3.379 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.554/7.058, allocations: 8 kB / 0.7277 GB, free: 3.371 MB / 0.6042 GB " [Timeout remaining time 653] (rm -f IDEAS_dev_IDEAS.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe ; mkfifo IDEAS_dev_IDEAS.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe >> ../files/IDEAS_dev_IDEAS.Controls.OBC.CDL.Discrete.Validation.Sampler.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_dev_IDEAS_Controls_OBC_CDL_Discrete_Validation_Sampler_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 IDEAS_dev_IDEAS_Controls_OBC_CDL_Discrete_Validation_Sampler.fmu > IDEAS_dev_IDEAS.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 9.672349842032418] Failed to read output from testmodel.py, exit status != 0: 7.1360055229160935 7.147132317 6.665770551 Calling exit ...