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.37/1.37, allocations: 251.9 MB / 266.9 MB, free: 10.99 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0011/0.0011, allocations: 180.7 kB / 326.5 MB, free: 2.242 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.774/1.774, allocations: 205.4 MB / 0.5775 GB, free: 20.55 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.0008298/0.0008297, allocations: 93.94 kB / 0.6821 GB, free: 13.34 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003734/0.0003734, allocations: 9 kB / 0.7963 GB, free: 135 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.272/0.2723, allocations: 106.3 MB / 0.9001 GB, free: 64.3 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2229/0.4953, allocations: 158.5 MB / 1.055 GB, free: 1.551 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000328/0.4957, allocations: 103.9 kB / 1.055 GB, free: 1.449 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 0.5846/1.08, allocations: 16.57 MB / 1.071 GB, free: 154.2 MB / 0.698 GB Notification: Performance of FrontEnd: time 2.324e-06/1.08, allocations: 0 / 1.071 GB, free: 154.2 MB / 0.698 GB Notification: Performance of Transformations before backend: time 2.069e-05/1.08, allocations: 8.609 kB / 1.071 GB, free: 154.2 MB / 0.698 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.001002/1.081, allocations: 0.5296 MB / 1.072 GB, free: 153.7 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.626e-05/1.081, allocations: 12.53 kB / 1.072 GB, free: 153.7 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008499/1.082, allocations: 94.05 kB / 1.072 GB, free: 153.7 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004446/1.083, allocations: 266.3 kB / 1.072 GB, free: 153.5 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.729e-05/1.083, allocations: 18.84 kB / 1.072 GB, free: 153.5 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.579e-05/1.083, allocations: 23.75 kB / 1.072 GB, free: 153.5 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006247/1.083, allocations: 363.7 kB / 1.072 GB, free: 153.4 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.751e-05/1.083, allocations: 3.984 kB / 1.072 GB, free: 153.4 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.571e-05/1.084, allocations: 10.31 kB / 1.072 GB, free: 153.4 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.459e-05/1.084, allocations: 19.86 kB / 1.072 GB, free: 153.4 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004734/1.084, allocations: 302.5 kB / 1.073 GB, free: 153.3 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001653/1.086, allocations: 1.534 MB / 1.074 GB, free: 152 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004202/1.086, allocations: 232.1 kB / 1.074 GB, free: 152 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001285/1.086, allocations: 90.95 kB / 1.075 GB, free: 151.9 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.267e-05/1.086, allocations: 32.06 kB / 1.075 GB, free: 151.8 MB / 0.698 GB Notification: Performance of pre-optimization done (n=18): time 1.914e-06/1.086, allocations: 0 / 1.075 GB, free: 151.8 MB / 0.698 GB Notification: Performance of matching and sorting (n=19): time 0.001227/1.088, allocations: 0.7897 MB / 1.075 GB, free: 151.5 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.023e-05/1.088, allocations: 52.78 kB / 1.075 GB, free: 151.4 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001502/1.088, allocations: 174.1 kB / 1.076 GB, free: 151.3 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 1.843e-05/1.088, allocations: 33.52 kB / 1.076 GB, free: 151.3 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 6.964e-05/1.088, allocations: 160.4 kB / 1.076 GB, free: 151.1 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 4.598e-05/1.088, allocations: 70.72 kB / 1.076 GB, free: 151.1 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.388e-05/1.088, allocations: 4.875 kB / 1.076 GB, free: 151.1 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 6.972e-05/1.088, allocations: 328.1 kB / 1.076 GB, free: 150.8 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001626/1.088, allocations: 111.8 kB / 1.076 GB, free: 150.7 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001872/1.088, allocations: 173 kB / 1.076 GB, free: 150.7 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001989/1.089, allocations: 128.7 kB / 1.077 GB, free: 150.6 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.223e-06/1.089, allocations: 3.938 kB / 1.077 GB, free: 150.6 MB / 0.698 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0007069/1.089, allocations: 415.7 kB / 1.077 GB, free: 150.5 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 2.033e-05/1.089, allocations: 8.609 kB / 1.077 GB, free: 150.5 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.255e-06/1.089, allocations: 10.3 kB / 1.077 GB, free: 150.5 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003843/1.09, allocations: 89.81 kB / 1.077 GB, free: 150.5 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002596/1.09, allocations: 61.27 kB / 1.077 GB, free: 150.5 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001618/1.092, allocations: 1.752 MB / 1.079 GB, free: 149.1 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002285/1.092, allocations: 14.27 kB / 1.079 GB, free: 149.1 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.538e-05/1.092, allocations: 15.86 kB / 1.079 GB, free: 149.1 MB / 0.698 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 () * Number of clocked 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.0001821/1.092, allocations: 149 kB / 1.079 GB, free: 148.9 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.258e-05/1.092, allocations: 23.83 kB / 1.079 GB, free: 148.9 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000553/1.093, allocations: 299.2 kB / 1.079 GB, free: 148.8 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.611e-06/1.093, allocations: 5.953 kB / 1.079 GB, free: 148.8 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.447e-06/1.093, allocations: 4 kB / 1.079 GB, free: 148.8 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.527e-06/1.093, allocations: 4.906 kB / 1.079 GB, free: 148.8 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001005/1.094, allocations: 0.7031 MB / 1.08 GB, free: 148.4 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.635e-06/1.094, allocations: 5.031 kB / 1.08 GB, free: 148.4 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003257/1.094, allocations: 61.42 kB / 1.08 GB, free: 148.4 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.12e-06/1.094, allocations: 1.031 kB / 1.08 GB, free: 148.4 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.093e-05/1.094, allocations: 9.969 kB / 1.08 GB, free: 148.4 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.835e-06/1.094, allocations: 0 / 1.08 GB, free: 148.4 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.725e-06/1.094, allocations: 5.453 kB / 1.08 GB, free: 148.4 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006121/1.095, allocations: 0.536 MB / 1.081 GB, free: 148.1 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001115/1.095, allocations: 123 kB / 1.081 GB, free: 148 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.312e-05/1.095, allocations: 14.28 kB / 1.081 GB, free: 148 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001746/1.095, allocations: 9.734 kB / 1.081 GB, free: 148 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.367e-05/1.095, allocations: 14.67 kB / 1.081 GB, free: 148 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.507e-05/1.095, allocations: 4.594 kB / 1.081 GB, free: 148 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0001156/1.095, allocations: 139 kB / 1.081 GB, free: 147.9 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.1e-07/1.095, allocations: 5.219 kB / 1.081 GB, free: 147.9 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0004293/1.096, allocations: 74.56 kB / 1.081 GB, free: 147.9 MB / 0.698 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 () * Number of clocked 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.0001807/1.096, allocations: 123.5 kB / 1.081 GB, free: 147.8 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.0008633/1.097, allocations: 415.2 kB / 1.082 GB, free: 147.6 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/1.097, allocations: 4.125 kB / 1.082 GB, free: 147.6 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0002296/1.097, allocations: 124 kB / 1.082 GB, free: 147.6 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003739/1.097, allocations: 37.66 kB / 1.082 GB, free: 147.6 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001448/1.099, allocations: 0.7569 MB / 1.082 GB, free: 147.1 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003025/1.099, allocations: 0.7768 MB / 1.083 GB, free: 146.3 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.0002021/1.099, allocations: 60.03 kB / 1.083 GB, free: 146.3 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.583e-05/1.1, allocations: 25.42 kB / 1.083 GB, free: 146.3 MB / 0.698 GB Notification: Performance of SimCode: time 9.61e-07/1.1, allocations: 0 / 1.083 GB, free: 146.3 MB / 0.698 GB Notification: Performance of Templates: time 0.007076/1.107, allocations: 2.556 MB / 1.086 GB, free: 145.1 MB / 0.698 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