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.0006825/0.0006825, allocations: 98.03 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.003949/0.00395, allocations: 168.8 kB / 16.26 MB, free: 6.652 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.186/1.186, allocations: 223.3 MB / 240.3 MB, free: 5.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.674/0.674, allocations: 132.3 MB / 423.8 MB, free: 1.957 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003678/0.0003679, allocations: 8 kB / 0.5041 GB, free: 3.797 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3541/0.3544, allocations: 81.57 MB / 0.5837 GB, free: 4.039 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.IntegerReplicator): time 0.001486/0.356, allocations: 1.48 MB / 0.5852 GB, free: 2.969 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.001213/0.3572, allocations: 1.072 MB / 0.5862 GB, free: 2.227 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.249e-05/0.3573, allocations: 4 kB / 0.5862 GB, free: 2.223 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002362/0.3575, allocations: 55.91 kB / 0.5863 GB, free: 2.203 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001477/0.3577, allocations: 66.47 kB / 0.5864 GB, free: 2.172 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004264/0.3581, allocations: 198.2 kB / 0.5865 GB, free: 2.078 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001529/0.3583, allocations: 136.4 kB / 0.5867 GB, free: 2.02 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.119e-05/0.3583, allocations: 20.52 kB / 0.5867 GB, free: 2.008 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.846e-05/0.3584, allocations: 60 kB / 0.5867 GB, free: 1.98 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.704e-05/0.3585, allocations: 58.78 kB / 0.5868 GB, free: 1.961 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 1.482e-05/0.3585, allocations: 3 kB / 0.5868 GB, free: 1.961 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001099/0.3587, allocations: 56.19 kB / 0.5869 GB, free: 1.945 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 6.142e-05/0.3587, allocations: 42.23 kB / 0.5869 GB, free: 1.926 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 5.42e-05/0.3588, allocations: 81.22 kB / 0.587 GB, free: 1.855 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002198/0.359, allocations: 193 kB / 0.5872 GB, free: 1.789 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.815e-06/0.359, allocations: 7.938 kB / 0.5872 GB, free: 1.781 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.359, allocations: 0 / 0.5872 GB, free: 1.781 MB / 430.1 MB Notification: Performance of Transformations before backend: time 3.286e-06/0.359, allocations: 1.344 kB / 0.5872 GB, free: 1.781 MB / 430.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.0004183/0.3595, allocations: 463.1 kB / 0.5876 GB, free: 1.328 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.124e-05/0.3595, allocations: 9.562 kB / 0.5876 GB, free: 1.328 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.063e-05/0.3595, allocations: 38 kB / 0.5877 GB, free: 1.285 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.475e-05/0.3596, allocations: 17.19 kB / 0.5877 GB, free: 1.277 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001927/0.3598, allocations: 254 kB / 0.5879 GB, free: 1.035 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.345e-05/0.3598, allocations: 3.656 kB / 0.5879 GB, free: 1.035 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.238e-05/0.3598, allocations: 11.5 kB / 0.5879 GB, free: 1.027 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001604/0.36, allocations: 96.06 kB / 0.588 GB, free: 0.9531 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.802e-06/0.36, allocations: 1.594 kB / 0.588 GB, free: 0.9531 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.041e-05/0.36, allocations: 1.078 kB / 0.588 GB, free: 0.9531 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.504e-05/0.36, allocations: 2.562 kB / 0.588 GB, free: 0.9531 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.075e-05/0.3601, allocations: 34.73 kB / 0.5881 GB, free: 0.9414 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003695/0.3605, allocations: 354.8 kB / 0.5884 GB, free: 0.6289 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002021/0.3607, allocations: 92.67 kB / 0.5885 GB, free: 0.5781 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.437e-05/0.3608, allocations: 35.62 kB / 0.5885 GB, free: 0.5586 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.806e-05/0.3608, allocations: 5.781 kB / 0.5885 GB, free: 0.5547 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001573/0.361, allocations: 79.39 kB / 0.5886 GB, free: 0.4961 MB / 430.1 MB Notification: Performance of pre-optimization done (n=8): time 1.493e-06/0.361, allocations: 0 / 0.5886 GB, free: 0.4961 MB / 430.1 MB Notification: Performance of matching and sorting (n=8): time 0.0002859/0.3613, allocations: 146.1 kB / 0.5887 GB, free: 432 kB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.425e-05/0.3613, allocations: 104.6 kB / 0.5888 GB, free: 304 kB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002237/0.3615, allocations: 266.5 kB / 0.5891 GB, free: 148 kB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 1.166e-05/0.3616, allocations: 26.67 kB / 0.5891 GB, free: 116 kB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.936e-05/0.3616, allocations: 116.4 kB / 0.5892 GB, free: 8 kB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.103e-05/0.3617, allocations: 29.47 kB / 0.5893 GB, free: 15.98 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.862e-05/0.3617, allocations: 18.5 kB / 0.5893 GB, free: 15.96 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001012/0.3618, allocations: 329.2 kB / 0.5896 GB, free: 15.64 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.627e-05/0.3619, allocations: 25.72 kB / 0.5896 GB, free: 15.64 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.31e-05/0.362, allocations: 75.64 kB / 0.5897 GB, free: 15.58 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001316/0.3621, allocations: 70.23 kB / 0.5898 GB, free: 15.54 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.3621, allocations: 0.6094 kB / 0.5898 GB, free: 15.54 MB / 446.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001971/0.3623, allocations: 114 kB / 0.5899 GB, free: 15.48 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.002e-05/0.3623, allocations: 6.781 kB / 0.5899 GB, free: 15.48 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.358e-06/0.3623, allocations: 2.172 kB / 0.5899 GB, free: 15.48 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.104e-05/0.3624, allocations: 1.375 kB / 0.5899 GB, free: 15.48 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.351e-05/0.3624, allocations: 11.89 kB / 0.5899 GB, free: 15.48 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.889e-06/0.3625, allocations: 1.438 kB / 0.5899 GB, free: 15.48 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.846e-05/0.3625, allocations: 8.562 kB / 0.5899 GB, free: 15.47 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.115e-06/0.3625, allocations: 7.484 kB / 0.5899 GB, free: 15.47 MB / 446.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.0001173/0.3627, allocations: 147.2 kB / 0.59 GB, free: 15.34 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.673e-05/0.3627, allocations: 16.11 kB / 0.5901 GB, free: 15.33 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.818e-05/0.3627, allocations: 22.97 kB / 0.5901 GB, free: 15.32 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.684e-06/0.3627, allocations: 1.375 kB / 0.5901 GB, free: 15.32 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.839e-06/0.3627, allocations: 0.75 kB / 0.5901 GB, free: 15.32 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.228e-06/0.3628, allocations: 9.25 kB / 0.5901 GB, free: 15.31 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001755/0.3629, allocations: 226.9 kB / 0.5903 GB, free: 15.09 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.112e-06/0.3629, allocations: 0 / 0.5903 GB, free: 15.09 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.739e-05/0.363, allocations: 14.06 kB / 0.5903 GB, free: 15.08 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.004e-06/0.363, allocations: 0.5938 kB / 0.5903 GB, free: 15.08 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.638e-06/0.363, allocations: 2.453 kB / 0.5903 GB, free: 15.08 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.112e-06/0.363, allocations: 0.625 kB / 0.5903 GB, free: 15.08 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.363, allocations: 1.219 kB / 0.5903 GB, free: 15.08 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002184/0.3632, allocations: 138.8 kB / 0.5905 GB, free: 14.99 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.71e-05/0.3633, allocations: 96.83 kB / 0.5905 GB, free: 14.88 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.34e-05/0.3633, allocations: 6.844 kB / 0.5906 GB, free: 14.88 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.508e-05/0.3634, allocations: 12.28 kB / 0.5906 GB, free: 14.87 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.316e-05/0.3635, allocations: 10.48 kB / 0.5906 GB, free: 14.87 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.136e-05/0.3635, allocations: 9 kB / 0.5906 GB, free: 14.86 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0001626/0.3636, allocations: 197.7 kB / 0.5908 GB, free: 14.75 MB / 446.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3636, allocations: 0 / 0.5908 GB, free: 14.75 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0002168/0.3639, allocations: 29.64 kB / 0.5908 GB, free: 14.75 MB / 446.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.001212/0.3651, allocations: 0.9974 MB / 0.5918 GB, free: 14.04 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0001849/0.3653, allocations: 68.97 kB / 0.5918 GB, free: 14.02 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.694e-06/0.3653, allocations: 0 / 0.5918 GB, free: 14.02 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 8.422e-05/0.3654, allocations: 35.02 kB / 0.5919 GB, free: 14.02 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002567/0.3656, allocations: 39.7 kB / 0.5919 GB, free: 14 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002002/0.3677, allocations: 1.975 MB / 0.5938 GB, free: 12.57 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002622/0.3679, allocations: 0.7211 MB / 0.5945 GB, free: 11.87 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 7.103e-05/0.368, allocations: 24.02 kB / 0.5946 GB, free: 11.87 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.337e-05/0.3681, allocations: 45.94 kB / 0.5946 GB, free: 11.84 MB / 446.1 MB Notification: Performance of SimCode: time 1.713e-06/0.3681, allocations: 4 kB / 0.5946 GB, free: 11.83 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1673/0.5354, allocations: 4.176 MB / 0.5987 GB, free: 10.84 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001877/0.5357, allocations: 225.9 kB / 0.5989 GB, free: 10.59 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.989/2.524, allocations: 0 / 0.5989 GB, free: 10.59 MB / 446.1 MB (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)