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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.324/1.324, allocations: 249.4 MB / 256.7 MB, free: 7.062 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.001037/0.001037, allocations: 189 kB / 316 MB, free: 3.562 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.595/1.595, allocations: 205.2 MB / 0.5667 GB, free: 15.61 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.0009497/0.0009499, allocations: 92.42 kB / 0.671 GB, free: 4.727 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 7.664e-06/7.694e-06, allocations: 4 kB / 0.7807 GB, free: 103.1 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2222/0.2222, allocations: 106.3 MB / 0.8846 GB, free: 12.62 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6472/0.8694, allocations: 158.8 MB / 1.04 GB, free: 13.63 MB / 0.6667 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003143/0.8698, allocations: 97.3 kB / 1.04 GB, free: 13.57 MB / 0.6667 GB Notification: Performance of FrontEnd: time 0.03991/0.9097, allocations: 16.02 MB / 1.055 GB, free: 304 kB / 0.6667 GB Notification: Performance of Transformations before backend: time 2.201e-05/0.9098, allocations: 11.94 kB / 1.055 GB, free: 292 kB / 0.6667 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.0009506/0.9108, allocations: 0.5074 MB / 1.056 GB, free: 15.75 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 5.171e-05/0.9108, allocations: 12.03 kB / 1.056 GB, free: 15.74 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009342/0.9118, allocations: 95.59 kB / 1.056 GB, free: 15.64 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004501/0.9122, allocations: 256.7 kB / 1.056 GB, free: 15.37 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.399e-05/0.9123, allocations: 8 kB / 1.056 GB, free: 15.36 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.554e-05/0.9123, allocations: 12 kB / 1.056 GB, free: 15.35 MB / 0.6823 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004187/0.9127, allocations: 238 kB / 1.056 GB, free: 15.2 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00051/0.9133, allocations: 336.1 kB / 1.057 GB, free: 14.92 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.924e-05/0.9133, allocations: 3.25 kB / 1.057 GB, free: 14.92 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.398e-05/0.9133, allocations: 7.984 kB / 1.057 GB, free: 14.91 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.022e-05/0.9134, allocations: 20.42 kB / 1.057 GB, free: 14.89 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001831/0.9152, allocations: 1.48 MB / 1.058 GB, free: 13.43 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002792/0.9155, allocations: 195.5 kB / 1.058 GB, free: 13.28 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001588/0.9157, allocations: 111.3 kB / 1.059 GB, free: 13.2 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001805/0.9159, allocations: 92.59 kB / 1.059 GB, free: 13.1 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.313e-05/0.9159, allocations: 34.56 kB / 1.059 GB, free: 13.05 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=18): time 1.964e-06/0.9159, allocations: 0 / 1.059 GB, free: 13.05 MB / 0.6823 GB Notification: Performance of matching and sorting (n=19): time 0.001576/0.9175, allocations: 0.7286 MB / 1.059 GB, free: 12.41 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.9e-05/0.9176, allocations: 59.41 kB / 1.059 GB, free: 12.34 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001797/0.9178, allocations: 156.4 kB / 1.06 GB, free: 12.2 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 3.059e-05/0.9178, allocations: 29.7 kB / 1.06 GB, free: 12.16 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.000113/0.9179, allocations: 158.5 kB / 1.06 GB, free: 12.01 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 6.251e-05/0.918, allocations: 69.62 kB / 1.06 GB, free: 11.95 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.442e-05/0.918, allocations: 4 kB / 1.06 GB, free: 11.95 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0002329/0.9182, allocations: 322.1 kB / 1.06 GB, free: 11.63 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001611/0.9184, allocations: 114.9 kB / 1.06 GB, free: 11.55 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001932/0.9186, allocations: 166.2 kB / 1.06 GB, free: 11.41 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003125/0.9189, allocations: 152.6 kB / 1.061 GB, free: 11.31 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.011e-06/0.919, allocations: 0 / 1.061 GB, free: 11.31 MB / 0.6823 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0008017/0.9198, allocations: 422.2 kB / 1.061 GB, free: 10.97 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.786e-05/0.9198, allocations: 4 kB / 1.061 GB, free: 10.97 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.406e-06/0.9198, allocations: 4 kB / 1.061 GB, free: 10.96 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004111/0.9202, allocations: 94.34 kB / 1.061 GB, free: 10.89 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002678/0.9205, allocations: 51.91 kB / 1.061 GB, free: 10.84 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001642/0.9222, allocations: 1.647 MB / 1.063 GB, free: 9.223 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002073/0.9224, allocations: 10.73 kB / 1.063 GB, free: 9.215 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.159e-05/0.9224, allocations: 8 kB / 1.063 GB, free: 9.207 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.0001019/0.9225, allocations: 108.9 kB / 1.063 GB, free: 9.094 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.786e-05/0.9226, allocations: 19.31 kB / 1.063 GB, free: 9.078 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005378/0.9231, allocations: 309.5 kB / 1.063 GB, free: 8.852 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.043e-06/0.9231, allocations: 4 kB / 1.063 GB, free: 8.848 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.514e-06/0.9231, allocations: 11.88 kB / 1.063 GB, free: 8.836 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.001e-06/0.9232, allocations: 3.984 kB / 1.063 GB, free: 8.832 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008949/0.9241, allocations: 0.6705 MB / 1.064 GB, free: 8.227 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.535e-06/0.9241, allocations: 0 / 1.064 GB, free: 8.227 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003092/0.9244, allocations: 55.78 kB / 1.064 GB, free: 8.176 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.418e-06/0.9244, allocations: 4 kB / 1.064 GB, free: 8.172 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.905e-05/0.9244, allocations: 0 / 1.064 GB, free: 8.172 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.236e-06/0.9245, allocations: 4 kB / 1.064 GB, free: 8.168 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.375e-06/0.9245, allocations: 0 / 1.064 GB, free: 8.168 MB / 0.6823 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006404/0.9251, allocations: 0.5517 MB / 1.064 GB, free: 7.703 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001569/0.9253, allocations: 115.4 kB / 1.065 GB, free: 7.578 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.641e-05/0.9253, allocations: 3.5 kB / 1.065 GB, free: 7.578 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001748/0.9255, allocations: 11.89 kB / 1.065 GB, free: 7.566 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.238e-05/0.9255, allocations: 16.05 kB / 1.065 GB, free: 7.551 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.461e-05/0.9256, allocations: 4 kB / 1.065 GB, free: 7.547 MB / 0.6823 GB Notification: Performance of sort global known variables: time 9.968e-05/0.9257, allocations: 136 kB / 1.065 GB, free: 7.434 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0003758/0.926, allocations: 71.88 kB / 1.065 GB, free: 7.363 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.0001894/0.9262, allocations: 111.2 kB / 1.065 GB, free: 7.246 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.0006253/0.9269, allocations: 388.5 kB / 1.065 GB, free: 6.938 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 3.607e-06/0.9269, allocations: 0 / 1.065 GB, free: 6.938 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0001427/0.927, allocations: 123.3 kB / 1.065 GB, free: 6.852 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002873/0.9273, allocations: 30.95 kB / 1.065 GB, free: 6.828 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001074/0.9284, allocations: 494.9 kB / 1.066 GB, free: 6.355 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004045/0.9288, allocations: 0.8069 MB / 1.067 GB, free: 5.535 MB / 0.6823 GB Notification: Performance of SimCode: time 2.81e-07/0.9288, allocations: 0 / 1.067 GB, free: 5.535 MB / 0.6823 GB Notification: Performance of Templates: time 0.006207/0.9351, allocations: 2.938 MB / 1.07 GB, free: 2.621 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