Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor.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/Buildings 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/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(Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen.I|sen.V|loa.S.1.|loa.S.2.",fileNamePrefix="Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor") translateModel(Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen.I|sen.V|loa.S.1.|loa.S.2.",fileNamePrefix="Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00156/0.00156, allocations: 112.3 kB / 16.41 MB, free: 6.008 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.001776/0.001776, allocations: 185 kB / 17.34 MB, free: 5.629 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.373/1.373, allocations: 222.9 MB / 241 MB, free: 15.19 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.565/2.565, allocations: 437 MB / 0.7112 GB, free: 4.371 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001465/0.001465, allocations: 63.91 kB / 1.019 GB, free: 9.406 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8058/0.8073, allocations: 151.6 MB / 1.167 GB, free: 3.852 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor): time 0.004179/0.8115, allocations: 2.624 MB / 1.17 GB, free: 1.215 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.002438/0.814, allocations: 1.488 MB / 1.171 GB, free: 15.72 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001433/0.8141, allocations: 4 kB / 1.171 GB, free: 15.71 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 0.0008268/0.815, allocations: 240.2 kB / 1.172 GB, free: 15.48 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 0.0005192/0.8155, allocations: 179.2 kB / 1.172 GB, free: 15.3 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004235/0.8159, allocations: 147.6 kB / 1.172 GB, free: 15.16 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.0003187/0.8163, allocations: 227.3 kB / 1.172 GB, free: 14.94 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003173/0.8166, allocations: 170.5 kB / 1.172 GB, free: 14.77 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001725/0.8168, allocations: 103.6 kB / 1.172 GB, free: 14.66 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002729/0.8171, allocations: 111.7 kB / 1.172 GB, free: 14.55 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 3.224e-05/0.8171, allocations: 16 kB / 1.172 GB, free: 14.54 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003885/0.8175, allocations: 223.5 kB / 1.173 GB, free: 14.32 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 8.87e-05/0.8176, allocations: 71.81 kB / 1.173 GB, free: 14.25 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 9.924e-05/0.8177, allocations: 91.53 kB / 1.173 GB, free: 14.16 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.000439/0.8181, allocations: 320.8 kB / 1.173 GB, free: 13.85 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 3.847e-06/0.8182, allocations: 0 / 1.173 GB, free: 13.85 MB / 0.9044 GB Notification: Performance of FrontEnd: time 1.392e-06/0.8182, allocations: 4 kB / 1.173 GB, free: 13.85 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 1.306e-05/0.8182, allocations: 0 / 1.173 GB, free: 13.85 MB / 0.9044 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 46 * Number of variables: 46 Notification: Performance of Generate backend data structure: time 0.0007979/0.819, allocations: 499.1 kB / 1.174 GB, free: 13.31 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 3.891e-05/0.819, allocations: 8.922 kB / 1.174 GB, free: 13.3 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006299/0.8197, allocations: 76.66 kB / 1.174 GB, free: 13.23 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003219/0.82, allocations: 239.9 kB / 1.174 GB, free: 12.95 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.631e-05/0.82, allocations: 8.703 kB / 1.174 GB, free: 12.95 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.501e-05/0.8201, allocations: 20.38 kB / 1.174 GB, free: 12.93 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004792/0.8206, allocations: 332.3 kB / 1.174 GB, free: 12.57 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.419e-05/0.8206, allocations: 0 / 1.174 GB, free: 12.57 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.84e-05/0.8206, allocations: 8 kB / 1.174 GB, free: 12.56 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.952e-05/0.8207, allocations: 24.27 kB / 1.174 GB, free: 12.53 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003963/0.8211, allocations: 252.6 kB / 1.175 GB, free: 12.29 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0017/0.8228, allocations: 1.63 MB / 1.176 GB, free: 10.51 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000634/0.8234, allocations: 411.2 kB / 1.177 GB, free: 10.05 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001413/0.8236, allocations: 85.67 kB / 1.177 GB, free: 9.961 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001517/0.8237, allocations: 89.09 kB / 1.177 GB, free: 9.855 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.479e-05/0.8238, allocations: 30.56 kB / 1.177 GB, free: 9.816 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=13): time 2.885e-06/0.8238, allocations: 0 / 1.177 GB, free: 9.816 MB / 0.9044 GB Notification: Performance of matching and sorting (n=14): time 0.0006568/0.8245, allocations: 308.8 kB / 1.177 GB, free: 9.508 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.463e-05/0.8245, allocations: 89.16 kB / 1.177 GB, free: 9.402 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001538/0.8247, allocations: 163.4 kB / 1.177 GB, free: 9.234 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 2.735e-05/0.8247, allocations: 29.7 kB / 1.177 GB, free: 9.199 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 8.739e-05/0.8248, allocations: 155.9 kB / 1.177 GB, free: 9.043 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 4.198e-05/0.8249, allocations: 51.28 kB / 1.177 GB, free: 8.992 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.638e-05/0.825, allocations: 53.62 kB / 1.178 GB, free: 8.934 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001108/0.8251, allocations: 322.8 kB / 1.178 GB, free: 8.609 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000124/0.8252, allocations: 84.81 kB / 1.178 GB, free: 8.523 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001733/0.8254, allocations: 163.5 kB / 1.178 GB, free: 8.332 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003064/0.8257, allocations: 246.8 kB / 1.178 GB, free: 8.059 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.8257, allocations: 0 / 1.178 GB, free: 8.059 MB / 0.9044 GB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0004095/0.8261, allocations: 274 kB / 1.179 GB, free: 7.785 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.612e-05/0.8261, allocations: 4 kB / 1.179 GB, free: 7.781 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.263e-06/0.8262, allocations: 4 kB / 1.179 GB, free: 7.777 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.681e-05/0.8262, allocations: 8.25 kB / 1.179 GB, free: 7.77 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002494/0.8264, allocations: 63.89 kB / 1.179 GB, free: 7.707 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.474e-06/0.8265, allocations: 0 / 1.179 GB, free: 7.707 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001482/0.8266, allocations: 19.98 kB / 1.179 GB, free: 7.688 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.79e-05/0.8266, allocations: 8 kB / 1.179 GB, free: 7.68 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.000183/0.8268, allocations: 172.1 kB / 1.179 GB, free: 7.508 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001569/0.827, allocations: 146.2 kB / 1.179 GB, free: 7.328 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0002709/0.8273, allocations: 235 kB / 1.179 GB, free: 7.062 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.383e-06/0.8273, allocations: 0 / 1.179 GB, free: 7.062 MB / 0.9044 GB Notification: Performance of matching and sorting (n=25) (initialization_lambda0): time 0.0003866/0.8277, allocations: 254.4 kB / 1.179 GB, free: 6.809 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.123e-05/0.8277, allocations: 8 kB / 1.179 GB, free: 6.801 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.33e-06/0.8277, allocations: 4 kB / 1.179 GB, free: 6.797 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.18e-06/0.8277, allocations: 4 kB / 1.179 GB, free: 6.793 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001907/0.8279, allocations: 59.84 kB / 1.18 GB, free: 6.734 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.051e-06/0.8279, allocations: 4 kB / 1.18 GB, free: 6.73 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001213/0.828, allocations: 7.984 kB / 1.18 GB, free: 6.723 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.739e-05/0.8281, allocations: 12.5 kB / 1.18 GB, free: 6.711 MB / 0.9044 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (25): * Single equations (assignments): 25 * Array equations: 0 * 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.0001153/0.8282, allocations: 203 kB / 1.18 GB, free: 6.508 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.794e-05/0.8283, allocations: 11.81 kB / 1.18 GB, free: 6.496 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003635/0.8286, allocations: 203.7 kB / 1.18 GB, free: 6.285 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.972e-06/0.8286, allocations: 0 / 1.18 GB, free: 6.285 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.739e-06/0.8287, allocations: 3.938 kB / 1.18 GB, free: 6.281 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.212e-06/0.8287, allocations: 7.984 kB / 1.18 GB, free: 6.273 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00129/0.83, allocations: 0.9651 MB / 1.181 GB, free: 5.195 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.35e-06/0.83, allocations: 4.047 kB / 1.181 GB, free: 5.191 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001467/0.8301, allocations: 39.89 kB / 1.181 GB, free: 5.152 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.002e-06/0.8301, allocations: 4 kB / 1.181 GB, free: 5.148 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.66e-05/0.8302, allocations: 8 kB / 1.181 GB, free: 5.141 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.34e-06/0.8302, allocations: 4 kB / 1.181 GB, free: 5.137 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.506e-06/0.8302, allocations: 16.3 kB / 1.181 GB, free: 5.121 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004046/0.8306, allocations: 438.1 kB / 1.181 GB, free: 4.641 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001198/0.8307, allocations: 108.9 kB / 1.181 GB, free: 4.516 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.067e-05/0.8308, allocations: 8 kB / 1.181 GB, free: 4.508 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001967/0.831, allocations: 19.92 kB / 1.182 GB, free: 4.488 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.5e-05/0.831, allocations: 19.92 kB / 1.182 GB, free: 4.469 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.224e-05/0.831, allocations: 8 kB / 1.182 GB, free: 4.461 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.0001178/0.8312, allocations: 139.2 kB / 1.182 GB, free: 4.324 MB / 0.9044 GB Notification: Performance of sort global known variables: time 2e-07/0.8312, allocations: 0 / 1.182 GB, free: 4.324 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0005449/0.8317, allocations: 72 kB / 1.182 GB, free: 4.254 MB / 0.9044 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 14 * Array equations: 0 * 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 Backend phase and start with SimCode phase: time 0.0001443/0.8319, allocations: 107.2 kB / 1.182 GB, free: 4.141 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0004907/0.8324, allocations: 312.7 kB / 1.182 GB, free: 3.836 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 3.767e-06/0.8324, allocations: 0 / 1.182 GB, free: 3.836 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0001102/0.8325, allocations: 84.19 kB / 1.182 GB, free: 3.754 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005023/0.833, allocations: 38.11 kB / 1.182 GB, free: 3.719 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008744/0.8339, allocations: 0.5028 MB / 1.183 GB, free: 3.145 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003919/0.8343, allocations: 0.748 MB / 1.183 GB, free: 2.371 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.017e-05/0.8344, allocations: 23.42 kB / 1.183 GB, free: 2.348 MB / 0.9044 GB Notification: Performance of SimCode: time 2.5e-07/0.8344, allocations: 0 / 1.183 GB, free: 2.348 MB / 0.9044 GB Notification: Performance of Templates: time 0.004567/0.8389, allocations: 2.363 MB / 1.186 GB, free: 15.98 MB / 0.92 GB make -j1 -f Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor.makefile (rm -f Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor.pipe ; mkfifo Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor.pipe >> ../files/Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor.sim & ./Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_AC_ThreePhasesBalanced_Sensors_Examples_GeneralizedSensor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches