Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_IDEAS.Utilities.Math.Examples.BooleanReplicator.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-master/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-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(IDEAS.Utilities.Math.Examples.BooleanReplicator,fileNamePrefix="IDEAS_dev_IDEAS_Utilities_Math_Examples_BooleanReplicator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.Math.Examples.BooleanReplicator,fileNamePrefix="IDEAS_dev_IDEAS_Utilities_Math_Examples_BooleanReplicator",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.001118/0.001118, allocations: 108 kB / 15.61 MB, free: 152 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.001136/0.001136, allocations: 196.7 kB / 16.53 MB, free: 6.699 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.477/1.477, allocations: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9561/0.9561, allocations: 135.1 MB / 425.5 MB, free: 11.92 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001701/0.001701, allocations: 71.52 kB / 0.5054 GB, free: 5.199 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1874/0.1891, allocations: 80.92 MB / 0.5845 GB, free: 4.445 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.BooleanReplicator): time 0.004284/0.1934, allocations: 1.766 MB / 0.5862 GB, free: 2.66 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.00208/0.1955, allocations: 1.018 MB / 0.5872 GB, free: 1.633 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001425/0.1957, allocations: 3.938 kB / 0.5872 GB, free: 1.629 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006773/0.1964, allocations: 166.9 kB / 0.5874 GB, free: 1.469 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003846/0.1968, allocations: 115.6 kB / 0.5875 GB, free: 1.355 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005478/0.1974, allocations: 167.5 kB / 0.5876 GB, free: 1.191 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.000315/0.1977, allocations: 163.6 kB / 0.5878 GB, free: 1.031 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001758/0.1979, allocations: 41.08 kB / 0.5878 GB, free: 0.9922 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000202/0.1981, allocations: 71.69 kB / 0.5879 GB, free: 0.9219 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001742/0.1983, allocations: 67.75 kB / 0.588 GB, free: 0.8555 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.255e-05/0.1983, allocations: 8 kB / 0.588 GB, free: 0.8477 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002316/0.1986, allocations: 59.91 kB / 0.588 GB, free: 0.7891 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 9.473e-05/0.1987, allocations: 43.84 kB / 0.5881 GB, free: 0.7461 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001096/0.1988, allocations: 63.61 kB / 0.5881 GB, free: 0.6836 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000437/0.1992, allocations: 187.7 kB / 0.5883 GB, free: 0.5 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.462e-06/0.1992, allocations: 0 / 0.5883 GB, free: 0.5 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.1992, allocations: 0 / 0.5883 GB, free: 0.5 MB / 494.1 MB Notification: Performance of Transformations before backend: time 9.558e-06/0.1993, allocations: 0 / 0.5883 GB, free: 0.5 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: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.0009226/0.2002, allocations: 0.4963 MB / 0.5888 GB, free: 15.95 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.127e-05/0.2002, allocations: 8.031 kB / 0.5888 GB, free: 15.94 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.163e-05/0.2003, allocations: 38.75 kB / 0.5888 GB, free: 15.89 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.442e-05/0.2004, allocations: 16.75 kB / 0.5888 GB, free: 15.88 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000335/0.2007, allocations: 248.8 kB / 0.5891 GB, free: 15.6 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.589e-05/0.2007, allocations: 4.375 kB / 0.5891 GB, free: 15.59 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.5e-05/0.2008, allocations: 7.938 kB / 0.5891 GB, free: 15.59 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002173/0.201, allocations: 95.31 kB / 0.5892 GB, free: 15.48 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.478e-06/0.201, allocations: 0 / 0.5892 GB, free: 15.48 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.244e-05/0.201, allocations: 0 / 0.5892 GB, free: 15.48 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.424e-05/0.201, allocations: 4 kB / 0.5892 GB, free: 15.48 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001162/0.2012, allocations: 35.92 kB / 0.5892 GB, free: 15.44 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006417/0.2018, allocations: 356.7 kB / 0.5896 GB, free: 15.04 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000209/0.202, allocations: 74.67 kB / 0.5896 GB, free: 14.96 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.381e-05/0.2021, allocations: 36.84 kB / 0.5897 GB, free: 14.92 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.953e-05/0.2021, allocations: 0 / 0.5897 GB, free: 14.92 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001859/0.2023, allocations: 79.33 kB / 0.5897 GB, free: 14.83 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=10): time 1.573e-06/0.2023, allocations: 0 / 0.5897 GB, free: 14.83 MB / 0.4981 GB Notification: Performance of matching and sorting (n=10): time 0.0003774/0.2027, allocations: 153.2 kB / 0.5899 GB, free: 14.68 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.132e-05/0.2028, allocations: 85.09 kB / 0.59 GB, free: 14.57 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002728/0.2031, allocations: 262.9 kB / 0.5902 GB, free: 14.3 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.569e-05/0.2031, allocations: 25.7 kB / 0.5902 GB, free: 14.27 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001033/0.2032, allocations: 116.1 kB / 0.5904 GB, free: 14.16 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 3.81e-05/0.2033, allocations: 27.64 kB / 0.5904 GB, free: 14.13 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.031e-05/0.2033, allocations: 29.7 kB / 0.5904 GB, free: 14.09 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001255/0.2035, allocations: 330.8 kB / 0.5907 GB, free: 13.76 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.362e-05/0.2036, allocations: 27.98 kB / 0.5908 GB, free: 13.73 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.405e-05/0.2037, allocations: 59.41 kB / 0.5908 GB, free: 13.66 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001405/0.2038, allocations: 73.64 kB / 0.5909 GB, free: 13.59 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.2038, allocations: 0 / 0.5909 GB, free: 13.59 MB / 0.4981 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002423/0.2041, allocations: 109.5 kB / 0.591 GB, free: 13.47 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.704e-05/0.2041, allocations: 12 kB / 0.591 GB, free: 13.46 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.123e-06/0.2041, allocations: 0 / 0.591 GB, free: 13.46 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.399e-05/0.2041, allocations: 0 / 0.591 GB, free: 13.46 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.888e-05/0.2042, allocations: 15.98 kB / 0.591 GB, free: 13.45 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.582e-06/0.2042, allocations: 0 / 0.591 GB, free: 13.45 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.466e-05/0.2043, allocations: 11.84 kB / 0.591 GB, free: 13.43 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.137e-06/0.2043, allocations: 4.109 kB / 0.591 GB, free: 13.43 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 10 ($PRE.booTab.combiTimeTable.nextTimeEvent,$whenCondition1,booRep.y[4],booRep.y[3],booRep.y[2],booRep.y[1],booTab.combiTimeTable.nextTimeEventScaled,$PRE.booTab.combiTimeTable.nextTimeEventScaled,booTab.combiTimeTable.nextTimeEvent,booTab.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.0001432/0.2045, allocations: 155 kB / 0.5912 GB, free: 13.27 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.165e-05/0.2045, allocations: 16.19 kB / 0.5912 GB, free: 13.25 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.843e-05/0.2046, allocations: 21.39 kB / 0.5912 GB, free: 13.23 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.134e-05/0.2046, allocations: 4 kB / 0.5912 GB, free: 13.23 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.959e-06/0.2046, allocations: 0 / 0.5912 GB, free: 13.23 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.953e-06/0.2046, allocations: 7.875 kB / 0.5912 GB, free: 13.22 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000221/0.2048, allocations: 225.5 kB / 0.5914 GB, free: 12.95 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.635e-06/0.2048, allocations: 0 / 0.5914 GB, free: 12.95 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.297e-05/0.2049, allocations: 4 kB / 0.5914 GB, free: 12.95 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.958e-06/0.2049, allocations: 3.984 kB / 0.5914 GB, free: 12.94 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.262e-05/0.2049, allocations: 7.984 kB / 0.5915 GB, free: 12.93 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.703e-06/0.2049, allocations: 4 kB / 0.5915 GB, free: 12.93 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.2049, allocations: 0 / 0.5915 GB, free: 12.93 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002337/0.2051, allocations: 140.8 kB / 0.5916 GB, free: 12.77 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 6.075e-05/0.2052, allocations: 96.91 kB / 0.5917 GB, free: 12.66 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.978e-05/0.2052, allocations: 4 kB / 0.5917 GB, free: 12.66 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.737e-05/0.2053, allocations: 0 / 0.5917 GB, free: 12.66 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.351e-05/0.2053, allocations: 11.92 kB / 0.5917 GB, free: 12.64 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.052e-05/0.2054, allocations: 4 kB / 0.5917 GB, free: 12.64 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001746/0.2055, allocations: 196.6 kB / 0.5919 GB, free: 12.45 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2.7e-07/0.2056, allocations: 0 / 0.5919 GB, free: 12.45 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002562/0.2058, allocations: 35.98 kB / 0.5919 GB, free: 12.41 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition1,booTab.y,booTab.combiTimeTable.nextTimeEvent,booTab.combiTimeTable.nextTimeEventScaled,booRep.y[1],booRep.y[2],booRep.y[3],booRep.y[4]) * Number of discrete states: 2 (booTab.combiTimeTable.nextTimeEventScaled,booTab.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.001577/0.2074, allocations: 0.9977 MB / 0.5929 GB, free: 11.57 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.000234/0.2076, allocations: 75.91 kB / 0.593 GB, free: 11.49 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.2077, allocations: 0 / 0.593 GB, free: 11.49 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 8.884e-05/0.2078, allocations: 35.98 kB / 0.593 GB, free: 11.46 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003168/0.2081, allocations: 44.81 kB / 0.593 GB, free: 11.42 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002191/0.2103, allocations: 1.954 MB / 0.595 GB, free: 9.375 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002943/0.2106, allocations: 0.7279 MB / 0.5957 GB, free: 8.621 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 7.845e-05/0.2107, allocations: 21.72 kB / 0.5957 GB, free: 8.598 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.891e-05/0.2108, allocations: 47.42 kB / 0.5957 GB, free: 8.555 MB / 0.4981 GB Notification: Performance of SimCode: time 3.01e-07/0.2108, allocations: 0 / 0.5957 GB, free: 8.555 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02419/0.235, allocations: 4.418 MB / 0.6 GB, free: 4.223 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.427/7.662, allocations: 13.59 kB / 0.6001 GB, free: 4.211 MB / 0.4981 GB (rm -f IDEAS_dev_IDEAS.Utilities.Math.Examples.BooleanReplicator.pipe ; mkfifo IDEAS_dev_IDEAS.Utilities.Math.Examples.BooleanReplicator.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Utilities.Math.Examples.BooleanReplicator.pipe >> ../files/IDEAS_dev_IDEAS.Utilities.Math.Examples.BooleanReplicator.sim & python3 -m fmpy simulate --output-file IDEAS_dev_IDEAS.Utilities.Math.Examples.BooleanReplicator_res.csv --start-time 0 --stop-time 600 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.24 IDEAS_dev_IDEAS_Utilities_Math_Examples_BooleanReplicator.fmu > IDEAS_dev_IDEAS.Utilities.Math.Examples.BooleanReplicator.pipe 2>&1)