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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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.007909/0.007909, allocations: 100.2 kB / 15.73 MB, free: 6.496 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.00162/0.00162, allocations: 198.7 kB / 16.68 MB, free: 6.375 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.356/1.356, allocations: 222.9 MB / 240.4 MB, free: 4.305 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.743/2.743, allocations: 472.6 MB / 0.7453 GB, free: 4.574 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001253/0.001253, allocations: 63.89 kB / 1.069 GB, free: 9.203 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3282/0.3295, allocations: 159.9 MB / 1.226 GB, free: 9.195 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance): time 0.005059/0.3346, allocations: 3.77 MB / 1.229 GB, free: 5.406 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.002936/0.3376, allocations: 1.797 MB / 1.231 GB, free: 3.602 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001981/0.3378, allocations: 19.88 kB / 1.231 GB, free: 3.582 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0008464/0.3387, allocations: 262.6 kB / 1.231 GB, free: 3.324 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.0006604/0.3394, allocations: 298.4 kB / 1.232 GB, free: 3.031 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005606/0.3399, allocations: 243.5 kB / 1.232 GB, free: 2.793 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0006077/0.3406, allocations: 0.6088 MB / 1.232 GB, free: 2.184 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004152/0.341, allocations: 258.6 kB / 1.233 GB, free: 1.926 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003111/0.3413, allocations: 239.1 kB / 1.233 GB, free: 1.691 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003179/0.3416, allocations: 235 kB / 1.233 GB, free: 1.461 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 4.75e-05/0.3417, allocations: 24 kB / 1.233 GB, free: 1.438 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004722/0.3422, allocations: 275.4 kB / 1.233 GB, free: 1.168 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.0001337/0.3423, allocations: 123.6 kB / 1.234 GB, free: 1.047 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0002063/0.3425, allocations: 206.8 kB / 1.234 GB, free: 0.8438 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0007384/0.3433, allocations: 0.5875 MB / 1.234 GB, free: 260 kB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.128e-06/0.3433, allocations: 0 / 1.234 GB, free: 260 kB / 0.9825 GB Notification: Performance of FrontEnd: time 1.513e-06/0.3433, allocations: 0 / 1.234 GB, free: 260 kB / 0.9825 GB Notification: Performance of Transformations before backend: time 1.26e-05/0.3433, allocations: 0 / 1.234 GB, free: 260 kB / 0.9825 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.001139/0.3445, allocations: 0.7515 MB / 1.235 GB, free: 15.45 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.693e-05/0.3445, allocations: 12.03 kB / 1.235 GB, free: 15.44 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008544/0.3454, allocations: 140.4 kB / 1.235 GB, free: 15.3 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005041/0.3459, allocations: 411.9 kB / 1.236 GB, free: 14.86 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.971e-05/0.3459, allocations: 21.03 kB / 1.236 GB, free: 14.84 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.335e-05/0.346, allocations: 28.36 kB / 1.236 GB, free: 14.81 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007677/0.3467, allocations: 0.5509 MB / 1.236 GB, free: 14.19 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.818e-05/0.3468, allocations: 7.922 kB / 1.236 GB, free: 14.18 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.915e-05/0.3468, allocations: 12 kB / 1.236 GB, free: 14.17 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.757e-05/0.3469, allocations: 40.55 kB / 1.236 GB, free: 14.13 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007049/0.3476, allocations: 413.7 kB / 1.237 GB, free: 13.73 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0027/0.3503, allocations: 3.334 MB / 1.24 GB, free: 10.14 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007071/0.351, allocations: 338.4 kB / 1.24 GB, free: 9.805 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003549/0.3514, allocations: 180.8 kB / 1.24 GB, free: 9.625 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.718e-05/0.3514, allocations: 0 / 1.24 GB, free: 9.625 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.865e-05/0.3515, allocations: 34.56 kB / 1.24 GB, free: 9.582 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=26): time 1.403e-06/0.3515, allocations: 0 / 1.24 GB, free: 9.582 MB / 0.9981 GB Notification: Performance of matching and sorting (n=27): time 0.002216/0.3537, allocations: 1.076 MB / 1.241 GB, free: 8.438 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.912e-05/0.3538, allocations: 51.64 kB / 1.241 GB, free: 8.375 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003652/0.3541, allocations: 341.6 kB / 1.242 GB, free: 8.031 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 2.687e-05/0.3542, allocations: 29.7 kB / 1.242 GB, free: 7.996 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001834/0.3544, allocations: 252.1 kB / 1.242 GB, free: 7.746 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 9.521e-05/0.3545, allocations: 103.1 kB / 1.242 GB, free: 7.645 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001234/0.3546, allocations: 78.09 kB / 1.242 GB, free: 7.559 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.00014/0.3547, allocations: 346.8 kB / 1.243 GB, free: 7.211 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002621/0.355, allocations: 144.8 kB / 1.243 GB, free: 7.07 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003799/0.3554, allocations: 298.5 kB / 1.243 GB, free: 6.719 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000649/0.3561, allocations: 475.3 kB / 1.243 GB, free: 6.191 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/0.3561, allocations: 0 / 1.243 GB, free: 6.191 MB / 0.9981 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0009944/0.3571, allocations: 0.5738 MB / 1.244 GB, free: 5.602 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 2.658e-05/0.3571, allocations: 8 kB / 1.244 GB, free: 5.594 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.125e-05/0.3571, allocations: 7.938 kB / 1.244 GB, free: 5.586 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003373/0.3575, allocations: 86.52 kB / 1.244 GB, free: 5.492 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003743/0.3578, allocations: 87.81 kB / 1.244 GB, free: 5.406 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.457e-05/0.3579, allocations: 12.16 kB / 1.244 GB, free: 5.395 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002732/0.3581, allocations: 31.97 kB / 1.244 GB, free: 5.363 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.015e-05/0.3582, allocations: 20 kB / 1.244 GB, free: 5.344 MB / 0.9981 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.0002227/0.3584, allocations: 176.4 kB / 1.244 GB, free: 5.164 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.845e-05/0.3585, allocations: 39.77 kB / 1.244 GB, free: 5.125 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000897/0.3594, allocations: 472 kB / 1.245 GB, free: 4.645 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.521e-06/0.3594, allocations: 4 kB / 1.245 GB, free: 4.641 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.552e-06/0.3594, allocations: 0 / 1.245 GB, free: 4.641 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.641e-06/0.3594, allocations: 3.984 kB / 1.245 GB, free: 4.637 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001417/0.3609, allocations: 0.9598 MB / 1.246 GB, free: 3.602 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.036e-06/0.3609, allocations: 0 / 1.246 GB, free: 3.602 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002451/0.3611, allocations: 55.95 kB / 1.246 GB, free: 3.547 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002335/0.3614, allocations: 82.5 kB / 1.246 GB, free: 3.457 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.151e-05/0.3614, allocations: 7.938 kB / 1.246 GB, free: 3.449 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.519e-06/0.3614, allocations: 4.094 kB / 1.246 GB, free: 3.445 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.814e-06/0.3614, allocations: 4 kB / 1.246 GB, free: 3.441 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008161/0.3622, allocations: 0.5488 MB / 1.247 GB, free: 2.859 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001448/0.3624, allocations: 152.8 kB / 1.247 GB, free: 2.691 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.768e-05/0.3624, allocations: 4 kB / 1.247 GB, free: 2.688 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002329/0.3627, allocations: 27.91 kB / 1.247 GB, free: 2.66 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.583e-05/0.3628, allocations: 19.97 kB / 1.247 GB, free: 2.641 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.92e-05/0.3628, allocations: 8 kB / 1.247 GB, free: 2.633 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0002199/0.363, allocations: 235.2 kB / 1.247 GB, free: 2.41 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.6e-07/0.363, allocations: 0 / 1.247 GB, free: 2.41 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0004377/0.3635, allocations: 84 kB / 1.247 GB, free: 2.328 MB / 0.9981 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.000126/0.3636, allocations: 111.2 kB / 1.247 GB, free: 2.207 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0008713/0.3645, allocations: 0.6353 MB / 1.248 GB, free: 1.508 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.3645, allocations: 0 / 1.248 GB, free: 1.508 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.00046/0.365, allocations: 429.7 kB / 1.248 GB, free: 1.023 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006947/0.3657, allocations: 134.6 kB / 1.248 GB, free: 0.8945 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00106/0.3667, allocations: 0.7299 MB / 1.249 GB, free: 128 kB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.587/0.9537, allocations: 0.8301 MB / 1.25 GB, free: 26.47 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0003962/0.9542, allocations: 77.69 kB / 1.25 GB, free: 26.46 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.686e-05/0.9543, allocations: 32.33 kB / 1.25 GB, free: 26.46 MB / 0.9981 GB Notification: Performance of SimCode: time 8.61e-07/0.9543, allocations: 0.625 kB / 1.25 GB, free: 26.46 MB / 0.9981 GB Notification: Performance of Templates: time 0.01189/0.9662, allocations: 4.75 MB / 1.255 GB, free: 26.29 MB / 0.9981 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/jenkins/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