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.001758/0.001758, allocations: 102.2 kB / 16.27 MB, free: 6 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.001868/0.001869, allocations: 191 kB / 17.2 MB, free: 5.609 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.473/1.473, allocations: 222.9 MB / 240.9 MB, free: 15.28 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.573/2.573, allocations: 437.1 MB / 0.711 GB, free: 4.527 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.003268/0.003269, allocations: 67.33 kB / 0.8699 GB, free: 2.246 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.33/0.3333, allocations: 151.6 MB / 1.018 GB, free: 10.69 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor): time 0.004577/0.3379, allocations: 2.626 MB / 1.021 GB, free: 8.051 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.002509/0.3404, allocations: 1.492 MB / 1.022 GB, free: 6.551 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001354/0.3406, allocations: 0 / 1.022 GB, free: 6.551 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.0008752/0.3415, allocations: 227.1 kB / 1.022 GB, free: 6.328 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.0005391/0.342, allocations: 191.2 kB / 1.022 GB, free: 6.141 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004229/0.3424, allocations: 143.7 kB / 1.023 GB, free: 6 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0003256/0.3428, allocations: 227.3 kB / 1.023 GB, free: 5.777 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003423/0.3431, allocations: 170.5 kB / 1.023 GB, free: 5.605 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001893/0.3433, allocations: 99.61 kB / 1.023 GB, free: 5.508 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002707/0.3436, allocations: 119.5 kB / 1.023 GB, free: 5.391 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 3.516e-05/0.3437, allocations: 16 kB / 1.023 GB, free: 5.375 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004004/0.3441, allocations: 223.6 kB / 1.023 GB, free: 5.156 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 9.612e-05/0.3442, allocations: 71.8 kB / 1.023 GB, free: 5.086 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.0001129/0.3443, allocations: 91.53 kB / 1.024 GB, free: 4.996 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0004694/0.3448, allocations: 323.3 kB / 1.024 GB, free: 4.68 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.3448, allocations: 4 kB / 1.024 GB, free: 4.676 MB / 0.795 GB Notification: Performance of FrontEnd: time 3.507e-06/0.3448, allocations: 0 / 1.024 GB, free: 4.676 MB / 0.795 GB Notification: Performance of Transformations before backend: time 7.183e-06/0.3448, allocations: 3.938 kB / 1.024 GB, free: 4.672 MB / 0.795 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.0007776/0.3456, allocations: 489 kB / 1.024 GB, free: 4.148 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 4.741e-05/0.3456, allocations: 12.92 kB / 1.024 GB, free: 4.137 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006262/0.3463, allocations: 72.66 kB / 1.024 GB, free: 4.066 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003086/0.3466, allocations: 244.5 kB / 1.025 GB, free: 3.789 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.353e-05/0.3466, allocations: 8.703 kB / 1.025 GB, free: 3.781 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.329e-05/0.3467, allocations: 20.38 kB / 1.025 GB, free: 3.762 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004987/0.3472, allocations: 320.4 kB / 1.025 GB, free: 3.414 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.448e-05/0.3472, allocations: 0 / 1.025 GB, free: 3.414 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.989e-05/0.3472, allocations: 8 kB / 1.025 GB, free: 3.406 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.838e-05/0.3473, allocations: 28.25 kB / 1.025 GB, free: 3.375 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004208/0.3477, allocations: 252.6 kB / 1.025 GB, free: 3.129 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001782/0.3495, allocations: 1.634 MB / 1.027 GB, free: 1.348 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007091/0.3502, allocations: 403.2 kB / 1.027 GB, free: 0.8984 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001383/0.3504, allocations: 93.66 kB / 1.027 GB, free: 0.8008 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001507/0.3506, allocations: 85.05 kB / 1.027 GB, free: 0.6992 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.273e-05/0.3506, allocations: 42.56 kB / 1.027 GB, free: 0.6484 MB / 0.795 GB Notification: Performance of pre-optimization done (n=13): time 1.372e-06/0.3506, allocations: 0 / 1.027 GB, free: 0.6484 MB / 0.795 GB Notification: Performance of matching and sorting (n=14): time 0.0006886/0.3513, allocations: 312.8 kB / 1.028 GB, free: 344 kB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.429e-05/0.3514, allocations: 77.11 kB / 1.028 GB, free: 248 kB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002077/0.3516, allocations: 180.2 kB / 1.028 GB, free: 60 kB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 3.165e-05/0.3516, allocations: 25.7 kB / 1.028 GB, free: 28 kB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.000146/0.3518, allocations: 147.9 kB / 1.028 GB, free: 15.88 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 6.206e-05/0.3518, allocations: 63.38 kB / 1.028 GB, free: 15.82 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001084/0.352, allocations: 41.7 kB / 1.028 GB, free: 15.77 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001879/0.3522, allocations: 322.8 kB / 1.029 GB, free: 15.45 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001617/0.3523, allocations: 88.8 kB / 1.029 GB, free: 15.36 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002093/0.3525, allocations: 155.7 kB / 1.029 GB, free: 15.17 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003769/0.3529, allocations: 239.1 kB / 1.029 GB, free: 14.91 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.146e-06/0.3529, allocations: 0 / 1.029 GB, free: 14.91 MB / 0.8106 GB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0005183/0.3535, allocations: 281.3 kB / 1.029 GB, free: 14.62 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 2.539e-05/0.3535, allocations: 4 kB / 1.029 GB, free: 14.62 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.165e-05/0.3535, allocations: 4 kB / 1.029 GB, free: 14.62 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.374e-05/0.3535, allocations: 7.938 kB / 1.029 GB, free: 14.61 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003207/0.3539, allocations: 51.91 kB / 1.029 GB, free: 14.56 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.456e-05/0.3539, allocations: 8.172 kB / 1.029 GB, free: 14.55 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001741/0.3541, allocations: 15.98 kB / 1.029 GB, free: 14.54 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.288e-05/0.3541, allocations: 11.94 kB / 1.029 GB, free: 14.52 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002507/0.3544, allocations: 176.1 kB / 1.03 GB, free: 14.35 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001885/0.3546, allocations: 156.4 kB / 1.03 GB, free: 14.16 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0003232/0.3549, allocations: 236.1 kB / 1.03 GB, free: 13.89 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.104e-06/0.3549, allocations: 0 / 1.03 GB, free: 13.89 MB / 0.8106 GB Notification: Performance of matching and sorting (n=25) (initialization_lambda0): time 0.0004443/0.3554, allocations: 245.2 kB / 1.03 GB, free: 13.65 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.788e-05/0.3554, allocations: 8 kB / 1.03 GB, free: 13.64 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.114e-06/0.3554, allocations: 8 kB / 1.03 GB, free: 13.63 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.582e-06/0.3554, allocations: 4.344 kB / 1.03 GB, free: 13.63 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001958/0.3556, allocations: 59.84 kB / 1.03 GB, free: 13.57 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.343e-05/0.3556, allocations: 11.92 kB / 1.03 GB, free: 13.56 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001326/0.3558, allocations: 15.94 kB / 1.03 GB, free: 13.54 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.979e-05/0.3558, allocations: 11.98 kB / 1.03 GB, free: 13.53 MB / 0.8106 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.0001561/0.356, allocations: 184.3 kB / 1.03 GB, free: 13.34 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.812e-05/0.356, allocations: 15.81 kB / 1.03 GB, free: 13.33 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004124/0.3564, allocations: 211.7 kB / 1.031 GB, free: 13.11 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.871e-06/0.3565, allocations: 4 kB / 1.031 GB, free: 13.11 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.959e-06/0.3565, allocations: 0 / 1.031 GB, free: 13.11 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.272e-06/0.3565, allocations: 4.031 kB / 1.031 GB, free: 13.11 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001412/0.3579, allocations: 0.9612 MB / 1.032 GB, free: 12.03 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.423e-06/0.3579, allocations: 4.438 kB / 1.032 GB, free: 12.03 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001422/0.3581, allocations: 35.91 kB / 1.032 GB, free: 11.99 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.843e-06/0.3581, allocations: 8 kB / 1.032 GB, free: 11.98 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.661e-05/0.3581, allocations: 4 kB / 1.032 GB, free: 11.98 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.073e-06/0.3581, allocations: 7.938 kB / 1.032 GB, free: 11.97 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.242e-06/0.3581, allocations: 7.938 kB / 1.032 GB, free: 11.96 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004303/0.3586, allocations: 438.6 kB / 1.032 GB, free: 11.48 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001065/0.3587, allocations: 105 kB / 1.032 GB, free: 11.36 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.604e-05/0.3587, allocations: 11.89 kB / 1.032 GB, free: 11.35 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001828/0.3589, allocations: 11.98 kB / 1.032 GB, free: 11.34 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.262e-05/0.359, allocations: 23.86 kB / 1.032 GB, free: 11.32 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.506e-05/0.359, allocations: 8 kB / 1.032 GB, free: 11.31 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0001299/0.3591, allocations: 136.8 kB / 1.032 GB, free: 11.18 MB / 0.8106 GB Notification: Performance of sort global known variables: time 4.01e-07/0.3591, allocations: 0 / 1.032 GB, free: 11.18 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0005226/0.3597, allocations: 72 kB / 1.032 GB, free: 11.11 MB / 0.8106 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.0001714/0.3598, allocations: 123.1 kB / 1.033 GB, free: 10.97 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0005178/0.3604, allocations: 308.3 kB / 1.033 GB, free: 10.67 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.916e-06/0.3604, allocations: 0 / 1.033 GB, free: 10.67 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.000119/0.3605, allocations: 79.83 kB / 1.033 GB, free: 10.59 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004895/0.361, allocations: 42.41 kB / 1.033 GB, free: 10.55 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009325/0.3619, allocations: 0.5046 MB / 1.033 GB, free: 9.98 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004067/0.3624, allocations: 0.748 MB / 1.034 GB, free: 9.203 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.864e-05/0.3624, allocations: 19.44 kB / 1.034 GB, free: 9.188 MB / 0.8106 GB Notification: Performance of SimCode: time 3.01e-07/0.3624, allocations: 0 / 1.034 GB, free: 9.188 MB / 0.8106 GB Notification: Performance of Templates: time 0.004837/0.3673, allocations: 2.355 MB / 1.036 GB, free: 6.836 MB / 0.8106 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