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.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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.001445/0.001445, allocations: 100.1 kB / 15.88 MB, free: 12 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.001646/0.001646, allocations: 200.4 kB / 16.79 MB, free: 6.828 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.378/1.378, allocations: 222.9 MB / 240.5 MB, free: 4.609 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.661/2.661, allocations: 437 MB / 0.7106 GB, free: 5.336 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001338/0.001338, allocations: 60.09 kB / 0.8692 GB, free: 5.188 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6244/0.6258, allocations: 151.6 MB / 1.017 GB, free: 2.816 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor): time 0.004215/0.63, allocations: 2.668 MB / 1.02 GB, free: 140 kB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.002345/0.6324, allocations: 1.504 MB / 1.021 GB, free: 14.62 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000164/0.6326, allocations: 8 kB / 1.021 GB, free: 14.62 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0007971/0.6334, allocations: 215.3 kB / 1.022 GB, free: 14.41 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0004866/0.6339, allocations: 167.4 kB / 1.022 GB, free: 14.24 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003961/0.6344, allocations: 131.8 kB / 1.022 GB, free: 14.11 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0003966/0.6348, allocations: 347.1 kB / 1.022 GB, free: 13.77 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003854/0.6352, allocations: 169.9 kB / 1.022 GB, free: 13.6 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001749/0.6353, allocations: 87.62 kB / 1.022 GB, free: 13.52 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002811/0.6356, allocations: 123.5 kB / 1.023 GB, free: 13.39 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 3.059e-05/0.6357, allocations: 12 kB / 1.023 GB, free: 13.38 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004522/0.6361, allocations: 275.4 kB / 1.023 GB, free: 13.11 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001069/0.6362, allocations: 63.88 kB / 1.023 GB, free: 13.05 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001267/0.6364, allocations: 87.52 kB / 1.023 GB, free: 12.96 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.000363/0.6368, allocations: 253.5 kB / 1.023 GB, free: 12.72 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.418e-06/0.6368, allocations: 0 / 1.023 GB, free: 12.72 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.242e-06/0.6368, allocations: 0 / 1.023 GB, free: 12.72 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 1.084e-05/0.6368, allocations: 0 / 1.023 GB, free: 12.72 MB / 0.7794 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.0008277/0.6376, allocations: 495 kB / 1.024 GB, free: 12.19 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.807e-05/0.6377, allocations: 8.031 kB / 1.024 GB, free: 12.18 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006082/0.6383, allocations: 76.66 kB / 1.024 GB, free: 12.11 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002901/0.6386, allocations: 232 kB / 1.024 GB, free: 11.84 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.568e-05/0.6386, allocations: 12.7 kB / 1.024 GB, free: 11.83 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.313e-05/0.6387, allocations: 20.38 kB / 1.024 GB, free: 11.81 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004804/0.6391, allocations: 324.3 kB / 1.024 GB, free: 11.46 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.496e-05/0.6392, allocations: 0 / 1.024 GB, free: 11.46 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.862e-05/0.6392, allocations: 12 kB / 1.024 GB, free: 11.45 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.058e-05/0.6392, allocations: 20.27 kB / 1.024 GB, free: 11.42 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003787/0.6396, allocations: 252.6 kB / 1.025 GB, free: 11.18 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001541/0.6412, allocations: 1.642 MB / 1.026 GB, free: 9.387 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006218/0.6418, allocations: 411.2 kB / 1.027 GB, free: 8.93 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001253/0.642, allocations: 81.67 kB / 1.027 GB, free: 8.844 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001501/0.6421, allocations: 89.09 kB / 1.027 GB, free: 8.738 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.351e-05/0.6421, allocations: 38.56 kB / 1.027 GB, free: 8.691 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=13): time 1.893e-06/0.6422, allocations: 0 / 1.027 GB, free: 8.691 MB / 0.7794 GB Notification: Performance of matching and sorting (n=14): time 0.0006779/0.6428, allocations: 312.5 kB / 1.027 GB, free: 8.379 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.338e-05/0.6429, allocations: 81.11 kB / 1.027 GB, free: 8.281 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001651/0.6431, allocations: 173.7 kB / 1.027 GB, free: 8.105 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.889e-05/0.6431, allocations: 25.7 kB / 1.027 GB, free: 8.074 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 8.957e-05/0.6432, allocations: 156 kB / 1.028 GB, free: 7.918 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 5.209e-05/0.6432, allocations: 55.19 kB / 1.028 GB, free: 7.863 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.5e-05/0.6433, allocations: 45.7 kB / 1.028 GB, free: 7.812 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001137/0.6434, allocations: 326.8 kB / 1.028 GB, free: 7.484 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001343/0.6436, allocations: 80.81 kB / 1.028 GB, free: 7.402 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001612/0.6438, allocations: 150.9 kB / 1.028 GB, free: 7.223 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003064/0.6441, allocations: 249.2 kB / 1.028 GB, free: 6.945 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.413e-06/0.6441, allocations: 0 / 1.028 GB, free: 6.945 MB / 0.7794 GB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0003955/0.6445, allocations: 277 kB / 1.029 GB, free: 6.672 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.665e-05/0.6445, allocations: 4 kB / 1.029 GB, free: 6.668 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.564e-06/0.6445, allocations: 7.938 kB / 1.029 GB, free: 6.66 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.854e-05/0.6445, allocations: 7.938 kB / 1.029 GB, free: 6.652 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002368/0.6448, allocations: 55.89 kB / 1.029 GB, free: 6.598 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.916e-06/0.6448, allocations: 0 / 1.029 GB, free: 6.598 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001407/0.6449, allocations: 19.98 kB / 1.029 GB, free: 6.578 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.078e-05/0.645, allocations: 11.98 kB / 1.029 GB, free: 6.566 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.000178/0.6452, allocations: 176.4 kB / 1.029 GB, free: 6.391 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001521/0.6453, allocations: 146.9 kB / 1.029 GB, free: 6.211 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0002754/0.6456, allocations: 246 kB / 1.029 GB, free: 5.934 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.433e-06/0.6456, allocations: 0 / 1.029 GB, free: 5.934 MB / 0.7794 GB Notification: Performance of matching and sorting (n=25) (initialization_lambda0): time 0.0003582/0.646, allocations: 249.2 kB / 1.03 GB, free: 5.684 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.017e-05/0.646, allocations: 8 kB / 1.03 GB, free: 5.676 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.605e-06/0.646, allocations: 352 / 1.03 GB, free: 5.676 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.29e-06/0.646, allocations: 8 kB / 1.03 GB, free: 5.668 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001734/0.6462, allocations: 55.84 kB / 1.03 GB, free: 5.613 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.352e-06/0.6462, allocations: 4 kB / 1.03 GB, free: 5.609 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001151/0.6463, allocations: 11.98 kB / 1.03 GB, free: 5.598 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.473e-05/0.6463, allocations: 8 kB / 1.03 GB, free: 5.59 MB / 0.7794 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.0001019/0.6465, allocations: 204 kB / 1.03 GB, free: 5.387 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.707e-05/0.6465, allocations: 15.8 kB / 1.03 GB, free: 5.371 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003407/0.6469, allocations: 207.7 kB / 1.03 GB, free: 5.16 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.046e-06/0.6469, allocations: 0 / 1.03 GB, free: 5.16 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.881e-06/0.6469, allocations: 0 / 1.03 GB, free: 5.16 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.286e-06/0.6469, allocations: 7.938 kB / 1.03 GB, free: 5.152 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001159/0.6481, allocations: 0.9577 MB / 1.031 GB, free: 4.082 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.133e-06/0.6481, allocations: 12.03 kB / 1.031 GB, free: 4.07 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001363/0.6482, allocations: 31.92 kB / 1.031 GB, free: 4.039 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.993e-06/0.6482, allocations: 8.031 kB / 1.031 GB, free: 4.031 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.641e-05/0.6483, allocations: 12 kB / 1.031 GB, free: 4.02 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.592e-06/0.6483, allocations: 7.984 kB / 1.031 GB, free: 4.012 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.044e-06/0.6483, allocations: 11.88 kB / 1.031 GB, free: 4 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003801/0.6487, allocations: 432.8 kB / 1.031 GB, free: 3.523 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 9.06e-05/0.6488, allocations: 108.9 kB / 1.032 GB, free: 3.398 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.442e-05/0.6488, allocations: 7.906 kB / 1.032 GB, free: 3.391 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001836/0.649, allocations: 15.98 kB / 1.032 GB, free: 3.375 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.318e-05/0.649, allocations: 15.92 kB / 1.032 GB, free: 3.359 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.191e-05/0.6491, allocations: 12 kB / 1.032 GB, free: 3.348 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0001117/0.6492, allocations: 135.2 kB / 1.032 GB, free: 3.215 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.1e-07/0.6492, allocations: 0 / 1.032 GB, free: 3.215 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0004982/0.6497, allocations: 72 kB / 1.032 GB, free: 3.145 MB / 0.7794 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.000138/0.6498, allocations: 103.2 kB / 1.032 GB, free: 3.031 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0004507/0.6503, allocations: 311.7 kB / 1.032 GB, free: 2.73 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 3.106e-06/0.6503, allocations: 3.938 kB / 1.032 GB, free: 2.727 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001061/0.6504, allocations: 81.33 kB / 1.032 GB, free: 2.648 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004929/0.6509, allocations: 41 kB / 1.032 GB, free: 2.609 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008361/0.6518, allocations: 0.582 MB / 1.033 GB, free: 1.957 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003138/0.6521, allocations: 0.7402 MB / 1.034 GB, free: 1.191 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.687e-05/0.6522, allocations: 27.42 kB / 1.034 GB, free: 1.168 MB / 0.7794 GB Notification: Performance of SimCode: time 2.11e-07/0.6522, allocations: 0 / 1.034 GB, free: 1.168 MB / 0.7794 GB Notification: Performance of Templates: time 0.004166/0.6563, allocations: 2.333 MB / 1.036 GB, free: 14.84 MB / 0.795 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