Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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_latest_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_latest_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 10.0.0-master/package.mo): time 1.704/1.704, allocations: 390.4 MB / 397.7 MB, free: 11.23 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.0009059/0.0009059, allocations: 184.3 kB / 490.8 MB, free: 1.941 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.06/1.06, allocations: 221.3 MB / 0.7863 GB, free: 13.68 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008229/0.0008229, allocations: 94.88 kB / 0.9264 GB, free: 14.19 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 5.27e-06/5.29e-06, allocations: 0 / 1.072 GB, free: 182.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1656/0.1656, allocations: 143 MB / 1.212 GB, free: 40.1 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.4712/0.6368, allocations: 176.4 MB / 1.384 GB, free: 16.96 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002063/0.6371, allocations: 96.22 kB / 1.384 GB, free: 16.94 MB / 0.823 GB Notification: Performance of FrontEnd: time 0.04021/0.6773, allocations: 20.74 MB / 1.404 GB, free: 6.371 MB / 0.823 GB Notification: Performance of Transformations before backend: time 1.064e-05/0.6773, allocations: 4 kB / 1.404 GB, free: 6.367 MB / 0.823 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.0006117/0.6779, allocations: 0.5176 MB / 1.405 GB, free: 21.82 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 2.721e-05/0.678, allocations: 8.031 kB / 1.405 GB, free: 21.81 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007094/0.6787, allocations: 95.61 kB / 1.405 GB, free: 21.71 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002987/0.679, allocations: 258.9 kB / 1.405 GB, free: 21.44 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.114e-05/0.679, allocations: 7.938 kB / 1.405 GB, free: 21.43 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.107e-05/0.6791, allocations: 12 kB / 1.405 GB, free: 21.42 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002937/0.6794, allocations: 233.5 kB / 1.405 GB, free: 21.27 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003449/0.6797, allocations: 335 kB / 1.406 GB, free: 21 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.453e-05/0.6797, allocations: 7.375 kB / 1.406 GB, free: 20.99 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.45e-05/0.6798, allocations: 3.938 kB / 1.406 GB, free: 20.99 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.491e-05/0.6798, allocations: 20.42 kB / 1.406 GB, free: 20.97 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00126/0.6811, allocations: 1.473 MB / 1.407 GB, free: 19.52 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001967/0.6813, allocations: 201.4 kB / 1.407 GB, free: 19.37 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001034/0.6814, allocations: 109.7 kB / 1.407 GB, free: 19.3 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001063/0.6815, allocations: 92.69 kB / 1.407 GB, free: 19.19 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.511e-05/0.6815, allocations: 37.81 kB / 1.407 GB, free: 19.15 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=18): time 1.323e-06/0.6815, allocations: 0 / 1.407 GB, free: 19.15 MB / 0.8386 GB Notification: Performance of matching and sorting (n=19): time 0.001023/0.6825, allocations: 0.7306 MB / 1.408 GB, free: 18.49 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.592e-05/0.6826, allocations: 51.41 kB / 1.408 GB, free: 18.43 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001129/0.6827, allocations: 165.8 kB / 1.408 GB, free: 18.28 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.457e-05/0.6827, allocations: 29.64 kB / 1.408 GB, free: 18.24 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 5.821e-05/0.6828, allocations: 158.1 kB / 1.409 GB, free: 18.09 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.887e-05/0.6828, allocations: 61.77 kB / 1.409 GB, free: 18.04 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.232e-05/0.6828, allocations: 0 / 1.409 GB, free: 18.04 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 8.818e-05/0.6829, allocations: 325.1 kB / 1.409 GB, free: 17.72 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001159/0.683, allocations: 110.9 kB / 1.409 GB, free: 17.65 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000126/0.6832, allocations: 161.1 kB / 1.409 GB, free: 17.51 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002562/0.6834, allocations: 161.5 kB / 1.409 GB, free: 17.4 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.313e-06/0.6834, allocations: 0 / 1.409 GB, free: 17.4 MB / 0.8386 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0006281/0.6841, allocations: 411.9 kB / 1.41 GB, free: 17.07 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 9.217e-06/0.6841, allocations: 8 kB / 1.41 GB, free: 17.07 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.1e-06/0.6841, allocations: 0 / 1.41 GB, free: 17.07 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003102/0.6844, allocations: 104.3 kB / 1.41 GB, free: 16.98 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002159/0.6846, allocations: 47.16 kB / 1.41 GB, free: 16.93 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001311/0.686, allocations: 1.646 MB / 1.412 GB, free: 15.31 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001956/0.6862, allocations: 11.89 kB / 1.412 GB, free: 15.3 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.969e-05/0.6862, allocations: 8 kB / 1.412 GB, free: 15.29 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.665e-05/0.6863, allocations: 112.2 kB / 1.412 GB, free: 15.18 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.938e-05/0.6863, allocations: 15.81 kB / 1.412 GB, free: 15.16 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000426/0.6868, allocations: 313 kB / 1.412 GB, free: 14.94 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.284e-06/0.6868, allocations: 0 / 1.412 GB, free: 14.94 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.21e-07/0.6868, allocations: 0 / 1.412 GB, free: 14.94 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.088e-06/0.6868, allocations: 3.906 kB / 1.412 GB, free: 14.93 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000684/0.6875, allocations: 0.6698 MB / 1.413 GB, free: 14.34 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.893e-06/0.6875, allocations: 4 kB / 1.413 GB, free: 14.33 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002696/0.6878, allocations: 59.83 kB / 1.413 GB, free: 14.28 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.655e-06/0.6878, allocations: 0 / 1.413 GB, free: 14.28 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.648e-05/0.6878, allocations: 4 kB / 1.413 GB, free: 14.27 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.653e-06/0.6878, allocations: 0 / 1.413 GB, free: 14.27 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.044e-06/0.6878, allocations: 3.906 kB / 1.413 GB, free: 14.27 MB / 0.8386 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005604/0.6884, allocations: 0.5565 MB / 1.413 GB, free: 13.8 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001049/0.6885, allocations: 112.8 kB / 1.413 GB, free: 13.68 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.599e-05/0.6885, allocations: 7.812 kB / 1.413 GB, free: 13.67 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001643/0.6887, allocations: 7.984 kB / 1.413 GB, free: 13.66 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.457e-05/0.6887, allocations: 12.05 kB / 1.413 GB, free: 13.65 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.352e-05/0.6888, allocations: 4 kB / 1.413 GB, free: 13.65 MB / 0.8386 GB Notification: Performance of sort global known variables: time 9.156e-05/0.6889, allocations: 140.7 kB / 1.414 GB, free: 13.53 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0003188/0.6892, allocations: 64 kB / 1.414 GB, free: 13.47 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.0001416/0.6893, allocations: 123.1 kB / 1.414 GB, free: 13.34 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0005414/0.6899, allocations: 400.6 kB / 1.414 GB, free: 13.02 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.6899, allocations: 0 / 1.414 GB, free: 13.02 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.000132/0.69, allocations: 124.7 kB / 1.414 GB, free: 12.93 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002326/0.6903, allocations: 24.42 kB / 1.414 GB, free: 12.91 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008807/0.6912, allocations: 498 kB / 1.415 GB, free: 12.45 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003993/0.6916, allocations: 0.7993 MB / 1.415 GB, free: 11.63 MB / 0.8386 GB Notification: Performance of SimCode: time 2.2e-07/0.6916, allocations: 0 / 1.415 GB, free: 11.63 MB / 0.8386 GB Notification: Performance of Templates: time 0.005299/0.6969, allocations: 2.937 MB / 1.418 GB, free: 8.734 MB / 0.8386 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.sim & ./Buildings_latest_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor.csv","../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches