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: translateModel(BuildingSystems.Utilities.Math.Examples.BooleanReplicator,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Examples.BooleanReplicator") translateModel(BuildingSystems.Utilities.Math.Examples.BooleanReplicator,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Examples.BooleanReplicator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001548/0.001548, allocations: 107.3 kB / 16.41 MB, free: 6.406 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.001724/0.001724, allocations: 191.4 kB / 17.34 MB, free: 5.695 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 / 241 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00206/0.00206, allocations: 288.8 kB / 291.5 MB, free: 14.44 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8931/0.8931, allocations: 169.3 MB / 0.499 GB, free: 4.441 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001766/0.001766, allocations: 87.86 kB / 0.6821 GB, free: 6.98 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3922/0.394, allocations: 86.97 MB / 0.767 GB, free: 3.953 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.BooleanReplicator): time 0.002898/0.3969, allocations: 1.777 MB / 0.7688 GB, free: 2.164 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.001513/0.3985, allocations: 1.027 MB / 0.7698 GB, free: 1.129 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.249e-05/0.3986, allocations: 7.938 kB / 0.7698 GB, free: 1.121 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.000598/0.3992, allocations: 155.5 kB / 0.7699 GB, free: 0.9688 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.0002843/0.3995, allocations: 123.6 kB / 0.7701 GB, free: 0.8477 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004796/0.3999, allocations: 162.9 kB / 0.7702 GB, free: 0.6914 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.000243/0.4002, allocations: 171.6 kB / 0.7704 GB, free: 0.5234 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001174/0.4003, allocations: 20.88 kB / 0.7704 GB, free: 0.5039 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001431/0.4005, allocations: 79.67 kB / 0.7705 GB, free: 436 kB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001312/0.4006, allocations: 67.77 kB / 0.7705 GB, free: 368 kB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 2.817e-05/0.4006, allocations: 8 kB / 0.7705 GB, free: 360 kB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001647/0.4008, allocations: 67.89 kB / 0.7706 GB, free: 292 kB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 8.119e-05/0.4009, allocations: 43.84 kB / 0.7707 GB, free: 248 kB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 7.299e-05/0.401, allocations: 63.59 kB / 0.7707 GB, free: 184 kB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.000319/0.4013, allocations: 201.7 kB / 0.7709 GB, free: 15.98 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 4.739e-06/0.4013, allocations: 0 / 0.7709 GB, free: 15.98 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.693e-06/0.4013, allocations: 0 / 0.7709 GB, free: 15.98 MB / 0.545 GB Notification: Performance of Transformations before backend: time 7.454e-06/0.4013, allocations: 0 / 0.7709 GB, free: 15.98 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.0008297/0.4022, allocations: 496.3 kB / 0.7714 GB, free: 15.45 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.652e-05/0.4022, allocations: 8.031 kB / 0.7714 GB, free: 15.44 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.343e-05/0.4023, allocations: 16.75 kB / 0.7714 GB, free: 15.42 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003056/0.4026, allocations: 244.9 kB / 0.7716 GB, free: 15.14 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.456e-05/0.4026, allocations: 4.312 kB / 0.7716 GB, free: 15.14 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.661e-05/0.4027, allocations: 12.06 kB / 0.7717 GB, free: 15.13 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002011/0.4029, allocations: 87.38 kB / 0.7717 GB, free: 15.03 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.566e-06/0.4029, allocations: 0 / 0.7717 GB, free: 15.03 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.467e-05/0.4029, allocations: 8 kB / 0.7717 GB, free: 15.02 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.769e-05/0.4029, allocations: 3.938 kB / 0.7717 GB, free: 15.02 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.656e-05/0.403, allocations: 35.98 kB / 0.7718 GB, free: 14.98 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000545/0.4036, allocations: 360.5 kB / 0.7721 GB, free: 14.58 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000186/0.4038, allocations: 78.66 kB / 0.7722 GB, free: 14.5 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.612e-05/0.4039, allocations: 36.84 kB / 0.7722 GB, free: 14.46 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 2.078e-05/0.4039, allocations: 0 / 0.7722 GB, free: 14.46 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000165/0.404, allocations: 79.33 kB / 0.7723 GB, free: 14.37 MB / 0.545 GB Notification: Performance of pre-optimization done (n=10): time 1.443e-06/0.4041, allocations: 4 kB / 0.7723 GB, free: 14.36 MB / 0.545 GB Notification: Performance of matching and sorting (n=10): time 0.0003162/0.4044, allocations: 141.4 kB / 0.7724 GB, free: 14.22 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.803e-05/0.4044, allocations: 81.11 kB / 0.7725 GB, free: 14.12 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002517/0.4047, allocations: 267.6 kB / 0.7728 GB, free: 13.85 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 2.031e-05/0.4047, allocations: 25.7 kB / 0.7728 GB, free: 13.82 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 7.684e-05/0.4048, allocations: 116.1 kB / 0.7729 GB, free: 13.7 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 3.132e-05/0.4048, allocations: 31.62 kB / 0.7729 GB, free: 13.67 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.673e-05/0.4049, allocations: 25.72 kB / 0.773 GB, free: 13.64 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.000104/0.405, allocations: 334.8 kB / 0.7733 GB, free: 13.3 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.105e-05/0.4051, allocations: 24 kB / 0.7733 GB, free: 13.28 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.975e-05/0.4052, allocations: 63.41 kB / 0.7734 GB, free: 13.21 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001193/0.4053, allocations: 74.02 kB / 0.7734 GB, free: 13.13 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.335e-06/0.4053, allocations: 0 / 0.7734 GB, free: 13.13 MB / 0.545 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001977/0.4055, allocations: 121.4 kB / 0.7736 GB, free: 13 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.527e-05/0.4055, allocations: 8 kB / 0.7736 GB, free: 13 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.39e-06/0.4055, allocations: 0 / 0.7736 GB, free: 13 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.298e-05/0.4056, allocations: 0 / 0.7736 GB, free: 13 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.432e-05/0.4056, allocations: 16.05 kB / 0.7736 GB, free: 12.98 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.745e-06/0.4056, allocations: 4 kB / 0.7736 GB, free: 12.98 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.796e-05/0.4057, allocations: 7.938 kB / 0.7736 GB, free: 12.97 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.003e-06/0.4057, allocations: 0 / 0.7736 GB, free: 12.97 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.0001194/0.4058, allocations: 148.2 kB / 0.7737 GB, free: 12.82 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.667e-05/0.4059, allocations: 11.81 kB / 0.7737 GB, free: 12.8 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.411e-05/0.4059, allocations: 21.39 kB / 0.7738 GB, free: 12.78 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.349e-05/0.4059, allocations: 4 kB / 0.7738 GB, free: 12.78 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.159e-06/0.406, allocations: 8 kB / 0.7738 GB, free: 12.77 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.248e-06/0.406, allocations: 3.938 kB / 0.7738 GB, free: 12.77 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001883/0.4062, allocations: 225.5 kB / 0.774 GB, free: 12.5 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.104e-06/0.4062, allocations: 0 / 0.774 GB, free: 12.5 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.276e-05/0.4062, allocations: 7.984 kB / 0.774 GB, free: 12.49 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.294e-06/0.4062, allocations: 0 / 0.774 GB, free: 12.49 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.112e-05/0.4062, allocations: 4 kB / 0.774 GB, free: 12.48 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.794e-06/0.4062, allocations: 0 / 0.774 GB, free: 12.48 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.4062, allocations: 0 / 0.774 GB, free: 12.48 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002159/0.4064, allocations: 152.8 kB / 0.7742 GB, free: 12.32 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 6.396e-05/0.4065, allocations: 92.86 kB / 0.7742 GB, free: 12.21 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.666e-05/0.4066, allocations: 4 kB / 0.7742 GB, free: 12.2 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.969e-05/0.4066, allocations: 4 kB / 0.7743 GB, free: 12.2 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.753e-05/0.4067, allocations: 7.984 kB / 0.7743 GB, free: 12.19 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.154e-05/0.4067, allocations: 7.938 kB / 0.7743 GB, free: 12.18 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0001786/0.4069, allocations: 188.6 kB / 0.7744 GB, free: 12 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.2e-07/0.4069, allocations: 0 / 0.7744 GB, free: 12 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002427/0.4071, allocations: 35.98 kB / 0.7745 GB, free: 11.96 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.0009443/0.4081, allocations: 430.4 kB / 0.7749 GB, free: 11.7 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0001979/0.4083, allocations: 67.92 kB / 0.775 GB, free: 11.63 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.4083, allocations: 0 / 0.775 GB, free: 11.63 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 8.675e-05/0.4084, allocations: 39.92 kB / 0.775 GB, free: 11.59 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002922/0.4087, allocations: 38.97 kB / 0.775 GB, free: 11.56 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005237/0.4092, allocations: 332.8 kB / 0.7753 GB, free: 11.2 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003/0.4095, allocations: 0.724 MB / 0.7761 GB, free: 10.45 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.378e-05/0.4096, allocations: 19.42 kB / 0.7761 GB, free: 10.43 MB / 0.545 GB Notification: Performance of SimCode: time 1.8e-07/0.4096, allocations: 0 / 0.7761 GB, free: 10.43 MB / 0.545 GB Notification: Performance of Templates: time 0.004405/0.414, allocations: 2.571 MB / 0.7786 GB, free: 7.887 MB / 0.545 GB make -j1 -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.BooleanReplicator.makefile (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 & ./BuildingSystems_BuildingSystems.Utilities.Math.Examples.BooleanReplicator -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Math.Examples.BooleanReplicator.pipe 2>&1)