Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.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.Loads.Examples.VariableImpedance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Z_L.i.1.|Z_L.i.2.|Z_C.i.1.|Z_C.i.2.|Z_R.i.1.|Z_R.i.2.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance") translateModel(Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Z_L.i.1.|Z_L.i.2.|Z_C.i.1.|Z_C.i.2.|Z_R.i.1.|Z_R.i.2.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance") [: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.78/1.78, allocations: 387.2 MB / 394.5 MB, free: 13.64 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.0009693/0.0009693, allocations: 177.3 kB / 487 MB, free: 5.355 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.146/1.146, allocations: 221.3 MB / 0.7819 GB, free: 1.352 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.0009025/0.0009023, allocations: 96.61 kB / 0.9213 GB, free: 2.594 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 5.461e-06/5.481e-06, allocations: 0 / 1.066 GB, free: 168.2 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1928/0.1928, allocations: 142.3 MB / 1.205 GB, free: 26.18 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5153/0.7082, allocations: 165 MB / 1.366 GB, free: 11.48 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001878/0.7084, allocations: 91.38 kB / 1.366 GB, free: 11.43 MB / 0.8073 GB Notification: Performance of FrontEnd: time 0.04194/0.7503, allocations: 21.86 MB / 1.388 GB, free: 9 MB / 0.823 GB Notification: Performance of Transformations before backend: time 2.279e-05/0.7504, allocations: 12 kB / 1.388 GB, free: 8.988 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: 85 * Number of variables: 85 Notification: Performance of Generate backend data structure: time 0.0008189/0.7512, allocations: 0.6443 MB / 1.388 GB, free: 8.324 MB / 0.823 GB Notification: Performance of prepare preOptimizeDAE: time 2.899e-05/0.7512, allocations: 13.03 kB / 1.388 GB, free: 8.312 MB / 0.823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00083/0.7521, allocations: 138.3 kB / 1.389 GB, free: 8.18 MB / 0.823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004814/0.7526, allocations: 370.3 kB / 1.389 GB, free: 7.812 MB / 0.823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.468e-05/0.7526, allocations: 11.98 kB / 1.389 GB, free: 7.801 MB / 0.823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.659e-05/0.7526, allocations: 23.91 kB / 1.389 GB, free: 7.777 MB / 0.823 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004158/0.7531, allocations: 287.5 kB / 1.389 GB, free: 7.586 MB / 0.823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005973/0.7537, allocations: 0.5478 MB / 1.39 GB, free: 7.031 MB / 0.823 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.607e-05/0.7537, allocations: 3.938 kB / 1.39 GB, free: 7.027 MB / 0.823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.205e-05/0.7537, allocations: 4 kB / 1.39 GB, free: 7.023 MB / 0.823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.057e-05/0.7538, allocations: 32.64 kB / 1.39 GB, free: 6.992 MB / 0.823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002413/0.7562, allocations: 3.301 MB / 1.393 GB, free: 3.707 MB / 0.823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004321/0.7566, allocations: 291.8 kB / 1.393 GB, free: 3.484 MB / 0.823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001852/0.7568, allocations: 162.3 kB / 1.393 GB, free: 3.371 MB / 0.823 GB Notification: Performance of preOpt evalFunc (simulation): time 2.201e-05/0.7569, allocations: 7.938 kB / 1.393 GB, free: 3.363 MB / 0.823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.918e-05/0.7569, allocations: 37.78 kB / 1.393 GB, free: 3.32 MB / 0.823 GB Notification: Performance of pre-optimization done (n=26): time 1.312e-06/0.7569, allocations: 0 / 1.393 GB, free: 3.32 MB / 0.823 GB Notification: Performance of matching and sorting (n=27): time 0.0009635/0.7579, allocations: 0.5705 MB / 1.394 GB, free: 2.848 MB / 0.823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.993e-05/0.7579, allocations: 59.64 kB / 1.394 GB, free: 2.777 MB / 0.823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002116/0.7581, allocations: 253.8 kB / 1.394 GB, free: 2.562 MB / 0.823 GB Notification: Performance of collectPreVariables (initialization): time 2.102e-05/0.7582, allocations: 25.7 kB / 1.394 GB, free: 2.531 MB / 0.823 GB Notification: Performance of collectInitialEqns (initialization): time 9.439e-05/0.7582, allocations: 208 kB / 1.395 GB, free: 2.344 MB / 0.823 GB Notification: Performance of collectInitialBindings (initialization): time 5.789e-05/0.7583, allocations: 96.59 kB / 1.395 GB, free: 2.262 MB / 0.823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.588e-05/0.7583, allocations: 0 / 1.395 GB, free: 2.262 MB / 0.823 GB Notification: Performance of setup shared object (initialization): time 0.0001036/0.7584, allocations: 348.9 kB / 1.395 GB, free: 1.926 MB / 0.823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001681/0.7586, allocations: 126 kB / 1.395 GB, free: 1.84 MB / 0.823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002154/0.7588, allocations: 248 kB / 1.395 GB, free: 1.598 MB / 0.823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002093/0.7591, allocations: 171.6 kB / 1.395 GB, free: 1.477 MB / 0.823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.313e-06/0.7591, allocations: 0 / 1.395 GB, free: 1.477 MB / 0.823 GB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0006823/0.7597, allocations: 493.3 kB / 1.396 GB, free: 1.078 MB / 0.823 GB Notification: Performance of prepare postOptimizeDAE: time 9.618e-06/0.7598, allocations: 4 kB / 1.396 GB, free: 1.074 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.003e-06/0.7598, allocations: 4 kB / 1.396 GB, free: 1.07 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002627/0.76, allocations: 87.62 kB / 1.396 GB, free: 0.9883 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003235/0.7604, allocations: 87.08 kB / 1.396 GB, free: 0.9062 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.356e-06/0.7604, allocations: 7.938 kB / 1.396 GB, free: 0.8984 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002344/0.7606, allocations: 19.98 kB / 1.396 GB, free: 0.8789 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.652e-05/0.7607, allocations: 27.41 kB / 1.396 GB, free: 0.8555 MB / 0.823 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (42): * Single equations (assignments): 39 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 3 {(2,100.0%),(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 9.25e-05/0.7608, allocations: 116.9 kB / 1.396 GB, free: 0.7344 MB / 0.823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.877e-05/0.7608, allocations: 39.52 kB / 1.396 GB, free: 0.6953 MB / 0.823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006161/0.7615, allocations: 414.8 kB / 1.397 GB, free: 388 kB / 0.823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.096e-06/0.7615, allocations: 0 / 1.397 GB, free: 388 kB / 0.823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.131e-06/0.7615, allocations: 8 kB / 1.397 GB, free: 380 kB / 0.823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.611e-06/0.7615, allocations: 7.891 kB / 1.397 GB, free: 372 kB / 0.823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001077/0.7626, allocations: 0.8826 MB / 1.398 GB, free: 15.59 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.823e-06/0.7626, allocations: 0 / 1.398 GB, free: 15.59 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002331/0.7628, allocations: 51.91 kB / 1.398 GB, free: 15.54 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002285/0.7631, allocations: 88.53 kB / 1.398 GB, free: 15.46 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.747e-05/0.7631, allocations: 0 / 1.398 GB, free: 15.46 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.22e-06/0.7631, allocations: 4 kB / 1.398 GB, free: 15.45 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.066e-06/0.7631, allocations: 3.938 kB / 1.398 GB, free: 15.45 MB / 0.8386 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005982/0.7637, allocations: 0.5491 MB / 1.398 GB, free: 14.94 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001296/0.7638, allocations: 127.8 kB / 1.398 GB, free: 14.8 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.094e-05/0.7639, allocations: 4 kB / 1.398 GB, free: 14.8 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002182/0.7641, allocations: 23.88 kB / 1.398 GB, free: 14.77 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.888e-05/0.7642, allocations: 15.05 kB / 1.398 GB, free: 14.76 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.634e-05/0.7642, allocations: 11.25 kB / 1.398 GB, free: 14.75 MB / 0.8386 GB Notification: Performance of sort global known variables: time 0.0001467/0.7644, allocations: 194.7 kB / 1.399 GB, free: 14.6 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0003494/0.7647, allocations: 80 kB / 1.399 GB, free: 14.52 MB / 0.8386 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 3 {(2,100.0%),(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001143/0.7648, allocations: 107.2 kB / 1.399 GB, free: 14.41 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0005608/0.7654, allocations: 0.5791 MB / 1.399 GB, free: 13.86 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.523e-06/0.7654, allocations: 0 / 1.399 GB, free: 13.86 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0003168/0.7657, allocations: 423.7 kB / 1.4 GB, free: 13.43 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004959/0.7662, allocations: 103.8 kB / 1.4 GB, free: 13.35 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008054/0.7671, allocations: 0.5161 MB / 1.4 GB, free: 12.86 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004419/0.7675, allocations: 0.8708 MB / 1.401 GB, free: 11.97 MB / 0.8386 GB Notification: Performance of SimCode: time 1.323e-06/0.7675, allocations: 4 kB / 1.401 GB, free: 11.96 MB / 0.8386 GB Notification: Performance of Templates: time 0.007836/0.7754, allocations: 4.529 MB / 1.406 GB, free: 7.5 MB / 0.8386 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.makefile (rm -f Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.sim & ./Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_OnePhase_Loads_Examples_VariableImpedance.csv","../files/Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches