Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_IDEAS.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/IDEAS 3.0.0/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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(IDEAS.Utilities.Math.Examples.IntegerReplicator,fileNamePrefix="IDEAS_IDEAS_Utilities_Math_Examples_IntegerReplicator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.Math.Examples.IntegerReplicator,fileNamePrefix="IDEAS_IDEAS_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.0009737/0.0009738, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009717/0.0009718, allocations: 198.4 kB / 16.54 MB, free: 6.672 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.182/1.182, allocations: 222.9 MB / 240.2 MB, free: 4.363 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.6778/0.6778, allocations: 132.2 MB / 422.6 MB, free: 1.742 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001452/0.001452, allocations: 60.53 kB / 0.5019 GB, free: 8.621 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1284/0.1298, allocations: 80.21 MB / 0.5802 GB, free: 8.645 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.IntegerReplicator): time 0.002633/0.1325, allocations: 1.768 MB / 0.5819 GB, free: 6.855 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001422/0.1339, allocations: 1.104 MB / 0.583 GB, free: 5.742 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.487e-05/0.134, allocations: 3.938 kB / 0.583 GB, free: 5.738 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002189/0.1342, allocations: 55.75 kB / 0.5831 GB, free: 5.684 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000185/0.1344, allocations: 79.66 kB / 0.5831 GB, free: 5.605 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004875/0.1349, allocations: 218 kB / 0.5833 GB, free: 5.395 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001541/0.1351, allocations: 151.5 kB / 0.5835 GB, free: 5.246 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.785e-05/0.1352, allocations: 21.12 kB / 0.5835 GB, free: 5.227 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.995e-05/0.1353, allocations: 67.69 kB / 0.5836 GB, free: 5.16 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.912e-05/0.1354, allocations: 63.75 kB / 0.5836 GB, free: 5.098 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.542e-05/0.1354, allocations: 8 kB / 0.5836 GB, free: 5.09 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000118/0.1355, allocations: 67.91 kB / 0.5837 GB, free: 5.023 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 5.752e-05/0.1356, allocations: 39.89 kB / 0.5837 GB, free: 4.984 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 5.56e-05/0.1357, allocations: 55.62 kB / 0.5838 GB, free: 4.93 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002184/0.1359, allocations: 199.7 kB / 0.584 GB, free: 4.734 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.005e-06/0.1359, allocations: 3.938 kB / 0.584 GB, free: 4.73 MB / 494.1 MB Notification: Performance of FrontEnd: time 8.72e-07/0.1359, allocations: 0 / 0.584 GB, free: 4.73 MB / 494.1 MB Notification: Performance of Transformations before backend: time 6.984e-06/0.1359, allocations: 4 kB / 0.584 GB, free: 4.727 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.0004953/0.1364, allocations: 488.3 kB / 0.5845 GB, free: 4.195 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.794e-05/0.1364, allocations: 8.031 kB / 0.5845 GB, free: 4.188 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.065e-05/0.1365, allocations: 42.73 kB / 0.5845 GB, free: 4.137 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.042e-05/0.1365, allocations: 16.75 kB / 0.5845 GB, free: 4.121 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002125/0.1367, allocations: 245.6 kB / 0.5848 GB, free: 3.844 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.212e-05/0.1368, allocations: 4.375 kB / 0.5848 GB, free: 3.84 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.386e-05/0.1368, allocations: 7.938 kB / 0.5848 GB, free: 3.832 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001639/0.1369, allocations: 100.2 kB / 0.5849 GB, free: 3.719 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.051e-06/0.137, allocations: 0 / 0.5849 GB, free: 3.719 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.103e-05/0.137, allocations: 4 kB / 0.5849 GB, free: 3.715 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.353e-05/0.137, allocations: 4 kB / 0.5849 GB, free: 3.711 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.547e-05/0.1371, allocations: 31.92 kB / 0.5849 GB, free: 3.68 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003924/0.1375, allocations: 368.5 kB / 0.5853 GB, free: 3.27 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001914/0.1377, allocations: 86.75 kB / 0.5853 GB, free: 3.176 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.399e-05/0.1378, allocations: 32.78 kB / 0.5854 GB, free: 3.141 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.717e-05/0.1378, allocations: 4 kB / 0.5854 GB, free: 3.137 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001451/0.1379, allocations: 83.38 kB / 0.5854 GB, free: 3.043 MB / 494.1 MB Notification: Performance of pre-optimization done (n=8): time 1.412e-06/0.1379, allocations: 0 / 0.5854 GB, free: 3.043 MB / 494.1 MB Notification: Performance of matching and sorting (n=8): time 0.0002937/0.1382, allocations: 129.5 kB / 0.5856 GB, free: 2.91 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.146e-05/0.1383, allocations: 114.8 kB / 0.5857 GB, free: 2.773 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002054/0.1385, allocations: 266.9 kB / 0.5859 GB, free: 2.504 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.453e-05/0.1385, allocations: 25.7 kB / 0.586 GB, free: 2.473 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.051e-05/0.1386, allocations: 116 kB / 0.5861 GB, free: 2.355 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.017e-05/0.1386, allocations: 23.73 kB / 0.5861 GB, free: 2.332 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.288e-05/0.1387, allocations: 37.7 kB / 0.5861 GB, free: 2.289 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 7.991e-05/0.1388, allocations: 322.8 kB / 0.5864 GB, free: 1.965 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.324e-05/0.1388, allocations: 23.98 kB / 0.5865 GB, free: 1.941 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.82e-05/0.1389, allocations: 76.27 kB / 0.5865 GB, free: 1.852 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001225/0.1391, allocations: 69.94 kB / 0.5866 GB, free: 1.777 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.373e-06/0.1391, allocations: 8 kB / 0.5866 GB, free: 1.77 MB / 494.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001859/0.1393, allocations: 109.5 kB / 0.5867 GB, free: 1.656 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.352e-05/0.1393, allocations: 8 kB / 0.5867 GB, free: 1.648 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.448e-06/0.1393, allocations: 0 / 0.5867 GB, free: 1.648 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.776e-06/0.1393, allocations: 0 / 0.5867 GB, free: 1.648 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.439e-05/0.1394, allocations: 15.94 kB / 0.5867 GB, free: 1.633 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.047e-06/0.1394, allocations: 0 / 0.5867 GB, free: 1.633 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.051e-05/0.1395, allocations: 19.84 kB / 0.5868 GB, free: 1.613 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.496e-06/0.1395, allocations: 4 kB / 0.5868 GB, free: 1.609 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 9.923e-05/0.1396, allocations: 146.5 kB / 0.5869 GB, free: 1.457 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.584e-05/0.1396, allocations: 15.81 kB / 0.5869 GB, free: 1.441 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.91e-05/0.1397, allocations: 21.39 kB / 0.5869 GB, free: 1.418 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.847e-06/0.1397, allocations: 4 kB / 0.5869 GB, free: 1.414 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.297e-06/0.1397, allocations: 0 / 0.5869 GB, free: 1.414 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.209e-06/0.1397, allocations: 3.938 kB / 0.5869 GB, free: 1.41 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001517/0.1398, allocations: 225.4 kB / 0.5872 GB, free: 1.141 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-06/0.1399, allocations: 0 / 0.5872 GB, free: 1.141 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.686e-05/0.1399, allocations: 4 kB / 0.5872 GB, free: 1.137 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.457e-06/0.1399, allocations: 4 kB / 0.5872 GB, free: 1.133 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.398e-06/0.1399, allocations: 3.984 kB / 0.5872 GB, free: 1.129 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.324e-06/0.1399, allocations: 4 kB / 0.5872 GB, free: 1.125 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.883e-06/0.1399, allocations: 0 / 0.5872 GB, free: 1.125 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002067/0.1401, allocations: 148.8 kB / 0.5873 GB, free: 0.9609 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.57e-05/0.1402, allocations: 92.92 kB / 0.5874 GB, free: 0.8516 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.33e-05/0.1402, allocations: 0 / 0.5874 GB, free: 0.8516 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.206e-05/0.1403, allocations: 8.047 kB / 0.5874 GB, free: 0.8438 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.711e-05/0.1403, allocations: 19.91 kB / 0.5874 GB, free: 0.8242 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.909e-06/0.1403, allocations: 4 kB / 0.5874 GB, free: 0.8203 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0001443/0.1405, allocations: 196.6 kB / 0.5876 GB, free: 0.6289 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1405, allocations: 0 / 0.5876 GB, free: 0.6289 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002227/0.1407, allocations: 36.19 kB / 0.5877 GB, free: 0.5938 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.00115/0.1419, allocations: 0.9949 MB / 0.5886 GB, free: 15.76 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.00019/0.1421, allocations: 75.91 kB / 0.5887 GB, free: 15.68 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.844e-06/0.1421, allocations: 0 / 0.5887 GB, free: 15.68 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 8.255e-05/0.1422, allocations: 39.95 kB / 0.5887 GB, free: 15.64 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002507/0.1424, allocations: 45.33 kB / 0.5888 GB, free: 15.61 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001789/0.1442, allocations: 1.94 MB / 0.5907 GB, free: 13.58 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002124/0.1445, allocations: 0.7279 MB / 0.5914 GB, free: 12.82 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 6.711e-05/0.1445, allocations: 21.08 kB / 0.5914 GB, free: 12.8 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.022e-05/0.1446, allocations: 51.42 kB / 0.5915 GB, free: 12.75 MB / 0.4981 GB Notification: Performance of SimCode: time 3.2e-07/0.1446, allocations: 0 / 0.5915 GB, free: 12.75 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 3.58/3.725, allocations: 4.578 MB / 0.5959 GB, free: 8.293 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.787/11.51, allocations: 0 / 0.5959 GB, free: 8.293 MB / 0.4981 GB (rm -f IDEAS_IDEAS.Utilities.Math.Examples.IntegerReplicator.pipe ; mkfifo IDEAS_IDEAS.Utilities.Math.Examples.IntegerReplicator.pipe ; head -c 1048576 < IDEAS_IDEAS.Utilities.Math.Examples.IntegerReplicator.pipe >> ../files/IDEAS_IDEAS.Utilities.Math.Examples.IntegerReplicator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Utilities_Math_Examples_IntegerReplicator_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 IDEAS_IDEAS_Utilities_Math_Examples_IntegerReplicator.fmu > IDEAS_IDEAS.Utilities.Math.Examples.IntegerReplicator.pipe 2>&1)