Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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(BuildingSystems.Utilities.Math.Examples.IntegerReplicator,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_IntegerReplicator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Examples.IntegerReplicator,fileNamePrefix="BuildingSystems_BuildingSystems_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.0007346/0.0007346, allocations: 91.84 kB / 15.36 MB, free: 0.7344 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.005659/0.005659, allocations: 168.9 kB / 16.26 MB, free: 6.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.334/1.334, allocations: 223.2 MB / 240.3 MB, free: 5.355 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001682/0.001682, allocations: 270.8 kB / 291.7 MB, free: 1.887 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9019/0.9019, allocations: 169.5 MB / 0.5004 GB, free: 14.07 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004109/0.0004108, allocations: 11.81 kB / 0.5988 GB, free: 28.02 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1779/0.1784, allocations: 88.54 MB / 0.6852 GB, free: 14.96 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.IntegerReplicator): time 0.002068/0.1805, allocations: 1.463 MB / 0.6867 GB, free: 13.49 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001624/0.1821, allocations: 1.087 MB / 0.6877 GB, free: 12.39 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.082e-05/0.1822, allocations: 4 kB / 0.6877 GB, free: 12.39 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002881/0.1825, allocations: 48.31 kB / 0.6878 GB, free: 12.34 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001805/0.1827, allocations: 68.94 kB / 0.6878 GB, free: 12.28 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005199/0.1832, allocations: 204 kB / 0.688 GB, free: 12.08 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001896/0.1834, allocations: 137.4 kB / 0.6882 GB, free: 11.95 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001045/0.1835, allocations: 17.39 kB / 0.6882 GB, free: 11.93 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.001e-05/0.1836, allocations: 56.67 kB / 0.6882 GB, free: 11.88 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.962e-05/0.1838, allocations: 59.75 kB / 0.6883 GB, free: 11.82 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.771e-05/0.1838, allocations: 7.469 kB / 0.6883 GB, free: 11.82 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001267/0.1839, allocations: 59.91 kB / 0.6884 GB, free: 11.76 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 8.42e-05/0.184, allocations: 43.83 kB / 0.6884 GB, free: 11.71 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 7.389e-05/0.1841, allocations: 73.38 kB / 0.6885 GB, free: 11.64 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002917/0.1844, allocations: 187.3 kB / 0.6886 GB, free: 11.45 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.068e-06/0.1844, allocations: 0 / 0.6886 GB, free: 11.45 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.322e-06/0.1844, allocations: 0 / 0.6886 GB, free: 11.45 MB / 494.1 MB Notification: Performance of Transformations before backend: time 6.292e-06/0.1844, allocations: 0 / 0.6886 GB, free: 11.45 MB / 494.1 MB 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.0006445/0.1851, allocations: 470.9 kB / 0.6891 GB, free: 10.94 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.857e-05/0.1851, allocations: 12.03 kB / 0.6891 GB, free: 10.93 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.09e-05/0.1852, allocations: 39.27 kB / 0.6891 GB, free: 10.88 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.966e-05/0.1852, allocations: 19.19 kB / 0.6892 GB, free: 10.87 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002771/0.1855, allocations: 253.5 kB / 0.6894 GB, free: 10.58 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.751e-05/0.1855, allocations: 4.375 kB / 0.6894 GB, free: 10.57 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.648e-05/0.1855, allocations: 3.938 kB / 0.6894 GB, free: 10.57 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001894/0.1857, allocations: 96.92 kB / 0.6895 GB, free: 10.46 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.143e-06/0.1858, allocations: 5.828 kB / 0.6895 GB, free: 10.46 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.352e-05/0.1858, allocations: 4 kB / 0.6895 GB, free: 10.45 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.774e-05/0.1858, allocations: 0 / 0.6895 GB, free: 10.45 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001/0.1859, allocations: 27.98 kB / 0.6895 GB, free: 10.43 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004755/0.1864, allocations: 363.3 kB / 0.6899 GB, free: 10.02 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002073/0.1866, allocations: 86.59 kB / 0.69 GB, free: 9.93 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.178e-05/0.1867, allocations: 33.72 kB / 0.69 GB, free: 9.895 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.284e-05/0.1867, allocations: 13.62 kB / 0.69 GB, free: 9.883 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001984/0.1869, allocations: 79.38 kB / 0.6901 GB, free: 9.793 MB / 494.1 MB Notification: Performance of pre-optimization done (n=8): time 2.355e-06/0.1869, allocations: 0.6562 kB / 0.6901 GB, free: 9.793 MB / 494.1 MB Notification: Performance of matching and sorting (n=8): time 0.0003367/0.1873, allocations: 137.5 kB / 0.6902 GB, free: 9.652 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.295e-05/0.1874, allocations: 104.2 kB / 0.6903 GB, free: 9.527 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002612/0.1876, allocations: 266.9 kB / 0.6906 GB, free: 9.258 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.06e-05/0.1877, allocations: 34.17 kB / 0.6906 GB, free: 9.219 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.721e-05/0.1878, allocations: 117.1 kB / 0.6907 GB, free: 9.102 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.933e-05/0.1878, allocations: 23.73 kB / 0.6907 GB, free: 9.078 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.226e-05/0.1878, allocations: 21.7 kB / 0.6908 GB, free: 9.051 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001358/0.188, allocations: 327.8 kB / 0.6911 GB, free: 8.723 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.035e-05/0.188, allocations: 27.92 kB / 0.6911 GB, free: 8.695 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.961e-05/0.1881, allocations: 76.27 kB / 0.6912 GB, free: 8.605 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001378/0.1883, allocations: 65.7 kB / 0.6912 GB, free: 8.535 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.424e-06/0.1883, allocations: 3.938 kB / 0.6912 GB, free: 8.531 MB / 494.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002097/0.1885, allocations: 101.5 kB / 0.6913 GB, free: 8.426 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.859e-05/0.1885, allocations: 10.22 kB / 0.6913 GB, free: 8.418 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.223e-06/0.1886, allocations: 4 kB / 0.6914 GB, free: 8.414 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.148e-05/0.1886, allocations: 0 / 0.6914 GB, free: 8.414 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.654e-05/0.1887, allocations: 23.92 kB / 0.6914 GB, free: 8.391 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.609e-06/0.1887, allocations: 0 / 0.6914 GB, free: 8.391 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.361e-05/0.1888, allocations: 11.84 kB / 0.6914 GB, free: 8.379 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.049e-05/0.1888, allocations: 4 kB / 0.6914 GB, free: 8.375 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 8 ($PRE.intTab.combiTimeTable.nextTimeEvent,$whenCondition1,intRep.y[2],intRep.y[1],intTab.combiTimeTable.nextTimeEventScaled,$PRE.intTab.combiTimeTable.nextTimeEventScaled,intTab.combiTimeTable.nextTimeEvent,intTab.y) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001351/0.1889, allocations: 141.8 kB / 0.6915 GB, free: 8.227 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.753e-05/0.189, allocations: 19.8 kB / 0.6915 GB, free: 8.207 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.961e-05/0.189, allocations: 21.41 kB / 0.6916 GB, free: 8.184 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.765e-06/0.189, allocations: 0 / 0.6916 GB, free: 8.184 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.36e-06/0.189, allocations: 0 / 0.6916 GB, free: 8.184 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.801e-06/0.189, allocations: 3.938 kB / 0.6916 GB, free: 8.18 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002157/0.1893, allocations: 229.6 kB / 0.6918 GB, free: 7.906 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.232e-06/0.1893, allocations: 0 / 0.6918 GB, free: 7.906 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.85e-05/0.1893, allocations: 4 kB / 0.6918 GB, free: 7.902 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.503e-06/0.1893, allocations: 0 / 0.6918 GB, free: 7.902 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.296e-05/0.1894, allocations: 4 kB / 0.6918 GB, free: 7.898 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.302e-06/0.1894, allocations: 0.5781 kB / 0.6918 GB, free: 7.898 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.1894, allocations: 0 / 0.6918 GB, free: 7.898 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002526/0.1896, allocations: 152.7 kB / 0.6919 GB, free: 7.73 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.849e-05/0.1897, allocations: 104.8 kB / 0.692 GB, free: 7.609 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.534e-05/0.1897, allocations: 0 / 0.692 GB, free: 7.609 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.273e-05/0.1898, allocations: 7.984 kB / 0.692 GB, free: 7.602 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.943e-05/0.1899, allocations: 15.92 kB / 0.6921 GB, free: 7.586 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.303e-05/0.1899, allocations: 4 kB / 0.6921 GB, free: 7.582 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0001989/0.1901, allocations: 200.6 kB / 0.6923 GB, free: 7.387 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1901, allocations: 0 / 0.6923 GB, free: 7.387 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002453/0.1903, allocations: 32 kB / 0.6923 GB, free: 7.355 MB / 494.1 MB 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 (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.001499/0.1918, allocations: 0.9959 MB / 0.6933 GB, free: 6.492 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0002055/0.1921, allocations: 67.97 kB / 0.6933 GB, free: 6.426 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.1921, allocations: 0 / 0.6933 GB, free: 6.426 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 8.728e-05/0.1922, allocations: 35.92 kB / 0.6934 GB, free: 6.391 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000296/0.1925, allocations: 39.88 kB / 0.6934 GB, free: 6.355 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002196/0.1947, allocations: 1.972 MB / 0.6953 GB, free: 4.289 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003491/0.195, allocations: 0.7282 MB / 0.696 GB, free: 3.535 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0001128/0.1952, allocations: 25.36 kB / 0.6961 GB, free: 3.512 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.427e-05/0.1953, allocations: 47.42 kB / 0.6961 GB, free: 3.465 MB / 494.1 MB Notification: Performance of SimCode: time 3.41e-07/0.1953, allocations: 0 / 0.6961 GB, free: 3.465 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01521/0.2105, allocations: 4.208 MB / 0.7002 GB, free: 15.43 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002387/0.2108, allocations: 260.8 kB / 0.7005 GB, free: 15.16 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.687/1.897, allocations: 0 / 0.7005 GB, free: 15.16 MB / 0.4981 GB (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegerReplicator.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegerReplicator.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegerReplicator.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegerReplicator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Utilities_Math_Examples_IntegerReplicator_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Utilities_Math_Examples_IntegerReplicator.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegerReplicator.pipe 2>&1)