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.002249/0.002249, allocations: 108 kB / 15.6 MB, free: 132 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.002445/0.002445, allocations: 198.5 kB / 16.54 MB, free: 6.672 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.624/1.624, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.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.867/2.867, allocations: 437 MB / 0.7104 GB, free: 5.094 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.002238/0.002238, allocations: 67.89 kB / 0.8692 GB, free: 4.668 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8193/0.8215, allocations: 151.6 MB / 1.017 GB, free: 2.52 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor): time 0.00638/0.828, allocations: 2.62 MB / 1.02 GB, free: 15.89 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.003132/0.8311, allocations: 1.488 MB / 1.021 GB, free: 14.39 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002138/0.8314, allocations: 4 kB / 1.021 GB, free: 14.39 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0009359/0.8324, allocations: 223.1 kB / 1.022 GB, free: 14.17 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0006464/0.833, allocations: 191.2 kB / 1.022 GB, free: 13.98 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005021/0.8336, allocations: 151.5 kB / 1.022 GB, free: 13.84 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0003825/0.834, allocations: 231.3 kB / 1.022 GB, free: 13.61 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004002/0.8344, allocations: 166.5 kB / 1.022 GB, free: 13.44 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002184/0.8346, allocations: 99.67 kB / 1.022 GB, free: 13.34 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003264/0.8349, allocations: 107.6 kB / 1.022 GB, free: 13.24 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 3.759e-05/0.835, allocations: 20 kB / 1.022 GB, free: 13.22 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004732/0.8355, allocations: 231.4 kB / 1.023 GB, free: 12.99 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001167/0.8356, allocations: 71.86 kB / 1.023 GB, free: 12.92 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001443/0.8357, allocations: 87.53 kB / 1.023 GB, free: 12.84 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0005858/0.8363, allocations: 321 kB / 1.023 GB, free: 12.52 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.659e-06/0.8364, allocations: 0 / 1.023 GB, free: 12.52 MB / 0.7794 GB Notification: Performance of FrontEnd: time 2.014e-06/0.8364, allocations: 4 kB / 1.023 GB, free: 12.52 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 1.451e-05/0.8364, allocations: 0 / 1.023 GB, free: 12.52 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.0009892/0.8374, allocations: 495.1 kB / 1.024 GB, free: 11.99 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.523e-05/0.8374, allocations: 12.03 kB / 1.024 GB, free: 11.98 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006972/0.8381, allocations: 80.56 kB / 1.024 GB, free: 11.9 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003268/0.8385, allocations: 228.1 kB / 1.024 GB, free: 11.64 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.36e-05/0.8385, allocations: 12.7 kB / 1.024 GB, free: 11.62 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.05e-05/0.8386, allocations: 12.38 kB / 1.024 GB, free: 11.61 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005334/0.8391, allocations: 332.1 kB / 1.024 GB, free: 11.25 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.259e-05/0.8391, allocations: 7.938 kB / 1.024 GB, free: 11.25 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.661e-05/0.8392, allocations: 4 kB / 1.024 GB, free: 11.24 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.45e-05/0.8392, allocations: 20.27 kB / 1.024 GB, free: 11.22 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004209/0.8396, allocations: 252.6 kB / 1.025 GB, free: 10.97 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001902/0.8416, allocations: 1.638 MB / 1.026 GB, free: 9.188 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000741/0.8423, allocations: 407.2 kB / 1.027 GB, free: 8.734 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001635/0.8425, allocations: 89.67 kB / 1.027 GB, free: 8.641 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000169/0.8427, allocations: 85.09 kB / 1.027 GB, free: 8.539 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.244e-05/0.8427, allocations: 38.55 kB / 1.027 GB, free: 8.492 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=13): time 1.593e-06/0.8427, allocations: 0 / 1.027 GB, free: 8.492 MB / 0.7794 GB Notification: Performance of matching and sorting (n=14): time 0.0007617/0.8435, allocations: 312.6 kB / 1.027 GB, free: 8.18 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.444e-05/0.8436, allocations: 93.17 kB / 1.027 GB, free: 8.07 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002158/0.8438, allocations: 166.2 kB / 1.027 GB, free: 7.902 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.523e-05/0.8438, allocations: 29.7 kB / 1.027 GB, free: 7.867 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001232/0.8439, allocations: 155.8 kB / 1.027 GB, free: 7.711 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 4.954e-05/0.844, allocations: 47.3 kB / 1.027 GB, free: 7.664 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.423e-05/0.8441, allocations: 49.61 kB / 1.028 GB, free: 7.609 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001542/0.8443, allocations: 322.8 kB / 1.028 GB, free: 7.285 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001528/0.8444, allocations: 85 kB / 1.028 GB, free: 7.199 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000198/0.8446, allocations: 151.4 kB / 1.028 GB, free: 7.02 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000357/0.845, allocations: 257.1 kB / 1.028 GB, free: 6.734 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.328e-06/0.845, allocations: 4 kB / 1.028 GB, free: 6.73 MB / 0.7794 GB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0004488/0.8455, allocations: 260.9 kB / 1.029 GB, free: 6.473 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 2.171e-05/0.8455, allocations: 8 kB / 1.029 GB, free: 6.465 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.255e-06/0.8455, allocations: 0 / 1.029 GB, free: 6.465 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.485e-05/0.8455, allocations: 11.94 kB / 1.029 GB, free: 6.453 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002542/0.8458, allocations: 64.2 kB / 1.029 GB, free: 6.391 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.207e-05/0.8458, allocations: 7.938 kB / 1.029 GB, free: 6.383 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001482/0.846, allocations: 15.89 kB / 1.029 GB, free: 6.367 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.57e-05/0.846, allocations: 15.98 kB / 1.029 GB, free: 6.352 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002259/0.8462, allocations: 176.2 kB / 1.029 GB, free: 6.176 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001908/0.8464, allocations: 150.8 kB / 1.029 GB, free: 5.992 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0003174/0.8468, allocations: 234 kB / 1.029 GB, free: 5.727 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.398e-06/0.8468, allocations: 4 kB / 1.029 GB, free: 5.723 MB / 0.7794 GB Notification: Performance of matching and sorting (n=25) (initialization_lambda0): time 0.0004151/0.8472, allocations: 249.3 kB / 1.029 GB, free: 5.473 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.338e-05/0.8472, allocations: 5.562 kB / 1.029 GB, free: 5.469 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.25e-06/0.8472, allocations: 4 kB / 1.029 GB, free: 5.465 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.242e-06/0.8472, allocations: 4 kB / 1.029 GB, free: 5.461 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001972/0.8474, allocations: 51.84 kB / 1.03 GB, free: 5.41 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.133e-06/0.8474, allocations: 4 kB / 1.03 GB, free: 5.406 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001288/0.8476, allocations: 19.89 kB / 1.03 GB, free: 5.387 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.943e-05/0.8476, allocations: 12 kB / 1.03 GB, free: 5.375 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.000145/0.8478, allocations: 196.4 kB / 1.03 GB, free: 5.176 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.367e-05/0.8478, allocations: 15.81 kB / 1.03 GB, free: 5.16 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003881/0.8482, allocations: 195.8 kB / 1.03 GB, free: 4.961 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.456e-06/0.8482, allocations: 7.984 kB / 1.03 GB, free: 4.953 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.721e-06/0.8483, allocations: 0 / 1.03 GB, free: 4.953 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.657e-06/0.8483, allocations: 0 / 1.03 GB, free: 4.953 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001434/0.8497, allocations: 0.9651 MB / 1.031 GB, free: 3.875 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.271e-06/0.8497, allocations: 7.938 kB / 1.031 GB, free: 3.867 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001417/0.8499, allocations: 39.91 kB / 1.031 GB, free: 3.828 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.174e-06/0.8499, allocations: 4 kB / 1.031 GB, free: 3.824 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.694e-05/0.8499, allocations: 4 kB / 1.031 GB, free: 3.82 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.44e-06/0.8499, allocations: 4 kB / 1.031 GB, free: 3.816 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.929e-06/0.8499, allocations: 12.36 kB / 1.031 GB, free: 3.805 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005038/0.8504, allocations: 436.8 kB / 1.031 GB, free: 3.324 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001113/0.8506, allocations: 108.9 kB / 1.031 GB, free: 3.199 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.793e-05/0.8506, allocations: 12 kB / 1.031 GB, free: 3.188 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001877/0.8508, allocations: 11.98 kB / 1.032 GB, free: 3.176 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.739e-05/0.8509, allocations: 27.86 kB / 1.032 GB, free: 3.148 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.059e-05/0.8509, allocations: 4 kB / 1.032 GB, free: 3.145 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0001402/0.851, allocations: 136.2 kB / 1.032 GB, free: 3.012 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.7e-07/0.851, allocations: 3.938 kB / 1.032 GB, free: 3.008 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0005959/0.8516, allocations: 68 kB / 1.032 GB, free: 2.941 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.000191/0.8518, allocations: 115.2 kB / 1.032 GB, free: 2.816 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0005458/0.8524, allocations: 311.4 kB / 1.032 GB, free: 2.516 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 3.677e-06/0.8524, allocations: 1.312 kB / 1.032 GB, free: 2.516 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001246/0.8525, allocations: 84.2 kB / 1.032 GB, free: 2.434 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004991/0.853, allocations: 31.92 kB / 1.032 GB, free: 2.402 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009157/0.854, allocations: 481 kB / 1.033 GB, free: 1.867 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004556/0.8544, allocations: 0.7519 MB / 1.033 GB, free: 1.09 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.0002198/0.8547, allocations: 73.52 kB / 1.034 GB, free: 1.02 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.344e-05/0.8547, allocations: 15.44 kB / 1.034 GB, free: 1.008 MB / 0.7794 GB Notification: Performance of SimCode: time 3.21e-07/0.8547, allocations: 0 / 1.034 GB, free: 1.008 MB / 0.7794 GB Notification: Performance of Templates: time 0.00567/0.8604, allocations: 1.81 MB / 1.035 GB, free: 15.21 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=400 -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/jenkins/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