Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen.I|sen.V|loa.S.1.|loa.S.2.",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor") translateModel(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen.I|sen.V|loa.S.1.|loa.S.2.",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.443/1.443, allocations: 249.5 MB / 257 MB, free: 6.988 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001034/0.001034, allocations: 179.7 kB / 316.3 MB, free: 3.234 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.499/1.499, allocations: 205.3 MB / 0.5671 GB, free: 15.84 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008317/0.0008317, allocations: 101.8 kB / 0.6714 GB, free: 4.957 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.533e-05/1.552e-05, allocations: 4 kB / 0.7814 GB, free: 102.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1879/0.188, allocations: 106.3 MB / 0.8852 GB, free: 12.25 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.647/0.835, allocations: 158.7 MB / 1.04 GB, free: 12.83 MB / 0.6667 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002777/0.8354, allocations: 98.69 kB / 1.04 GB, free: 12.78 MB / 0.6667 GB Notification: Performance of FrontEnd - DAE generated: time 0.03899/0.8744, allocations: 16.42 MB / 1.056 GB, free: 15.12 MB / 0.6823 GB Notification: Performance of FrontEnd: time 1.393e-06/0.8744, allocations: 0 / 1.056 GB, free: 15.12 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 1.807e-05/0.8744, allocations: 12 kB / 1.056 GB, free: 15.11 MB / 0.6823 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 59 * Number of variables: 59 Notification: Performance of Generate backend data structure: time 0.0007695/0.8752, allocations: 0.5015 MB / 1.057 GB, free: 14.57 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 4.091e-05/0.8753, allocations: 12.03 kB / 1.057 GB, free: 14.56 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007531/0.876, allocations: 95.05 kB / 1.057 GB, free: 14.47 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003643/0.8764, allocations: 263.7 kB / 1.057 GB, free: 14.2 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.35e-05/0.8764, allocations: 4 kB / 1.057 GB, free: 14.19 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.155e-05/0.8765, allocations: 12 kB / 1.057 GB, free: 14.18 MB / 0.6823 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003665/0.8768, allocations: 229.2 kB / 1.057 GB, free: 14.03 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000446/0.8773, allocations: 324.4 kB / 1.058 GB, free: 13.77 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.54e-05/0.8773, allocations: 4 kB / 1.058 GB, free: 13.76 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.827e-05/0.8774, allocations: 0 / 1.058 GB, free: 13.76 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.629e-05/0.8774, allocations: 27.42 kB / 1.058 GB, free: 13.74 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001651/0.8791, allocations: 1.478 MB / 1.059 GB, free: 12.27 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004284/0.8795, allocations: 220 kB / 1.059 GB, free: 12.11 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000153/0.8797, allocations: 110.9 kB / 1.06 GB, free: 12.04 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001814/0.8799, allocations: 89.03 kB / 1.06 GB, free: 11.93 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.186e-05/0.8799, allocations: 34.56 kB / 1.06 GB, free: 11.89 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=18): time 1.633e-06/0.8799, allocations: 0 / 1.06 GB, free: 11.89 MB / 0.6823 GB Notification: Performance of matching and sorting (n=19): time 0.001504/0.8814, allocations: 0.7125 MB / 1.06 GB, free: 11.25 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.192e-05/0.8815, allocations: 55.41 kB / 1.06 GB, free: 11.19 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001707/0.8817, allocations: 156.5 kB / 1.061 GB, free: 11.05 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 2.618e-05/0.8817, allocations: 25.7 kB / 1.061 GB, free: 11.02 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001173/0.8818, allocations: 166.9 kB / 1.061 GB, free: 10.87 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 5.843e-05/0.8819, allocations: 69.06 kB / 1.061 GB, free: 10.81 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.41e-05/0.8819, allocations: 0 / 1.061 GB, free: 10.81 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0002228/0.8821, allocations: 326 kB / 1.061 GB, free: 10.49 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000168/0.8823, allocations: 101.1 kB / 1.061 GB, free: 10.43 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002338/0.8826, allocations: 166.5 kB / 1.061 GB, free: 10.29 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003397/0.8829, allocations: 148.9 kB / 1.062 GB, free: 10.18 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.374e-06/0.8829, allocations: 4 kB / 1.062 GB, free: 10.18 MB / 0.6823 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0008968/0.8838, allocations: 404.1 kB / 1.062 GB, free: 9.863 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 2.631e-05/0.8839, allocations: 7.938 kB / 1.062 GB, free: 9.855 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.935e-06/0.8839, allocations: 4 kB / 1.062 GB, free: 9.852 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003906/0.8843, allocations: 94.16 kB / 1.062 GB, free: 9.773 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002541/0.8846, allocations: 51.89 kB / 1.062 GB, free: 9.723 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001991/0.8866, allocations: 1.658 MB / 1.064 GB, free: 8.121 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002112/0.8868, allocations: 19.95 kB / 1.064 GB, free: 8.102 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.319e-05/0.8868, allocations: 8 kB / 1.064 GB, free: 8.094 MB / 0.6823 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001253/0.887, allocations: 112.9 kB / 1.064 GB, free: 7.98 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.357e-05/0.887, allocations: 15.81 kB / 1.064 GB, free: 7.965 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005871/0.8876, allocations: 303.8 kB / 1.064 GB, free: 7.742 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.344e-06/0.8876, allocations: 0 / 1.064 GB, free: 7.742 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.332e-06/0.8876, allocations: 0 / 1.064 GB, free: 7.742 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.56e-06/0.8876, allocations: 4 kB / 1.064 GB, free: 7.738 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001032/0.8887, allocations: 0.6582 MB / 1.065 GB, free: 7.148 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.946e-06/0.8887, allocations: 0 / 1.065 GB, free: 7.148 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003243/0.889, allocations: 59.89 kB / 1.065 GB, free: 7.09 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.517e-06/0.889, allocations: 0 / 1.065 GB, free: 7.09 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.222e-05/0.8891, allocations: 7.875 kB / 1.065 GB, free: 7.086 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.954e-06/0.8891, allocations: 0 / 1.065 GB, free: 7.086 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.104e-06/0.8891, allocations: 0 / 1.065 GB, free: 7.086 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007123/0.8898, allocations: 0.532 MB / 1.065 GB, free: 6.637 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000132/0.89, allocations: 114.8 kB / 1.065 GB, free: 6.516 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.569e-05/0.89, allocations: 8 kB / 1.065 GB, free: 6.508 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001638/0.8902, allocations: 7.984 kB / 1.065 GB, free: 6.5 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.682e-05/0.8902, allocations: 27.77 kB / 1.066 GB, free: 6.473 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.719e-05/0.8902, allocations: 11 kB / 1.066 GB, free: 6.465 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 0.0001137/0.8904, allocations: 138.2 kB / 1.066 GB, free: 6.348 MB / 0.6823 GB Notification: Performance of sort global known variables: time 1.7e-07/0.8904, allocations: 0 / 1.066 GB, free: 6.348 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0004073/0.8908, allocations: 67.94 kB / 1.066 GB, free: 6.281 MB / 0.6823 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (loa.q[1],loa.q[2]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002059/0.891, allocations: 123.2 kB / 1.066 GB, free: 6.152 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.0006794/0.8917, allocations: 392.7 kB / 1.066 GB, free: 5.844 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/0.8917, allocations: 0 / 1.066 GB, free: 5.844 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0001445/0.8919, allocations: 114.2 kB / 1.066 GB, free: 5.766 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003147/0.8922, allocations: 23.55 kB / 1.066 GB, free: 5.75 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009774/0.8932, allocations: 492.4 kB / 1.067 GB, free: 5.281 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003709/0.8935, allocations: 0.78 MB / 1.068 GB, free: 4.48 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 0.0001894/0.8937, allocations: 58.03 kB / 1.068 GB, free: 4.422 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.048e-05/0.8938, allocations: 19.38 kB / 1.068 GB, free: 4.402 MB / 0.6823 GB Notification: Performance of SimCode: time 2.61e-07/0.8938, allocations: 0 / 1.068 GB, free: 4.402 MB / 0.6823 GB Notification: Performance of Templates: time 0.005/0.8988, allocations: 2.428 MB / 1.07 GB, free: 2.008 MB / 0.6823 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.makefile (rm -f Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.sim & ./Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor.csv","../files/Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches