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/ModelicaServices 4.0.0+maint.om/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/Buildings 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001178/0.001178, allocations: 108.4 kB / 15.99 MB, free: 6.359 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001075/0.001075, allocations: 189.2 kB / 16.91 MB, free: 6.195 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.344/1.344, allocations: 222.9 MB / 240.6 MB, free: 13.67 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.724/2.724, allocations: 469.4 MB / 0.7423 GB, free: 3.848 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001598/0.001598, allocations: 64.22 kB / 0.9083 GB, free: 14.49 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3628/0.3644, allocations: 159.1 MB / 1.064 GB, free: 15.38 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance): time 0.006107/0.3706, allocations: 3.781 MB / 1.067 GB, free: 11.58 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.003302/0.3739, allocations: 1.785 MB / 1.069 GB, free: 9.785 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004387/0.3744, allocations: 15.94 kB / 1.069 GB, free: 9.77 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.001065/0.3755, allocations: 247 kB / 1.069 GB, free: 9.527 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.0009452/0.3765, allocations: 270.7 kB / 1.07 GB, free: 9.262 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.000732/0.3772, allocations: 231.6 kB / 1.07 GB, free: 9.035 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0009391/0.3782, allocations: 0.601 MB / 1.07 GB, free: 8.434 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006245/0.3788, allocations: 282.5 kB / 1.071 GB, free: 8.152 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004925/0.3793, allocations: 239 kB / 1.071 GB, free: 7.918 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005451/0.3799, allocations: 243 kB / 1.071 GB, free: 7.68 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 7.522e-05/0.38, allocations: 28 kB / 1.071 GB, free: 7.652 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005541/0.3805, allocations: 267.4 kB / 1.071 GB, free: 7.391 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.0001621/0.3807, allocations: 119.6 kB / 1.072 GB, free: 7.273 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.0003074/0.381, allocations: 214.8 kB / 1.072 GB, free: 7.062 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.000658/0.3817, allocations: 451.2 kB / 1.072 GB, free: 6.621 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 7.153e-06/0.3817, allocations: 0 / 1.072 GB, free: 6.621 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.513e-06/0.3817, allocations: 0 / 1.072 GB, free: 6.621 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 2.067e-05/0.3817, allocations: 0 / 1.072 GB, free: 6.621 MB / 0.8419 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.001519/0.3833, allocations: 0.7401 MB / 1.073 GB, free: 5.832 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.54e-05/0.3833, allocations: 12.62 kB / 1.073 GB, free: 5.82 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001038/0.3843, allocations: 140.2 kB / 1.073 GB, free: 5.684 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005457/0.3849, allocations: 371.7 kB / 1.073 GB, free: 5.281 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.924e-05/0.385, allocations: 25.02 kB / 1.073 GB, free: 5.258 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.018e-05/0.385, allocations: 28.31 kB / 1.074 GB, free: 5.23 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009177/0.3859, allocations: 0.555 MB / 1.074 GB, free: 4.605 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.979e-05/0.386, allocations: 3.938 kB / 1.074 GB, free: 4.602 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.781e-05/0.386, allocations: 19.98 kB / 1.074 GB, free: 4.582 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.312e-05/0.3861, allocations: 40.53 kB / 1.074 GB, free: 4.543 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007306/0.3868, allocations: 409.7 kB / 1.075 GB, free: 4.141 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003102/0.39, allocations: 3.337 MB / 1.078 GB, free: 0.5547 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006982/0.3907, allocations: 331.2 kB / 1.078 GB, free: 228 kB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002968/0.391, allocations: 176.8 kB / 1.078 GB, free: 48 kB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 2.608e-05/0.391, allocations: 4 kB / 1.078 GB, free: 44 kB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.5954/0.9864, allocations: 41.75 kB / 1.078 GB, free: 23.03 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=26): time 8.907e-06/0.9865, allocations: 0 / 1.078 GB, free: 23.03 MB / 0.8419 GB Notification: Performance of matching and sorting (n=27): time 0.002505/0.989, allocations: 1.053 MB / 1.079 GB, free: 22.68 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.897e-05/0.989, allocations: 59.39 kB / 1.079 GB, free: 22.61 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000439/0.9895, allocations: 342.2 kB / 1.08 GB, free: 22.5 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 2.211e-05/0.9895, allocations: 30.39 kB / 1.08 GB, free: 22.47 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001422/0.9897, allocations: 247.7 kB / 1.08 GB, free: 22.34 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 7.295e-05/0.9897, allocations: 96.7 kB / 1.08 GB, free: 22.28 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001332/0.9899, allocations: 77.33 kB / 1.08 GB, free: 22.26 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001004/0.99, allocations: 348 kB / 1.08 GB, free: 21.95 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002901/0.9903, allocations: 149.5 kB / 1.081 GB, free: 21.95 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003495/0.9906, allocations: 292.9 kB / 1.081 GB, free: 21.77 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006236/0.9913, allocations: 481.7 kB / 1.081 GB, free: 21.47 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.586e-06/0.9913, allocations: 1.969 kB / 1.081 GB, free: 21.47 MB / 0.8419 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0009407/0.9922, allocations: 0.5611 MB / 1.082 GB, free: 21.23 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 2.469e-05/0.9923, allocations: 7.25 kB / 1.082 GB, free: 21.23 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.058e-05/0.9923, allocations: 4.5 kB / 1.082 GB, free: 21.23 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003044/0.9926, allocations: 88.89 kB / 1.082 GB, free: 21.2 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003414/0.9929, allocations: 87.11 kB / 1.082 GB, free: 21.19 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.51e-05/0.993, allocations: 10.88 kB / 1.082 GB, free: 21.19 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002739/0.9932, allocations: 30.23 kB / 1.082 GB, free: 21.18 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.062e-05/0.9933, allocations: 22.47 kB / 1.082 GB, free: 21.18 MB / 0.8419 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * 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 (45): * Single equations (assignments): 42 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 3 systems {(2,100.0%), (2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001711/0.9935, allocations: 179.3 kB / 1.082 GB, free: 21.02 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.451e-05/0.9935, allocations: 39.06 kB / 1.082 GB, free: 21 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008498/0.9944, allocations: 471.1 kB / 1.083 GB, free: 20.8 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.701e-06/0.9944, allocations: 2.938 kB / 1.083 GB, free: 20.8 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.785e-06/0.9944, allocations: 1.125 kB / 1.083 GB, free: 20.8 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.342e-06/0.9944, allocations: 6.703 kB / 1.083 GB, free: 20.8 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001353/0.9958, allocations: 0.9619 MB / 1.084 GB, free: 20.24 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.745e-06/0.9958, allocations: 1.828 kB / 1.084 GB, free: 20.24 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002309/0.996, allocations: 54.59 kB / 1.084 GB, free: 20.23 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000224/0.9963, allocations: 87.48 kB / 1.084 GB, free: 20.19 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.039e-05/0.9963, allocations: 6.344 kB / 1.084 GB, free: 20.19 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.97e-06/0.9963, allocations: 2.125 kB / 1.084 GB, free: 20.19 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.9963, allocations: 9.109 kB / 1.084 GB, free: 20.18 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007654/0.9971, allocations: 0.5399 MB / 1.084 GB, free: 19.87 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001189/0.9972, allocations: 138.9 kB / 1.085 GB, free: 19.75 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.226e-05/0.9973, allocations: 7.047 kB / 1.085 GB, free: 19.74 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002204/0.9975, allocations: 23.38 kB / 1.085 GB, free: 19.74 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.93e-05/0.9976, allocations: 22.2 kB / 1.085 GB, free: 19.73 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.789e-05/0.9976, allocations: 9.594 kB / 1.085 GB, free: 19.73 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0002258/0.9978, allocations: 239.7 kB / 1.085 GB, free: 19.61 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.3e-07/0.9979, allocations: 0 / 1.085 GB, free: 19.61 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0004291/0.9983, allocations: 85.19 kB / 1.085 GB, free: 19.6 MB / 0.8419 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 (not torn): 3 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 3 systems {(2,100.0%), (2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001202/0.9984, allocations: 109.9 kB / 1.085 GB, free: 19.5 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0008927/0.9993, allocations: 0.664 MB / 1.086 GB, free: 19.06 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 4.068e-06/0.9993, allocations: 0.9375 kB / 1.086 GB, free: 19.06 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0004/0.9997, allocations: 433.9 kB / 1.086 GB, free: 18.7 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007085/1, allocations: 127.5 kB / 1.086 GB, free: 18.67 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001124/1.002, allocations: 0.9192 MB / 1.087 GB, free: 18.07 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002882/1.002, allocations: 0.8225 MB / 1.088 GB, free: 17.36 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001124/1.002, allocations: 36.7 kB / 1.088 GB, free: 17.36 MB / 0.8419 GB Notification: Performance of SimCode: time 3.81e-07/1.002, allocations: 0 / 1.088 GB, free: 17.36 MB / 0.8419 GB Notification: Performance of Templates: time 0.01614/1.018, allocations: 9.437 MB / 1.097 GB, free: 16.68 MB / 0.8419 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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches