Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/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.BooleanReplicator,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_BooleanReplicator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Examples.BooleanReplicator,fileNamePrefix="BuildingSystems_BuildingSystems_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.005183/0.005183, allocations: 101.6 kB / 15.73 MB, free: 5.539 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.001193/0.001193, allocations: 193.1 kB / 16.67 MB, free: 5.469 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.287/1.287, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001975/0.001975, allocations: 286.7 kB / 290.8 MB, free: 14.46 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8925/0.8925, allocations: 169.3 MB / 0.4983 GB, free: 4.453 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001875/0.001875, allocations: 95.83 kB / 0.681 GB, free: 7.496 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4224/0.4243, allocations: 86.98 MB / 0.7659 GB, free: 3.914 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.BooleanReplicator): time 0.002853/0.4272, allocations: 1.777 MB / 0.7676 GB, free: 2.125 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.001494/0.4287, allocations: 1.02 MB / 0.7686 GB, free: 1.098 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001054/0.4288, allocations: 0 / 0.7686 GB, free: 1.098 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.0006179/0.4295, allocations: 167.5 kB / 0.7688 GB, free: 0.9336 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.0002963/0.4298, allocations: 111.6 kB / 0.7689 GB, free: 0.8242 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.000477/0.4303, allocations: 174.3 kB / 0.7691 GB, free: 0.6562 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.0002306/0.4305, allocations: 163.6 kB / 0.7692 GB, free: 0.4961 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001175/0.4307, allocations: 35.64 kB / 0.7693 GB, free: 476 kB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001272/0.4308, allocations: 75.64 kB / 0.7693 GB, free: 400 kB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001146/0.4309, allocations: 63.75 kB / 0.7694 GB, free: 336 kB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 2.117e-05/0.4309, allocations: 8 kB / 0.7694 GB, free: 328 kB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001599/0.4311, allocations: 63.95 kB / 0.7695 GB, free: 264 kB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 7.07e-05/0.4312, allocations: 47.78 kB / 0.7695 GB, free: 216 kB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 7.477e-05/0.4313, allocations: 59.67 kB / 0.7696 GB, free: 156 kB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0003157/0.4316, allocations: 203.4 kB / 0.7698 GB, free: 15.95 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 5.671e-06/0.4316, allocations: 0 / 0.7698 GB, free: 15.95 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.373e-06/0.4316, allocations: 3.938 kB / 0.7698 GB, free: 15.95 MB / 0.545 GB Notification: Performance of Transformations before backend: time 6.693e-06/0.4316, allocations: 0 / 0.7698 GB, free: 15.95 MB / 0.545 GB 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.0006912/0.4323, allocations: 496.2 kB / 0.7702 GB, free: 15.41 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.538e-05/0.4324, allocations: 12.03 kB / 0.7703 GB, free: 15.4 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.381e-05/0.4324, allocations: 34.73 kB / 0.7703 GB, free: 15.36 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.883e-05/0.4325, allocations: 20.75 kB / 0.7703 GB, free: 15.34 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002718/0.4327, allocations: 240.9 kB / 0.7705 GB, free: 15.06 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.348e-05/0.4328, allocations: 8.375 kB / 0.7705 GB, free: 15.05 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.485e-05/0.4328, allocations: 7.938 kB / 0.7705 GB, free: 15.04 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001725/0.433, allocations: 91.25 kB / 0.7706 GB, free: 14.94 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.903e-06/0.433, allocations: 3.938 kB / 0.7706 GB, free: 14.94 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.315e-05/0.433, allocations: 8 kB / 0.7706 GB, free: 14.93 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.699e-05/0.433, allocations: 3.984 kB / 0.7707 GB, free: 14.93 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.289e-05/0.4331, allocations: 31.98 kB / 0.7707 GB, free: 14.89 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004624/0.4336, allocations: 356.6 kB / 0.771 GB, free: 14.5 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001822/0.4338, allocations: 70.67 kB / 0.7711 GB, free: 14.42 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.447e-05/0.4339, allocations: 36.84 kB / 0.7711 GB, free: 14.38 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 2.031e-05/0.4339, allocations: 3.984 kB / 0.7711 GB, free: 14.38 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001508/0.434, allocations: 91.3 kB / 0.7712 GB, free: 14.27 MB / 0.545 GB Notification: Performance of pre-optimization done (n=10): time 1.623e-06/0.434, allocations: 4 kB / 0.7712 GB, free: 14.27 MB / 0.545 GB Notification: Performance of matching and sorting (n=10): time 0.0003147/0.4344, allocations: 137.4 kB / 0.7713 GB, free: 14.13 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.425e-05/0.4344, allocations: 81.11 kB / 0.7714 GB, free: 14.03 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002557/0.4347, allocations: 271.5 kB / 0.7717 GB, free: 13.76 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 1.56e-05/0.4347, allocations: 25.7 kB / 0.7717 GB, free: 13.73 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 7.036e-05/0.4348, allocations: 116.1 kB / 0.7718 GB, free: 13.61 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 2.697e-05/0.4348, allocations: 27.66 kB / 0.7718 GB, free: 13.58 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.5e-05/0.4349, allocations: 29.7 kB / 0.7719 GB, free: 13.55 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001034/0.435, allocations: 326.8 kB / 0.7722 GB, free: 13.22 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.548e-05/0.435, allocations: 27.98 kB / 0.7722 GB, free: 13.19 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.876e-05/0.4351, allocations: 59.41 kB / 0.7723 GB, free: 13.12 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000125/0.4353, allocations: 82.03 kB / 0.7723 GB, free: 13.04 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.4353, allocations: 3.938 kB / 0.7724 GB, free: 13.03 MB / 0.545 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001934/0.4355, allocations: 109.4 kB / 0.7725 GB, free: 12.92 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.434e-05/0.4355, allocations: 8 kB / 0.7725 GB, free: 12.91 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.172e-06/0.4355, allocations: 0 / 0.7725 GB, free: 12.91 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.454e-05/0.4355, allocations: 112 / 0.7725 GB, free: 12.91 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.146e-05/0.4356, allocations: 15.94 kB / 0.7725 GB, free: 12.89 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.323e-06/0.4356, allocations: 4 kB / 0.7725 GB, free: 12.89 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.968e-05/0.4357, allocations: 11.92 kB / 0.7725 GB, free: 12.88 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.632e-06/0.4357, allocations: 4.031 kB / 0.7725 GB, free: 12.88 MB / 0.545 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.0001143/0.4358, allocations: 145.8 kB / 0.7726 GB, free: 12.72 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.78e-05/0.4358, allocations: 15.72 kB / 0.7727 GB, free: 12.71 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.257e-05/0.4359, allocations: 25.38 kB / 0.7727 GB, free: 12.68 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.091e-05/0.4359, allocations: 4 kB / 0.7727 GB, free: 12.68 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.2e-06/0.4359, allocations: 4 kB / 0.7727 GB, free: 12.67 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.218e-06/0.4359, allocations: 3.938 kB / 0.7727 GB, free: 12.67 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001696/0.4361, allocations: 217.6 kB / 0.7729 GB, free: 12.41 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.4361, allocations: 0 / 0.7729 GB, free: 12.41 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.291e-05/0.4361, allocations: 8 kB / 0.7729 GB, free: 12.4 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.924e-06/0.4362, allocations: 0 / 0.7729 GB, free: 12.4 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.888e-06/0.4362, allocations: 4 kB / 0.7729 GB, free: 12.39 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.733e-06/0.4362, allocations: 0 / 0.7729 GB, free: 12.39 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.4362, allocations: 0 / 0.7729 GB, free: 12.39 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000211/0.4364, allocations: 148.8 kB / 0.773 GB, free: 12.23 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 5.586e-05/0.4365, allocations: 100.9 kB / 0.7731 GB, free: 12.11 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.687e-05/0.4365, allocations: 3.984 kB / 0.7731 GB, free: 12.11 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.901e-05/0.4365, allocations: 8 kB / 0.7732 GB, free: 12.1 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.137e-05/0.4366, allocations: 3.938 kB / 0.7732 GB, free: 12.1 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.149e-05/0.4366, allocations: 7.984 kB / 0.7732 GB, free: 12.09 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0001622/0.4368, allocations: 192.6 kB / 0.7734 GB, free: 11.9 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.2e-07/0.4368, allocations: 0 / 0.7734 GB, free: 11.9 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002353/0.437, allocations: 31.94 kB / 0.7734 GB, free: 11.87 MB / 0.545 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.001246/0.4383, allocations: 0.9968 MB / 0.7744 GB, free: 11 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0001978/0.4385, allocations: 71.91 kB / 0.7744 GB, free: 10.93 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.245e-06/0.4385, allocations: 0 / 0.7744 GB, free: 10.93 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 7.505e-05/0.4386, allocations: 35.98 kB / 0.7745 GB, free: 10.9 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002764/0.4389, allocations: 42.81 kB / 0.7745 GB, free: 10.86 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002045/0.4409, allocations: 1.966 MB / 0.7764 GB, free: 8.812 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002469/0.4412, allocations: 0.724 MB / 0.7771 GB, free: 8.062 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 7.388e-05/0.4413, allocations: 25.72 kB / 0.7772 GB, free: 8.035 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.259e-05/0.4413, allocations: 47.42 kB / 0.7772 GB, free: 7.992 MB / 0.545 GB Notification: Performance of SimCode: time 3.31e-07/0.4414, allocations: 0 / 0.7772 GB, free: 7.992 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02059/0.4619, allocations: 4.576 MB / 0.7817 GB, free: 3.566 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.162/7.624, allocations: 4.531 kB / 0.7817 GB, free: 3.566 MB / 0.545 GB (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.BooleanReplicator.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Examples.BooleanReplicator.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Examples.BooleanReplicator.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Examples.BooleanReplicator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Utilities_Math_Examples_BooleanReplicator_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Utilities_Math_Examples_BooleanReplicator.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Examples.BooleanReplicator.pipe 2>&1)