Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Utilities.Math.Examples.IntegerReplicator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.Math.Examples.IntegerReplicator,fileNamePrefix="Buildings_8_Buildings_Utilities_Math_Examples_IntegerReplicator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.IntegerReplicator,fileNamePrefix="Buildings_8_Buildings_Utilities_Math_Examples_IntegerReplicator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.002053/0.002053, allocations: 100.5 kB / 15.05 MB, free: 1.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0026/0.0026, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.531/3.531, allocations: 205.4 MB / 222.1 MB, free: 5.676 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 3.333/3.333, allocations: 292.6 MB / 0.5497 GB, free: 14.63 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0009718/0.0009719, allocations: 15 kB / 0.6737 GB, free: 26.28 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5063/0.5073, allocations: 116.3 MB / 0.7872 GB, free: 11.89 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegerReplicator): time 0.0044/0.5117, allocations: 1.451 MB / 0.7886 GB, free: 10.43 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.003213/0.515, allocations: 0.9222 MB / 0.7895 GB, free: 9.5 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001773/0.5153, allocations: 3.938 kB / 0.7895 GB, free: 9.496 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0005148/0.5158, allocations: 47.81 kB / 0.7896 GB, free: 9.449 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0004121/0.5163, allocations: 63.83 kB / 0.7897 GB, free: 9.387 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.001074/0.5174, allocations: 171 kB / 0.7898 GB, free: 9.223 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.000352/0.5177, allocations: 91.81 kB / 0.7899 GB, free: 9.133 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001671/0.5179, allocations: 17.11 kB / 0.7899 GB, free: 9.117 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002181/0.5182, allocations: 51.77 kB / 0.79 GB, free: 9.066 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001942/0.5184, allocations: 43.83 kB / 0.79 GB, free: 9.023 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.67e-05/0.5184, allocations: 8 kB / 0.79 GB, free: 9.016 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002528/0.5187, allocations: 51.84 kB / 0.7901 GB, free: 8.965 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0001245/0.5188, allocations: 35.89 kB / 0.7901 GB, free: 8.93 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 9.271e-05/0.519, allocations: 41.64 kB / 0.7901 GB, free: 8.883 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.00041/0.5194, allocations: 148 kB / 0.7903 GB, free: 8.738 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 5.17e-06/0.5194, allocations: 0 / 0.7903 GB, free: 8.738 MB / 0.6075 GB Notification: Performance of FrontEnd: time 2.745e-06/0.5194, allocations: 0 / 0.7903 GB, free: 8.738 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 1.397e-05/0.5194, allocations: 4 kB / 0.7903 GB, free: 8.734 MB / 0.6075 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.001153/0.5206, allocations: 468.3 kB / 0.7907 GB, free: 8.223 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 7.827e-05/0.5207, allocations: 16.03 kB / 0.7907 GB, free: 8.207 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.525e-05/0.5208, allocations: 34.5 kB / 0.7908 GB, free: 8.164 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001114/0.5209, allocations: 19.77 kB / 0.7908 GB, free: 8.145 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006196/0.5215, allocations: 243.7 kB / 0.791 GB, free: 7.863 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.731e-05/0.5216, allocations: 0 / 0.791 GB, free: 7.863 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.118e-05/0.5216, allocations: 8 kB / 0.791 GB, free: 7.855 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003718/0.522, allocations: 96.11 kB / 0.7911 GB, free: 7.746 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.216e-05/0.5221, allocations: 4 kB / 0.7911 GB, free: 7.742 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.197e-05/0.5221, allocations: 0 / 0.7911 GB, free: 7.742 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.896e-05/0.5221, allocations: 11.97 kB / 0.7911 GB, free: 7.73 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001967/0.5223, allocations: 31.98 kB / 0.7912 GB, free: 7.699 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009479/0.5233, allocations: 364.5 kB / 0.7915 GB, free: 7.293 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004425/0.5238, allocations: 86.67 kB / 0.7916 GB, free: 7.199 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 3.939e-05/0.5238, allocations: 0 / 0.7916 GB, free: 7.199 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004011/0.5243, allocations: 83.47 kB / 0.7917 GB, free: 7.105 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=8): time 3.226e-06/0.5243, allocations: 0 / 0.7917 GB, free: 7.105 MB / 0.6075 GB Notification: Performance of matching and sorting (n=8): time 0.0008187/0.5251, allocations: 222.6 kB / 0.7919 GB, free: 6.863 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001074/0.5252, allocations: 102.8 kB / 0.792 GB, free: 6.738 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005532/0.5258, allocations: 271.4 kB / 0.7923 GB, free: 6.461 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 3.77e-05/0.5259, allocations: 29.7 kB / 0.7923 GB, free: 6.426 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001382/0.526, allocations: 112.1 kB / 0.7924 GB, free: 6.312 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 5.545e-05/0.5261, allocations: 23.7 kB / 0.7924 GB, free: 6.289 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.726e-06/0.5261, allocations: 0 / 0.7924 GB, free: 6.289 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0002751/0.5264, allocations: 330.8 kB / 0.7927 GB, free: 5.957 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000134/0.5265, allocations: 27.92 kB / 0.7928 GB, free: 5.93 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000195/0.5268, allocations: 72.22 kB / 0.7928 GB, free: 5.844 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001605/0.5269, allocations: 32 kB / 0.7929 GB, free: 5.812 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.389e-06/0.527, allocations: 0 / 0.7929 GB, free: 5.812 MB / 0.6075 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0004584/0.5274, allocations: 117.4 kB / 0.793 GB, free: 5.691 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.913e-05/0.5275, allocations: 4 kB / 0.793 GB, free: 5.688 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.383e-05/0.5275, allocations: 3.984 kB / 0.793 GB, free: 5.684 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.491e-05/0.5275, allocations: 3.953 kB / 0.793 GB, free: 5.68 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001761/0.5277, allocations: 12 kB / 0.793 GB, free: 5.668 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.117e-05/0.5278, allocations: 4.031 kB / 0.793 GB, free: 5.664 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001569/0.5279, allocations: 11.94 kB / 0.793 GB, free: 5.652 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.649e-05/0.528, allocations: 11.98 kB / 0.793 GB, free: 5.641 MB / 0.6075 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition1,$PRE.intTab.combiTimeTable.nextTimeEvent,intTab.y,intTab.combiTimeTable.nextTimeEvent,$PRE.intTab.combiTimeTable.nextTimeEventScaled,intTab.combiTimeTable.nextTimeEventScaled,intRep.y[1],intRep.y[2]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 8 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002673/0.5283, allocations: 137.8 kB / 0.7931 GB, free: 5.496 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.711e-05/0.5283, allocations: 11.81 kB / 0.7932 GB, free: 5.484 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.076e-05/0.5284, allocations: 21.59 kB / 0.7932 GB, free: 5.461 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.659e-05/0.5285, allocations: 15.88 kB / 0.7932 GB, free: 5.445 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.556e-06/0.5285, allocations: 3.938 kB / 0.7932 GB, free: 5.441 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.201e-06/0.5285, allocations: 4 kB / 0.7932 GB, free: 5.438 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003866/0.5289, allocations: 213.6 kB / 0.7934 GB, free: 5.18 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.707e-06/0.5289, allocations: 0 / 0.7934 GB, free: 5.18 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.063e-05/0.529, allocations: 4 kB / 0.7934 GB, free: 5.176 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.4e-06/0.529, allocations: 4 kB / 0.7934 GB, free: 5.172 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.056e-05/0.5291, allocations: 4 kB / 0.7934 GB, free: 5.168 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.605e-06/0.5291, allocations: 3.984 kB / 0.7934 GB, free: 5.164 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.99e-06/0.5291, allocations: 3.953 kB / 0.7934 GB, free: 5.16 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000466/0.5296, allocations: 140.9 kB / 0.7936 GB, free: 5.004 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001226/0.5297, allocations: 92.91 kB / 0.7936 GB, free: 4.895 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.584e-05/0.5298, allocations: 8 kB / 0.7937 GB, free: 4.887 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.854e-05/0.5299, allocations: 0 / 0.7937 GB, free: 4.887 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.752e-05/0.53, allocations: 7.984 kB / 0.7937 GB, free: 4.879 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.248e-05/0.5301, allocations: 15.94 kB / 0.7937 GB, free: 4.863 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0003473/0.5304, allocations: 196.5 kB / 0.7939 GB, free: 4.672 MB / 0.6075 GB Notification: Performance of sort global known variables: time 3.8e-07/0.5304, allocations: 0 / 0.7939 GB, free: 4.672 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0005127/0.531, allocations: 35.83 kB / 0.7939 GB, free: 4.637 MB / 0.6075 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,intTab.y,intTab.combiTimeTable.nextTimeEvent,intTab.combiTimeTable.nextTimeEventScaled,intRep.y[1],intRep.y[2]) * Number of discrete states: 2 (intTab.combiTimeTable.nextTimeEventScaled,intTab.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 4 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002686/0.5337, allocations: 1.008 MB / 0.7949 GB, free: 3.766 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.000428/0.5341, allocations: 71.89 kB / 0.795 GB, free: 3.695 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 4.92e-06/0.5342, allocations: 0 / 0.795 GB, free: 3.695 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001742/0.5343, allocations: 40.03 kB / 0.795 GB, free: 3.656 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004599/0.5348, allocations: 35.95 kB / 0.795 GB, free: 3.621 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003053/0.5379, allocations: 1.095 MB / 0.7961 GB, free: 2.477 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008054/0.5387, allocations: 0.7317 MB / 0.7968 GB, free: 1.719 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.000171/0.5389, allocations: 25.38 kB / 0.7968 GB, free: 1.691 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001625/0.5391, allocations: 51.42 kB / 0.7969 GB, free: 1.645 MB / 0.6075 GB Notification: Performance of SimCode: time 1.313e-06/0.5391, allocations: 0 / 0.7969 GB, free: 1.645 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0329/0.572, allocations: 4.117 MB / 0.8009 GB, free: 13.68 MB / 0.6231 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0005038/0.5727, allocations: 220.4 kB / 0.8011 GB, free: 13.43 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.036/3.609, allocations: 0 / 0.8011 GB, free: 13.43 MB / 0.6231 GB (rm -f Buildings_8_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe ; mkfifo Buildings_8_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe ; head -c 1048576 < Buildings_8_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe >> ../files/Buildings_8_Buildings.Utilities.Math.Examples.IntegerReplicator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Utilities_Math_Examples_IntegerReplicator_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Utilities_Math_Examples_IntegerReplicator.fmu > Buildings_8_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe 2>&1) Environment - environmentSimulation: