Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package Buildings with version 9.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler") translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo): time 2.005/2.005, allocations: 306.1 MB / 321.4 MB, free: 10.76 MB / 250.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00132/0.00132, allocations: 171.5 kB / 393.1 MB, free: 4.105 MB / 314.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.639/1.639, allocations: 225.7 MB / 0.6743 GB, free: 12.63 MB / 0.4948 GB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007576/0.0007574, allocations: 94.88 kB / 0.7935 GB, free: 40.06 MB / 0.5417 GB Notification: Performance of FrontEnd - loaded program: time 0.0004115/0.0004115, allocations: 13.66 kB / 0.9224 GB, free: 8.66 MB / 0.6355 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8022/0.8027, allocations: 121.3 MB / 1.041 GB, free: 58.18 MB / 0.698 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler): time 0.001338/0.8041, allocations: 396.9 kB / 1.041 GB, free: 57.99 MB / 0.698 GB Notification: Performance of NFInst.instExpressions: time 0.001751/0.8058, allocations: 1.106 MB / 1.042 GB, free: 57.13 MB / 0.698 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.023e-05/0.8059, allocations: 1.219 kB / 1.042 GB, free: 57.13 MB / 0.698 GB Notification: Performance of NFTyping.typeComponents: time 1.981e-05/0.8059, allocations: 5.719 kB / 1.042 GB, free: 57.13 MB / 0.698 GB Notification: Performance of NFTyping.typeBindings: time 7.497e-05/0.806, allocations: 2.969 kB / 1.042 GB, free: 57.13 MB / 0.698 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002898/0.8063, allocations: 38.81 kB / 1.042 GB, free: 57.11 MB / 0.698 GB Notification: Performance of NFFlatten.flatten: time 8.903e-05/0.8064, allocations: 41.09 kB / 1.042 GB, free: 57.09 MB / 0.698 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001151/0.8065, allocations: 7.062 kB / 1.042 GB, free: 57.09 MB / 0.698 GB Notification: Performance of NFEvalConstants.evaluate: time 8.356e-05/0.8066, allocations: 23.92 kB / 1.042 GB, free: 57.08 MB / 0.698 GB Notification: Performance of NFSimplifyModel.simplify: time 6.41e-05/0.8067, allocations: 23.39 kB / 1.042 GB, free: 57.07 MB / 0.698 GB Notification: Performance of NFPackage.collectConstants: time 1.333e-05/0.8067, allocations: 3.031 kB / 1.042 GB, free: 57.07 MB / 0.698 GB Notification: Performance of NFFlatten.collectFunctions: time 7.041e-05/0.8068, allocations: 17.44 kB / 1.042 GB, free: 57.06 MB / 0.698 GB Notification: Performance of NFScalarize.scalarize: time 2.209e-05/0.8068, allocations: 6.688 kB / 1.043 GB, free: 57.05 MB / 0.698 GB Notification: Performance of NFVerifyModel.verify: time 5.945e-05/0.8069, allocations: 42.59 kB / 1.043 GB, free: 57.02 MB / 0.698 GB Notification: Performance of NFConvertDAE.convert: time 0.0001536/0.807, allocations: 55.5 kB / 1.043 GB, free: 57 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 8.506e-06/0.8071, allocations: 1.375 kB / 1.043 GB, free: 57 MB / 0.698 GB Notification: Performance of FrontEnd: time 2.174e-06/0.8071, allocations: 0 / 1.043 GB, free: 57 MB / 0.698 GB Notification: Performance of Transformations before backend: time 5.02e-06/0.8071, allocations: 0 / 1.043 GB, free: 57 MB / 0.698 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.0005816/0.8077, allocations: 360.4 kB / 1.043 GB, free: 56.64 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.34e-05/0.8077, allocations: 9.312 kB / 1.043 GB, free: 56.64 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.926e-05/0.8078, allocations: 8 kB / 1.043 GB, free: 56.63 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.633e-05/0.8079, allocations: 170 kB / 1.043 GB, free: 56.43 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.509e-05/0.8079, allocations: 8.781 kB / 1.043 GB, free: 56.43 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.531e-05/0.8079, allocations: 4.375 kB / 1.043 GB, free: 56.43 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002049/0.8081, allocations: 69.52 kB / 1.043 GB, free: 56.39 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.047e-06/0.8081, allocations: 0.9062 kB / 1.043 GB, free: 56.39 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.439e-05/0.8082, allocations: 5.906 kB / 1.043 GB, free: 56.38 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.413e-06/0.8082, allocations: 0.5938 kB / 1.043 GB, free: 56.38 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001984/0.8084, allocations: 54.47 kB / 1.043 GB, free: 56.38 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004319/0.8088, allocations: 282.6 kB / 1.044 GB, free: 56.09 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001732/0.809, allocations: 69.23 kB / 1.044 GB, free: 56.05 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001021/0.8091, allocations: 36.41 kB / 1.044 GB, free: 56.03 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 2.675e-05/0.8091, allocations: 1.344 kB / 1.044 GB, free: 56.03 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002104/0.8094, allocations: 80.91 kB / 1.044 GB, free: 55.98 MB / 0.698 GB Notification: Performance of pre-optimization done (n=6): time 1.353e-06/0.8094, allocations: 0 / 1.044 GB, free: 55.98 MB / 0.698 GB Notification: Performance of matching and sorting (n=6): time 0.0004585/0.8098, allocations: 131.1 kB / 1.044 GB, free: 55.93 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.681e-05/0.8099, allocations: 57.97 kB / 1.044 GB, free: 55.86 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.36e-05/0.81, allocations: 106.1 kB / 1.044 GB, free: 55.76 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 1.526e-05/0.81, allocations: 26.52 kB / 1.044 GB, free: 55.73 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 5.126e-05/0.8101, allocations: 90.67 kB / 1.044 GB, free: 55.64 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 2.306e-05/0.8101, allocations: 16.58 kB / 1.044 GB, free: 55.63 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.22e-06/0.8101, allocations: 0 / 1.044 GB, free: 55.63 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 8.437e-05/0.8102, allocations: 316.9 kB / 1.044 GB, free: 55.32 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001384/0.8103, allocations: 29.78 kB / 1.044 GB, free: 55.31 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001168/0.8105, allocations: 55.91 kB / 1.044 GB, free: 55.27 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002059/0.8107, allocations: 94.56 kB / 1.045 GB, free: 55.21 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.8107, allocations: 0 / 1.045 GB, free: 55.21 MB / 0.698 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002646/0.811, allocations: 119.2 kB / 1.045 GB, free: 55.16 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.758e-05/0.811, allocations: 7 kB / 1.045 GB, free: 55.16 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.171e-06/0.811, allocations: 1.281 kB / 1.045 GB, free: 55.16 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.5e-05/0.811, allocations: 1.406 kB / 1.045 GB, free: 55.16 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001113/0.8111, allocations: 20.23 kB / 1.045 GB, free: 55.15 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.838e-06/0.8111, allocations: 5.984 kB / 1.045 GB, free: 55.15 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.962e-05/0.8112, allocations: 22.84 kB / 1.045 GB, free: 55.14 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.243e-05/0.8112, allocations: 2.438 kB / 1.045 GB, free: 55.14 MB / 0.698 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 ($PRE.sampler1.firstTrigger,sampler1.firstTrigger,$whenCondition1,sampler1.sampleTrigger,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.207e-05/0.8113, allocations: 118.7 kB / 1.045 GB, free: 55.02 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.136e-05/0.8114, allocations: 7 kB / 1.045 GB, free: 55.01 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002909/0.8116, allocations: 118.5 kB / 1.045 GB, free: 54.96 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.787e-06/0.8117, allocations: 6.703 kB / 1.045 GB, free: 54.95 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.278e-06/0.8117, allocations: 0 / 1.045 GB, free: 54.95 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.817e-06/0.8117, allocations: 1.969 kB / 1.045 GB, free: 54.95 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004022/0.8121, allocations: 366.3 kB / 1.045 GB, free: 54.62 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.734e-06/0.8121, allocations: 0 / 1.045 GB, free: 54.62 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.716e-05/0.8122, allocations: 16 kB / 1.045 GB, free: 54.62 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.07e-06/0.8122, allocations: 5.312 kB / 1.045 GB, free: 54.62 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.136e-05/0.8122, allocations: 0 / 1.045 GB, free: 54.62 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.294e-06/0.8122, allocations: 1.062 kB / 1.045 GB, free: 54.62 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.183e-06/0.8122, allocations: 0 / 1.045 GB, free: 54.62 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002752/0.8125, allocations: 206.6 kB / 1.046 GB, free: 54.46 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 3.189e-05/0.8125, allocations: 85.89 kB / 1.046 GB, free: 54.37 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.463e-05/0.8126, allocations: 0 / 1.046 GB, free: 54.37 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.546e-05/0.8127, allocations: 14.59 kB / 1.046 GB, free: 54.36 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.961e-05/0.8127, allocations: 9.953 kB / 1.046 GB, free: 54.36 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.28e-05/0.8127, allocations: 3.938 kB / 1.046 GB, free: 54.36 MB / 0.698 GB Notification: Performance of sorting global known variables: time 3.054e-05/0.8128, allocations: 80.7 kB / 1.046 GB, free: 54.28 MB / 0.698 GB Notification: Performance of sort global known variables: time 2.01e-07/0.8128, allocations: 0 / 1.046 GB, free: 54.28 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0002197/0.813, allocations: 19.39 kB / 1.046 GB, free: 54.27 MB / 0.698 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.0001522/0.8132, allocations: 115.9 kB / 1.046 GB, free: 54.18 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.0002599/0.8134, allocations: 71.91 kB / 1.046 GB, free: 54.16 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.8134, allocations: 0 / 1.046 GB, free: 54.16 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0001106/0.8136, allocations: 38.67 kB / 1.046 GB, free: 54.15 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002367/0.8138, allocations: 9.828 kB / 1.046 GB, free: 54.15 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002995/0.8141, allocations: 144 kB / 1.046 GB, free: 54.02 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001313/0.8143, allocations: 0.688 MB / 1.047 GB, free: 53.32 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 4.67e-05/0.8143, allocations: 3.516 kB / 1.047 GB, free: 53.32 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.439e-05/0.8143, allocations: 11.19 kB / 1.047 GB, free: 53.31 MB / 0.698 GB Notification: Performance of SimCode: time 2.2e-07/0.8143, allocations: 4 kB / 1.047 GB, free: 53.31 MB / 0.698 GB Notification: Performance of Templates: time 0.002947/0.8173, allocations: 0.6952 MB / 1.048 GB, free: 53.23 MB / 0.698 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe 2>&1)