Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.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.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_latest_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_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.273/2.273, allocations: 393.5 MB / 408.4 MB, free: 11.01 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.001048/0.001048, allocations: 172 kB / 0.4902 GB, free: 2.215 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.664/1.664, allocations: 223.1 MB / 0.7992 GB, free: 14.78 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.001058/0.001058, allocations: 108.2 kB / 0.9396 GB, free: 1.922 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0004058/0.0004058, allocations: 14.28 kB / 1.09 GB, free: 216.4 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3448/0.3452, allocations: 143 MB / 1.229 GB, free: 105.8 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2863/0.6316, allocations: 166.6 MB / 1.392 GB, free: 3.031 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004018/0.632, allocations: 99.94 kB / 1.392 GB, free: 2.934 MB / 0.8855 GB Notification: Performance of FrontEnd - DAE generated: time 0.05781/0.6899, allocations: 22.38 MB / 1.414 GB, free: 12.3 MB / 0.9167 GB Notification: Performance of FrontEnd: time 1.353e-06/0.6899, allocations: 0 / 1.414 GB, free: 12.3 MB / 0.9167 GB Notification: Performance of Transformations before backend: time 4.051e-05/0.69, allocations: 12 kB / 1.414 GB, free: 12.29 MB / 0.9167 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.001459/0.6914, allocations: 0.6855 MB / 1.414 GB, free: 11.56 MB / 0.9167 GB Notification: Performance of prepare preOptimizeDAE: time 4.69e-05/0.6915, allocations: 8.562 kB / 1.415 GB, free: 11.55 MB / 0.9167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001074/0.6926, allocations: 143.2 kB / 1.415 GB, free: 11.41 MB / 0.9167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008207/0.6934, allocations: 382.5 kB / 1.415 GB, free: 10.99 MB / 0.9167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.108e-05/0.6935, allocations: 20.66 kB / 1.415 GB, free: 10.97 MB / 0.9167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.156e-05/0.6936, allocations: 31.98 kB / 1.415 GB, free: 10.94 MB / 0.9167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00102/0.6946, allocations: 0.6051 MB / 1.416 GB, free: 10.23 MB / 0.9167 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.126e-05/0.6946, allocations: 0 / 1.416 GB, free: 10.23 MB / 0.9167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.681e-05/0.6947, allocations: 19.98 kB / 1.416 GB, free: 10.21 MB / 0.9167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.255e-05/0.6948, allocations: 32.55 kB / 1.416 GB, free: 10.18 MB / 0.9167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008191/0.6956, allocations: 417.7 kB / 1.416 GB, free: 9.777 MB / 0.9167 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003432/0.699, allocations: 3.357 MB / 1.419 GB, free: 6.172 MB / 0.9167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007171/0.6998, allocations: 346 kB / 1.42 GB, free: 5.824 MB / 0.9167 GB Notification: Performance of preOpt evalFunc (simulation): time 2.541e-05/0.6998, allocations: 4 kB / 1.42 GB, free: 5.82 MB / 0.9167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.199e-05/0.6999, allocations: 38.55 kB / 1.42 GB, free: 5.773 MB / 0.9167 GB Notification: Performance of pre-optimization done (n=26): time 1.673e-06/0.6999, allocations: 0 / 1.42 GB, free: 5.773 MB / 0.9167 GB Notification: Performance of matching and sorting (n=27): time 0.002309/0.7022, allocations: 1.074 MB / 1.421 GB, free: 4.629 MB / 0.9167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.311e-05/0.7022, allocations: 59.53 kB / 1.421 GB, free: 4.559 MB / 0.9167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003491/0.7026, allocations: 300.7 kB / 1.421 GB, free: 4.258 MB / 0.9167 GB Notification: Performance of collectPreVariables (initialization): time 3.706e-05/0.7026, allocations: 29.7 kB / 1.421 GB, free: 4.223 MB / 0.9167 GB Notification: Performance of collectInitialEqns (initialization): time 0.000168/0.7028, allocations: 243.7 kB / 1.421 GB, free: 3.98 MB / 0.9167 GB Notification: Performance of collectInitialBindings (initialization): time 8.358e-05/0.7029, allocations: 94.64 kB / 1.421 GB, free: 3.887 MB / 0.9167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.701e-05/0.7029, allocations: 4 kB / 1.421 GB, free: 3.883 MB / 0.9167 GB Notification: Performance of setup shared object (initialization): time 0.000138/0.7031, allocations: 350.8 kB / 1.422 GB, free: 3.531 MB / 0.9167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002625/0.7033, allocations: 148.7 kB / 1.422 GB, free: 3.383 MB / 0.9167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003583/0.7037, allocations: 279.1 kB / 1.422 GB, free: 3.059 MB / 0.9167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003151/0.704, allocations: 187.4 kB / 1.422 GB, free: 2.879 MB / 0.9167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.7041, allocations: 4 kB / 1.422 GB, free: 2.875 MB / 0.9167 GB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0009638/0.705, allocations: 0.5543 MB / 1.423 GB, free: 2.305 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 2.306e-05/0.7051, allocations: 8 kB / 1.423 GB, free: 2.297 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.237e-05/0.7051, allocations: 4 kB / 1.423 GB, free: 2.293 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003459/0.7054, allocations: 82.52 kB / 1.423 GB, free: 2.203 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003745/0.7058, allocations: 91.81 kB / 1.423 GB, free: 2.113 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.07e-05/0.7058, allocations: 11.92 kB / 1.423 GB, free: 2.102 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003099/0.7062, allocations: 31.97 kB / 1.423 GB, free: 2.07 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.842e-05/0.7062, allocations: 20 kB / 1.423 GB, free: 2.051 MB / 0.9167 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 () * Number of clocked 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 0.0003403/0.7066, allocations: 178.4 kB / 1.423 GB, free: 1.867 MB / 0.9167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001123/0.7067, allocations: 43.48 kB / 1.423 GB, free: 1.824 MB / 0.9167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009685/0.7076, allocations: 476.5 kB / 1.424 GB, free: 1.344 MB / 0.9167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.63e-06/0.7077, allocations: 0 / 1.424 GB, free: 1.344 MB / 0.9167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.175e-05/0.7077, allocations: 4 kB / 1.424 GB, free: 1.34 MB / 0.9167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.297e-06/0.7077, allocations: 3.984 kB / 1.424 GB, free: 1.336 MB / 0.9167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001706/0.7094, allocations: 0.9767 MB / 1.425 GB, free: 292 kB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.296e-06/0.7094, allocations: 0 / 1.425 GB, free: 292 kB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002437/0.7097, allocations: 55.98 kB / 1.425 GB, free: 236 kB / 0.9167 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002417/0.7099, allocations: 86.5 kB / 1.425 GB, free: 140 kB / 0.9167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.218e-05/0.71, allocations: 4 kB / 1.425 GB, free: 136 kB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.427e-06/0.71, allocations: 4 kB / 1.425 GB, free: 132 kB / 0.9167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.864e-06/0.71, allocations: 0 / 1.425 GB, free: 132 kB / 0.9167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.6404/1.35, allocations: 0.5811 MB / 1.426 GB, free: 181.6 MB / 0.9167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002166/1.351, allocations: 140.7 kB / 1.426 GB, free: 181.5 MB / 0.9167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.338e-05/1.351, allocations: 7.844 kB / 1.426 GB, free: 181.5 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002655/1.351, allocations: 25.89 kB / 1.426 GB, free: 181.5 MB / 0.9167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.069e-05/1.351, allocations: 21.33 kB / 1.426 GB, free: 181.5 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.173e-05/1.351, allocations: 11.56 kB / 1.426 GB, free: 181.5 MB / 0.9167 GB Notification: Performance of sorting global known variables: time 0.0002553/1.351, allocations: 235 kB / 1.426 GB, free: 181.4 MB / 0.9167 GB Notification: Performance of sort global known variables: time 1.1e-07/1.351, allocations: 3.828 kB / 1.426 GB, free: 181.4 MB / 0.9167 GB Notification: Performance of remove unused functions: time 0.0004521/1.352, allocations: 89.16 kB / 1.426 GB, free: 181.4 MB / 0.9167 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 () * Number of clocked 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.0001718/1.352, allocations: 121.4 kB / 1.426 GB, free: 181.3 MB / 0.9167 GB Notification: Performance of simCode: created initialization part: time 0.0008086/1.353, allocations: 0.6269 MB / 1.427 GB, free: 181 MB / 0.9167 GB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/1.353, allocations: 0 / 1.427 GB, free: 181 MB / 0.9167 GB Notification: Performance of simCode: created simulation system equations: time 0.0003778/1.353, allocations: 438.9 kB / 1.427 GB, free: 180.7 MB / 0.9167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005569/1.354, allocations: 113.5 kB / 1.427 GB, free: 180.7 MB / 0.9167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009837/1.355, allocations: 0.8607 MB / 1.428 GB, free: 180.3 MB / 0.9167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002516/1.355, allocations: 0.8336 MB / 1.429 GB, free: 179.6 MB / 0.9167 GB Notification: Performance of simCode: alias equations: time 0.0002333/1.355, allocations: 77.27 kB / 1.429 GB, free: 179.6 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.884e-05/1.355, allocations: 25.34 kB / 1.429 GB, free: 179.6 MB / 0.9167 GB Notification: Performance of SimCode: time 3.4e-07/1.355, allocations: 5.062 kB / 1.429 GB, free: 179.6 MB / 0.9167 GB Notification: Performance of Templates: time 0.00984/1.365, allocations: 4.317 MB / 1.433 GB, free: 179.4 MB / 0.9167 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.sim & ./Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_OnePhase_Loads_Examples_VariableImpedance.csv","../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches