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.001527/0.001528, allocations: 106.5 kB / 16.35 MB, free: 5.824 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.001881/0.001881, allocations: 189.4 kB / 17.29 MB, free: 5.48 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.518/1.518, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.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.581/2.581, allocations: 437.1 MB / 0.7112 GB, free: 4.375 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001396/0.001396, allocations: 64.67 kB / 0.8707 GB, free: 1.457 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3322/0.3336, allocations: 151.7 MB / 1.019 GB, free: 9.863 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor): time 0.004757/0.3384, allocations: 2.618 MB / 1.021 GB, free: 7.227 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.002547/0.341, allocations: 1.492 MB / 1.023 GB, free: 5.727 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001891/0.3412, allocations: 4 kB / 1.023 GB, free: 5.723 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.0009288/0.3422, allocations: 223.6 kB / 1.023 GB, free: 5.504 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.0006112/0.3428, allocations: 187.2 kB / 1.023 GB, free: 5.32 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.000498/0.3433, allocations: 148.3 kB / 1.023 GB, free: 5.176 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0004201/0.3437, allocations: 235.3 kB / 1.024 GB, free: 4.945 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003642/0.3441, allocations: 166.5 kB / 1.024 GB, free: 4.777 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001963/0.3443, allocations: 103.6 kB / 1.024 GB, free: 4.676 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002839/0.3446, allocations: 115.6 kB / 1.024 GB, free: 4.562 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 3.891e-05/0.3446, allocations: 12 kB / 1.024 GB, free: 4.551 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004121/0.3451, allocations: 219.6 kB / 1.024 GB, free: 4.336 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 0.0001037/0.3452, allocations: 83.78 kB / 1.024 GB, free: 4.254 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 9.991e-05/0.3453, allocations: 83.55 kB / 1.024 GB, free: 4.172 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0004353/0.3457, allocations: 327 kB / 1.025 GB, free: 3.852 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 4.148e-06/0.3457, allocations: 0 / 1.025 GB, free: 3.852 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.563e-06/0.3457, allocations: 0 / 1.025 GB, free: 3.852 MB / 0.795 GB Notification: Performance of Transformations before backend: time 1.039e-05/0.3458, allocations: 0 / 1.025 GB, free: 3.852 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.0007253/0.3465, allocations: 499 kB / 1.025 GB, free: 3.312 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 3.844e-05/0.3465, allocations: 12.62 kB / 1.025 GB, free: 3.301 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005758/0.3471, allocations: 76.66 kB / 1.025 GB, free: 3.227 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002899/0.3474, allocations: 235.3 kB / 1.025 GB, free: 2.961 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.929e-05/0.3474, allocations: 16.69 kB / 1.025 GB, free: 2.945 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.021e-05/0.3475, allocations: 12.38 kB / 1.025 GB, free: 2.934 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004763/0.348, allocations: 328.4 kB / 1.026 GB, free: 2.578 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.403e-05/0.348, allocations: 0 / 1.026 GB, free: 2.578 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.543e-05/0.348, allocations: 8 kB / 1.026 GB, free: 2.57 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.8e-05/0.3481, allocations: 20.27 kB / 1.026 GB, free: 2.547 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003666/0.3484, allocations: 252.6 kB / 1.026 GB, free: 2.301 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001603/0.35, allocations: 1.63 MB / 1.028 GB, free: 0.5234 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006324/0.3507, allocations: 415.1 kB / 1.028 GB, free: 64 kB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001397/0.3508, allocations: 97.67 kB / 1.028 GB, free: 15.96 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001433/0.351, allocations: 81.11 kB / 1.028 GB, free: 15.86 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.626e-05/0.351, allocations: 38.56 kB / 1.028 GB, free: 15.81 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=13): time 1.453e-06/0.351, allocations: 0 / 1.028 GB, free: 15.81 MB / 0.8106 GB Notification: Performance of matching and sorting (n=14): time 0.0006915/0.3517, allocations: 312.6 kB / 1.029 GB, free: 15.5 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.562e-05/0.3518, allocations: 77.11 kB / 1.029 GB, free: 15.41 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001662/0.352, allocations: 176.2 kB / 1.029 GB, free: 15.23 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.608e-05/0.352, allocations: 33.7 kB / 1.029 GB, free: 15.19 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 9.676e-05/0.3521, allocations: 144.1 kB / 1.029 GB, free: 15.04 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 5.036e-05/0.3522, allocations: 55.2 kB / 1.029 GB, free: 14.99 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.984e-05/0.3523, allocations: 45.7 kB / 1.029 GB, free: 14.94 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001236/0.3524, allocations: 322.8 kB / 1.029 GB, free: 14.61 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001417/0.3525, allocations: 88.73 kB / 1.029 GB, free: 14.52 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001749/0.3527, allocations: 156.2 kB / 1.03 GB, free: 14.34 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003143/0.353, allocations: 237.3 kB / 1.03 GB, free: 14.07 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.3531, allocations: 0 / 1.03 GB, free: 14.07 MB / 0.8106 GB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0004001/0.3535, allocations: 281.2 kB / 1.03 GB, free: 13.79 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.755e-05/0.3535, allocations: 8 kB / 1.03 GB, free: 13.79 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.971e-06/0.3535, allocations: 0 / 1.03 GB, free: 13.79 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.764e-05/0.3535, allocations: 7.938 kB / 1.03 GB, free: 13.78 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002399/0.3538, allocations: 55.91 kB / 1.03 GB, free: 13.72 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.138e-05/0.3538, allocations: 11.92 kB / 1.03 GB, free: 13.71 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001341/0.3539, allocations: 11.98 kB / 1.03 GB, free: 13.7 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.173e-05/0.3539, allocations: 12 kB / 1.03 GB, free: 13.69 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001731/0.3541, allocations: 176.3 kB / 1.03 GB, free: 13.51 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001553/0.3543, allocations: 150.1 kB / 1.03 GB, free: 13.33 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0002663/0.3546, allocations: 232.1 kB / 1.031 GB, free: 13.07 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.473e-06/0.3546, allocations: 0 / 1.031 GB, free: 13.07 MB / 0.8106 GB Notification: Performance of matching and sorting (n=25) (initialization_lambda0): time 0.0003526/0.3549, allocations: 249.2 kB / 1.031 GB, free: 12.82 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 8.235e-06/0.3549, allocations: 8 kB / 1.031 GB, free: 12.81 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.607e-06/0.355, allocations: 4.344 kB / 1.031 GB, free: 12.8 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.42e-06/0.355, allocations: 8 kB / 1.031 GB, free: 12.8 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001795/0.3552, allocations: 55.83 kB / 1.031 GB, free: 12.74 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.893e-06/0.3552, allocations: 7.938 kB / 1.031 GB, free: 12.73 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001193/0.3553, allocations: 19.92 kB / 1.031 GB, free: 12.71 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.266e-05/0.3553, allocations: 12 kB / 1.031 GB, free: 12.7 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.0001144/0.3554, allocations: 190.4 kB / 1.031 GB, free: 12.51 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.832e-05/0.3555, allocations: 15.81 kB / 1.031 GB, free: 12.5 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003735/0.3559, allocations: 208.3 kB / 1.031 GB, free: 12.29 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.412e-06/0.3559, allocations: 4 kB / 1.031 GB, free: 12.29 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.843e-06/0.3559, allocations: 7.938 kB / 1.031 GB, free: 12.28 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.867e-06/0.3559, allocations: 0 / 1.031 GB, free: 12.28 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001145/0.3571, allocations: 0.9689 MB / 1.032 GB, free: 11.2 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.288e-06/0.3571, allocations: 4.438 kB / 1.032 GB, free: 11.2 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001345/0.3572, allocations: 39.97 kB / 1.032 GB, free: 11.16 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.801e-06/0.3572, allocations: 4 kB / 1.032 GB, free: 11.15 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.56e-05/0.3573, allocations: 4 kB / 1.032 GB, free: 11.15 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.74e-06/0.3573, allocations: 7.938 kB / 1.032 GB, free: 11.14 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.739e-06/0.3573, allocations: 7.938 kB / 1.032 GB, free: 11.13 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003808/0.3577, allocations: 432.8 kB / 1.033 GB, free: 10.66 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001029/0.3578, allocations: 101 kB / 1.033 GB, free: 10.54 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.516e-05/0.3578, allocations: 19.89 kB / 1.033 GB, free: 10.52 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001839/0.358, allocations: 7.984 kB / 1.033 GB, free: 10.51 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.621e-05/0.3581, allocations: 23.86 kB / 1.033 GB, free: 10.49 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.166e-05/0.3581, allocations: 8 kB / 1.033 GB, free: 10.48 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0001071/0.3582, allocations: 136.2 kB / 1.033 GB, free: 10.35 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3582, allocations: 0 / 1.033 GB, free: 10.35 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0004872/0.3587, allocations: 76 kB / 1.033 GB, free: 10.27 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.0001563/0.3588, allocations: 119.1 kB / 1.033 GB, free: 10.14 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0004673/0.3593, allocations: 301.2 kB / 1.034 GB, free: 9.852 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 3.657e-06/0.3593, allocations: 0 / 1.034 GB, free: 9.852 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001109/0.3595, allocations: 79.83 kB / 1.034 GB, free: 9.773 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005098/0.36, allocations: 43.48 kB / 1.034 GB, free: 9.734 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008037/0.3608, allocations: 488.7 kB / 1.034 GB, free: 9.191 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003203/0.3611, allocations: 0.7479 MB / 1.035 GB, free: 8.418 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 0.0001772/0.3613, allocations: 81.48 kB / 1.035 GB, free: 8.34 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.769e-05/0.3614, allocations: 19.44 kB / 1.035 GB, free: 8.32 MB / 0.8106 GB Notification: Performance of SimCode: time 3.41e-07/0.3614, allocations: 3.938 kB / 1.035 GB, free: 8.316 MB / 0.8106 GB Notification: Performance of Templates: time 0.004538/0.3659, allocations: 1.795 MB / 1.037 GB, free: 6.539 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 -s gbode -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