Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.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_9_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_9_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 9.1.1-maint.9.1.x/package.mo): time 1.794/1.794, allocations: 387.2 MB / 394.5 MB, free: 13.66 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009509/0.000951, allocations: 180.4 kB / 487 MB, free: 5.375 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.113/1.113, allocations: 221.3 MB / 0.7819 GB, free: 1.402 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008275/0.0008275, allocations: 104.7 kB / 0.9213 GB, free: 2.645 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 5.561e-06/5.581e-06, allocations: 4 kB / 1.066 GB, free: 168.3 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1773/0.1773, allocations: 142.3 MB / 1.205 GB, free: 26.25 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5113/0.6886, allocations: 175.6 MB / 1.377 GB, free: 1.184 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002056/0.6889, allocations: 99.75 kB / 1.377 GB, free: 1.129 MB / 0.8073 GB Notification: Performance of FrontEnd: time 0.04365/0.7325, allocations: 20.73 MB / 1.397 GB, free: 15.77 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 1.466e-05/0.7326, allocations: 7.984 kB / 1.397 GB, free: 15.76 MB / 0.8386 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.0006434/0.7332, allocations: 0.5192 MB / 1.398 GB, free: 15.21 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.191e-05/0.7333, allocations: 8.031 kB / 1.398 GB, free: 15.2 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007638/0.734, allocations: 91.61 kB / 1.398 GB, free: 15.11 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003568/0.7344, allocations: 256.5 kB / 1.398 GB, free: 14.84 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.154e-05/0.7344, allocations: 4 kB / 1.398 GB, free: 14.83 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.369e-05/0.7345, allocations: 23.86 kB / 1.398 GB, free: 14.81 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003255/0.7348, allocations: 224.4 kB / 1.398 GB, free: 14.67 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004234/0.7352, allocations: 343.2 kB / 1.398 GB, free: 14.39 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.22e-05/0.7353, allocations: 0 / 1.398 GB, free: 14.39 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.524e-05/0.7353, allocations: 0 / 1.398 GB, free: 14.39 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.964e-05/0.7353, allocations: 23.67 kB / 1.398 GB, free: 14.37 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00144/0.7368, allocations: 1.483 MB / 1.4 GB, free: 12.9 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002213/0.737, allocations: 198.1 kB / 1.4 GB, free: 12.75 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000125/0.7371, allocations: 108.2 kB / 1.4 GB, free: 12.68 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001264/0.7373, allocations: 93.41 kB / 1.4 GB, free: 12.57 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.029e-05/0.7373, allocations: 34.47 kB / 1.4 GB, free: 12.53 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=18): time 1.213e-06/0.7373, allocations: 0 / 1.4 GB, free: 12.53 MB / 0.8386 GB Notification: Performance of matching and sorting (n=19): time 0.001196/0.7385, allocations: 0.7339 MB / 1.401 GB, free: 11.87 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.533e-05/0.7385, allocations: 55.41 kB / 1.401 GB, free: 11.8 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001224/0.7387, allocations: 161.3 kB / 1.401 GB, free: 11.66 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.105e-05/0.7387, allocations: 25.7 kB / 1.401 GB, free: 11.63 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 6.27e-05/0.7388, allocations: 153.6 kB / 1.401 GB, free: 11.48 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 4.155e-05/0.7388, allocations: 69.19 kB / 1.402 GB, free: 11.42 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.316e-05/0.7388, allocations: 0 / 1.402 GB, free: 11.42 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 8.507e-05/0.7389, allocations: 325.5 kB / 1.402 GB, free: 11.1 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001331/0.7391, allocations: 108.4 kB / 1.402 GB, free: 11.03 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001552/0.7392, allocations: 167.5 kB / 1.402 GB, free: 10.89 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002899/0.7395, allocations: 162.3 kB / 1.402 GB, free: 10.77 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.112e-06/0.7395, allocations: 0 / 1.402 GB, free: 10.77 MB / 0.8386 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0007193/0.7402, allocations: 416.5 kB / 1.403 GB, free: 10.45 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.01e-05/0.7403, allocations: 4 kB / 1.403 GB, free: 10.45 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.64e-06/0.7403, allocations: 3.984 kB / 1.403 GB, free: 10.44 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003336/0.7406, allocations: 99.64 kB / 1.403 GB, free: 10.36 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002302/0.7409, allocations: 47.91 kB / 1.403 GB, free: 10.31 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001458/0.7423, allocations: 1.651 MB / 1.404 GB, free: 8.688 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001984/0.7425, allocations: 7.984 kB / 1.404 GB, free: 8.68 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.323e-05/0.7426, allocations: 10.81 kB / 1.404 GB, free: 8.672 MB / 0.8386 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 7.58e-05/0.7426, allocations: 116.8 kB / 1.405 GB, free: 8.551 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.269e-05/0.7427, allocations: 19.75 kB / 1.405 GB, free: 8.531 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004898/0.7432, allocations: 307.8 kB / 1.405 GB, free: 8.309 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.645e-06/0.7432, allocations: 3.906 kB / 1.405 GB, free: 8.305 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.152e-06/0.7432, allocations: 7.938 kB / 1.405 GB, free: 8.297 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.977e-06/0.7432, allocations: 0 / 1.405 GB, free: 8.297 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007927/0.744, allocations: 0.6706 MB / 1.406 GB, free: 7.695 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.744, allocations: 0 / 1.406 GB, free: 7.695 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002923/0.7443, allocations: 47.97 kB / 1.406 GB, free: 7.648 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.438e-06/0.7443, allocations: 4 kB / 1.406 GB, free: 7.645 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.005e-05/0.7444, allocations: 11.2 kB / 1.406 GB, free: 7.637 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.673e-06/0.7444, allocations: 0 / 1.406 GB, free: 7.637 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.7444, allocations: 4 kB / 1.406 GB, free: 7.633 MB / 0.8386 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005841/0.745, allocations: 0.5483 MB / 1.406 GB, free: 7.168 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 9.614e-05/0.7451, allocations: 116.3 kB / 1.406 GB, free: 7.043 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.554e-05/0.7451, allocations: 4 kB / 1.406 GB, free: 7.039 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001699/0.7453, allocations: 12.05 kB / 1.406 GB, free: 7.027 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.901e-05/0.7453, allocations: 11.05 kB / 1.406 GB, free: 7.02 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.473e-05/0.7454, allocations: 4 kB / 1.406 GB, free: 7.016 MB / 0.8386 GB Notification: Performance of sort global known variables: time 8.407e-05/0.7454, allocations: 135.1 kB / 1.406 GB, free: 6.902 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0003198/0.7458, allocations: 67.98 kB / 1.406 GB, free: 6.836 MB / 0.8386 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.0001466/0.7459, allocations: 118.2 kB / 1.407 GB, free: 6.711 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0005441/0.7465, allocations: 397.2 kB / 1.407 GB, free: 6.395 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.7465, allocations: 3.188 kB / 1.407 GB, free: 6.395 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0001279/0.7466, allocations: 117.2 kB / 1.407 GB, free: 6.312 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000236/0.7469, allocations: 26.45 kB / 1.407 GB, free: 6.293 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008818/0.7478, allocations: 0.4937 MB / 1.408 GB, free: 5.812 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003474/0.7481, allocations: 0.7995 MB / 1.408 GB, free: 5 MB / 0.8386 GB Notification: Performance of SimCode: time 2.4e-07/0.7481, allocations: 4 kB / 1.408 GB, free: 4.996 MB / 0.8386 GB Notification: Performance of Templates: time 0.005224/0.7534, allocations: 2.939 MB / 1.411 GB, free: 2.074 MB / 0.8386 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.makefile (rm -f Buildings_9_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.sim & ./Buildings_9_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor.csv","../files/Buildings_9_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches