Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_9_Buildings_Utilities_Math_Examples_IntegerReplicator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.IntegerReplicator,fileNamePrefix="Buildings_9_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.0009414/0.0009414, allocations: 99.62 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.0009403/0.0009403, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.443/1.443, allocations: 223.2 MB / 239.9 MB, free: 5.449 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.477/2.477, allocations: 390.3 MB / 0.6653 GB, free: 2.98 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003306/0.0003307, allocations: 16 kB / 0.8146 GB, free: 14.22 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7209/0.7213, allocations: 142.3 MB / 0.9536 GB, free: 8.094 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegerReplicator): time 0.001941/0.7233, allocations: 1.445 MB / 0.955 GB, free: 6.957 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001739/0.725, allocations: 0.9917 MB / 0.956 GB, free: 6.195 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001045/0.7251, allocations: 5.344 kB / 0.956 GB, free: 6.191 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0003623/0.7255, allocations: 56.75 kB / 0.956 GB, free: 6.156 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001963/0.7257, allocations: 59.92 kB / 0.9561 GB, free: 6.117 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005824/0.7263, allocations: 188.4 kB / 0.9563 GB, free: 6.004 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001807/0.7265, allocations: 84.67 kB / 0.9563 GB, free: 5.949 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001088/0.7266, allocations: 14.48 kB / 0.9563 GB, free: 5.945 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 9.467e-05/0.7267, allocations: 58.83 kB / 0.9564 GB, free: 5.91 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001034/0.7268, allocations: 54.72 kB / 0.9565 GB, free: 5.875 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.866e-05/0.7269, allocations: 3.438 kB / 0.9565 GB, free: 5.875 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001302/0.727, allocations: 46.59 kB / 0.9565 GB, free: 5.855 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 6.84e-05/0.7271, allocations: 34.77 kB / 0.9565 GB, free: 5.836 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.781e-05/0.7271, allocations: 48.05 kB / 0.9566 GB, free: 5.789 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002096/0.7273, allocations: 146.5 kB / 0.9567 GB, free: 5.699 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.004e-06/0.7274, allocations: 0 / 0.9567 GB, free: 5.699 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.543e-06/0.7274, allocations: 0 / 0.9567 GB, free: 5.699 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.98e-06/0.7274, allocations: 1.188 kB / 0.9567 GB, free: 5.699 MB / 0.7169 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.0006216/0.728, allocations: 470.1 kB / 0.9572 GB, free: 5.223 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.944e-05/0.7281, allocations: 9.281 kB / 0.9572 GB, free: 5.223 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.028e-05/0.7281, allocations: 36.69 kB / 0.9572 GB, free: 5.18 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.773e-05/0.7282, allocations: 20.17 kB / 0.9572 GB, free: 5.168 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003386/0.7285, allocations: 242.5 kB / 0.9575 GB, free: 4.918 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.992e-05/0.7285, allocations: 6.375 kB / 0.9575 GB, free: 4.914 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.303e-05/0.7286, allocations: 11.34 kB / 0.9575 GB, free: 4.906 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002215/0.7288, allocations: 90.64 kB / 0.9576 GB, free: 4.824 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.859e-06/0.7288, allocations: 5.031 kB / 0.9576 GB, free: 4.82 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.247e-05/0.7288, allocations: 0 / 0.9576 GB, free: 4.82 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.941e-05/0.7289, allocations: 2.438 kB / 0.9576 GB, free: 4.82 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.98e-05/0.729, allocations: 45.39 kB / 0.9576 GB, free: 4.793 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004857/0.7295, allocations: 344.8 kB / 0.9579 GB, free: 4.453 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002105/0.7297, allocations: 96.72 kB / 0.958 GB, free: 4.387 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.257e-05/0.7297, allocations: 1.125 kB / 0.958 GB, free: 4.387 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000204/0.7299, allocations: 83.52 kB / 0.9581 GB, free: 4.312 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=8): time 2.715e-06/0.7299, allocations: 3.984 kB / 0.9581 GB, free: 4.309 MB / 0.7169 GB Notification: Performance of matching and sorting (n=8): time 0.0003626/0.7303, allocations: 216.7 kB / 0.9583 GB, free: 4.133 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.841e-05/0.7304, allocations: 116.8 kB / 0.9584 GB, free: 3.996 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002439/0.7306, allocations: 266.9 kB / 0.9587 GB, free: 3.816 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.66e-05/0.7306, allocations: 31.12 kB / 0.9587 GB, free: 3.781 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 5.689e-05/0.7307, allocations: 119.4 kB / 0.9588 GB, free: 3.668 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.331e-05/0.7307, allocations: 20.5 kB / 0.9589 GB, free: 3.652 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.641e-06/0.7307, allocations: 0 / 0.9589 GB, free: 3.652 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 6.784e-05/0.7308, allocations: 331.1 kB / 0.9592 GB, free: 3.324 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.293e-05/0.7309, allocations: 21.69 kB / 0.9592 GB, free: 3.316 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.726e-05/0.731, allocations: 69.23 kB / 0.9593 GB, free: 3.258 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.253e-05/0.7311, allocations: 32.08 kB / 0.9593 GB, free: 3.242 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.535e-06/0.7311, allocations: 0 / 0.9593 GB, free: 3.242 MB / 0.7169 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001856/0.7313, allocations: 112.4 kB / 0.9594 GB, free: 3.172 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.752e-05/0.7313, allocations: 8.391 kB / 0.9594 GB, free: 3.168 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.503e-06/0.7313, allocations: 1.375 kB / 0.9594 GB, free: 3.168 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.37e-05/0.7313, allocations: 5.406 kB / 0.9594 GB, free: 3.164 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.878e-05/0.7314, allocations: 13.61 kB / 0.9594 GB, free: 3.16 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.64e-06/0.7314, allocations: 5.312 kB / 0.9594 GB, free: 3.156 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.045e-05/0.7315, allocations: 4.125 kB / 0.9594 GB, free: 3.156 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.056e-05/0.7315, allocations: 6.75 kB / 0.9594 GB, free: 3.152 MB / 0.7169 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.0001077/0.7316, allocations: 141.3 kB / 0.9596 GB, free: 3.023 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.37e-05/0.7316, allocations: 16.06 kB / 0.9596 GB, free: 3.016 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.538e-05/0.7317, allocations: 24.22 kB / 0.9596 GB, free: 3 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.098e-05/0.7317, allocations: 9.375 kB / 0.9596 GB, free: 2.992 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.767e-06/0.7317, allocations: 0 / 0.9596 GB, free: 2.992 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.797e-06/0.7317, allocations: 1.375 kB / 0.9596 GB, free: 2.992 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001507/0.7319, allocations: 222.5 kB / 0.9598 GB, free: 2.754 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.293e-06/0.7319, allocations: 0 / 0.9598 GB, free: 2.754 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.935e-05/0.7319, allocations: 13.42 kB / 0.9599 GB, free: 2.746 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.933e-06/0.7319, allocations: 0 / 0.9599 GB, free: 2.746 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.139e-05/0.732, allocations: 1.375 kB / 0.9599 GB, free: 2.746 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.545e-06/0.732, allocations: 3.953 kB / 0.9599 GB, free: 2.742 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.732, allocations: 1.375 kB / 0.9599 GB, free: 2.742 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002083/0.7322, allocations: 154.3 kB / 0.96 GB, free: 2.621 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 4.723e-05/0.7322, allocations: 99.78 kB / 0.9601 GB, free: 2.512 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.012e-05/0.7323, allocations: 5.375 kB / 0.9601 GB, free: 2.508 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.394e-05/0.7323, allocations: 2.75 kB / 0.9601 GB, free: 2.508 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.304e-05/0.7324, allocations: 12.06 kB / 0.9601 GB, free: 2.5 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.212e-05/0.7324, allocations: 2.75 kB / 0.9601 GB, free: 2.5 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0001565/0.7326, allocations: 198.4 kB / 0.9603 GB, free: 2.371 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.7326, allocations: 0 / 0.9603 GB, free: 2.371 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002522/0.7328, allocations: 36.75 kB / 0.9603 GB, free: 2.359 MB / 0.7169 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.001279/0.7341, allocations: 0.9941 MB / 0.9613 GB, free: 1.617 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002078/0.7343, allocations: 67.25 kB / 0.9614 GB, free: 1.59 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.7343, allocations: 4.062 kB / 0.9614 GB, free: 1.586 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 8.35e-05/0.7344, allocations: 36.89 kB / 0.9614 GB, free: 1.57 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002399/0.7347, allocations: 43.84 kB / 0.9615 GB, free: 1.543 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001452/0.7361, allocations: 1.098 MB / 0.9625 GB, free: 0.7383 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001624/0.7363, allocations: 0.7279 MB / 0.9632 GB, free: 16 kB / 0.7169 GB Notification: Performance of simCode: alias equations: time 7.855e-05/0.7364, allocations: 23.28 kB / 0.9633 GB, free: 8 kB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001061/0.7365, allocations: 52.91 kB / 0.9633 GB, free: 15.96 MB / 0.7325 GB Notification: Performance of SimCode: time 3.21e-07/0.7365, allocations: 1.125 kB / 0.9633 GB, free: 15.96 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01736/0.7539, allocations: 4.124 MB / 0.9673 GB, free: 14 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001808/0.7541, allocations: 225.7 kB / 0.9676 GB, free: 13.75 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.853/2.607, allocations: 0 / 0.9676 GB, free: 13.75 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Examples.IntegerReplicator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Utilities.Math.Examples.IntegerReplicator_res.mat --tempDir=temp_Buildings_9_Buildings_Utilities_Math_Examples_IntegerReplicator_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Utilities_Math_Examples_IntegerReplicator.fmu > Buildings_9_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Utilities.Math.Examples.IntegerReplicator_res.mat does not exist to compare? outputFormat=mat