Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.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.Loads.Examples.TestImpedance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Z1.i.1.|Z1.i.2.|Z2.i.1.|Z2.i.2.|Z3.i.1.|Z3.i.2.|Z4.i.1.|Z4.i.2.|Z5.i.1.|Z5.i.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance") translateModel(Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Z1.i.1.|Z1.i.2.|Z2.i.1.|Z2.i.2.|Z3.i.1.|Z3.i.2.|Z4.i.1.|Z4.i.2.|Z5.i.1.|Z5.i.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance") [: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.715/1.715, allocations: 390.4 MB / 397.7 MB, free: 11.27 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.0008959/0.0008959, allocations: 173.3 kB / 490.8 MB, free: 1.969 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.053/1.053, allocations: 221.3 MB / 0.7863 GB, free: 13.69 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.0008007/0.0008007, allocations: 91.69 kB / 0.9264 GB, free: 14.22 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 5.26e-06/5.361e-06, allocations: 0 / 1.072 GB, free: 182.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1659/0.1659, allocations: 143 MB / 1.212 GB, free: 40.11 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.4561/0.622, allocations: 165.3 MB / 1.373 GB, free: 17.19 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000202/0.6222, allocations: 91.31 kB / 1.373 GB, free: 17.19 MB / 0.823 GB Notification: Performance of FrontEnd: time 0.06137/0.6836, allocations: 31.84 MB / 1.404 GB, free: 5.512 MB / 0.823 GB Notification: Performance of Transformations before backend: time 2.696e-05/0.6837, allocations: 23.36 kB / 1.404 GB, free: 5.492 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: 129 * Number of variables: 129 Notification: Performance of Generate backend data structure: time 0.0008216/0.6845, allocations: 0.7612 MB / 1.405 GB, free: 20.72 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 2.832e-05/0.6845, allocations: 12.03 kB / 1.405 GB, free: 20.71 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001103/0.6856, allocations: 202.8 kB / 1.405 GB, free: 20.51 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005481/0.6862, allocations: 491.5 kB / 1.406 GB, free: 20.05 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.546e-05/0.6862, allocations: 15.98 kB / 1.406 GB, free: 20.04 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.368e-05/0.6863, allocations: 28 kB / 1.406 GB, free: 20.01 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004963/0.6868, allocations: 431.3 kB / 1.406 GB, free: 19.72 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006597/0.6874, allocations: 0.8593 MB / 1.407 GB, free: 18.83 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.088e-05/0.6875, allocations: 7.938 kB / 1.407 GB, free: 18.82 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.308e-05/0.6875, allocations: 4 kB / 1.407 GB, free: 18.82 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.352e-05/0.6876, allocations: 63.17 kB / 1.407 GB, free: 18.77 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002895/0.6905, allocations: 5.568 MB / 1.412 GB, free: 13.21 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003599/0.6908, allocations: 421.8 kB / 1.413 GB, free: 12.91 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002074/0.691, allocations: 224.5 kB / 1.413 GB, free: 12.76 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.62e-05/0.6911, allocations: 11.97 kB / 1.413 GB, free: 12.75 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.746e-05/0.6911, allocations: 41.75 kB / 1.413 GB, free: 12.7 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=32): time 1.422e-06/0.6911, allocations: 0 / 1.413 GB, free: 12.7 MB / 0.8386 GB Notification: Performance of matching and sorting (n=33): time 0.001206/0.6923, allocations: 0.816 MB / 1.414 GB, free: 12.02 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.039e-05/0.6924, allocations: 51.41 kB / 1.414 GB, free: 11.96 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002788/0.6926, allocations: 353.6 kB / 1.414 GB, free: 11.67 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.254e-05/0.6927, allocations: 25.7 kB / 1.414 GB, free: 11.64 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001135/0.6928, allocations: 297 kB / 1.415 GB, free: 11.38 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 7.097e-05/0.6929, allocations: 115.1 kB / 1.415 GB, free: 11.28 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.324e-05/0.6929, allocations: 0 / 1.415 GB, free: 11.28 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 9.887e-05/0.693, allocations: 364.9 kB / 1.415 GB, free: 10.93 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002062/0.6932, allocations: 184.1 kB / 1.415 GB, free: 10.82 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003173/0.6935, allocations: 391.1 kB / 1.416 GB, free: 10.41 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002718/0.6938, allocations: 252.3 kB / 1.416 GB, free: 10.23 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.306e-06/0.6938, allocations: 4 kB / 1.416 GB, free: 10.23 MB / 0.8386 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0009305/0.6948, allocations: 0.7063 MB / 1.417 GB, free: 9.645 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.009e-05/0.6948, allocations: 8.156 kB / 1.417 GB, free: 9.637 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.238e-06/0.6948, allocations: 8 kB / 1.417 GB, free: 9.629 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004049/0.6952, allocations: 142.2 kB / 1.417 GB, free: 9.496 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003766/0.6956, allocations: 110.8 kB / 1.417 GB, free: 9.391 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00235/0.6979, allocations: 3.865 MB / 1.421 GB, free: 5.32 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002843/0.6982, allocations: 19.92 kB / 1.421 GB, free: 5.301 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.478e-05/0.6983, allocations: 23.25 kB / 1.421 GB, free: 5.281 MB / 0.8386 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 33 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (61): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.7e-05/0.6984, allocations: 120.2 kB / 1.421 GB, free: 5.16 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.145e-05/0.6985, allocations: 67.31 kB / 1.421 GB, free: 5.094 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007906/0.6993, allocations: 0.571 MB / 1.421 GB, free: 4.641 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.188e-06/0.6993, allocations: 4 kB / 1.421 GB, free: 4.637 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.526e-06/0.6993, allocations: 0 / 1.421 GB, free: 4.637 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.1e-06/0.6993, allocations: 3.984 kB / 1.421 GB, free: 4.633 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00136/0.7007, allocations: 1.178 MB / 1.423 GB, free: 3.621 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.427e-06/0.7007, allocations: 4 kB / 1.423 GB, free: 3.617 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002352/0.7009, allocations: 47.95 kB / 1.423 GB, free: 3.57 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003528/0.7013, allocations: 143.3 kB / 1.423 GB, free: 3.438 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.411e-05/0.7013, allocations: 4 kB / 1.423 GB, free: 3.434 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00225/0.7036, allocations: 3.853 MB / 1.426 GB, free: 15.38 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/0.7036, allocations: 4.156 kB / 1.426 GB, free: 15.37 MB / 0.8542 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0008203/0.7044, allocations: 0.7779 MB / 1.427 GB, free: 14.62 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001559/0.7046, allocations: 161.3 kB / 1.427 GB, free: 14.46 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.273e-05/0.7046, allocations: 3.984 kB / 1.427 GB, free: 14.46 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002182/0.7049, allocations: 11.98 kB / 1.427 GB, free: 14.45 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.582e-05/0.7049, allocations: 19.52 kB / 1.427 GB, free: 14.43 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.402e-05/0.7049, allocations: 11.44 kB / 1.427 GB, free: 14.42 MB / 0.8542 GB Notification: Performance of sort global known variables: time 0.0001912/0.7051, allocations: 264.1 kB / 1.428 GB, free: 14.22 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0004778/0.7056, allocations: 124 kB / 1.428 GB, free: 14.1 MB / 0.8542 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (29): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001154/0.7057, allocations: 111.4 kB / 1.428 GB, free: 13.98 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0009785/0.7067, allocations: 0.9647 MB / 1.429 GB, free: 13.07 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 2.494e-06/0.7067, allocations: 3.438 kB / 1.429 GB, free: 13.07 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 0.0006304/0.7074, allocations: 0.7037 MB / 1.43 GB, free: 12.36 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006567/0.708, allocations: 157 kB / 1.43 GB, free: 12.23 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001059/0.7091, allocations: 0.7488 MB / 1.43 GB, free: 11.52 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000471/0.7096, allocations: 0.9524 MB / 1.431 GB, free: 10.55 MB / 0.8542 GB Notification: Performance of SimCode: time 2.41e-07/0.7096, allocations: 0 / 1.431 GB, free: 10.55 MB / 0.8542 GB Notification: Performance of Templates: time 0.01049/0.7201, allocations: 7.001 MB / 1.438 GB, free: 3.668 MB / 0.8542 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.sim & ./Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_OnePhase_Loads_Examples_TestImpedance.csv","../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches