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/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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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_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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001778/0.001778, allocations: 108 kB / 15.61 MB, free: 148 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002012/0.002012, allocations: 194.8 kB / 16.53 MB, free: 6.656 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.494/1.494, allocations: 222.9 MB / 240.2 MB, free: 4.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.603/2.603, allocations: 390.2 MB / 0.6646 GB, free: 476 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001381/0.001381, allocations: 63.91 kB / 0.8125 GB, free: 14.47 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8079/0.8093, allocations: 140.4 MB / 0.9496 GB, free: 9.195 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance): time 0.00649/0.8158, allocations: 3.758 MB / 0.9533 GB, free: 6.254 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.003422/0.8193, allocations: 1.788 MB / 0.955 GB, free: 4.836 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005944/0.8199, allocations: 21.19 kB / 0.955 GB, free: 4.824 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.001126/0.8211, allocations: 271.5 kB / 0.9553 GB, free: 4.613 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.001092/0.8222, allocations: 291.6 kB / 0.9556 GB, free: 4.387 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007711/0.823, allocations: 240.5 kB / 0.9558 GB, free: 4.203 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.000886/0.8239, allocations: 0.6049 MB / 0.9564 GB, free: 3.852 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005854/0.8245, allocations: 261.6 kB / 0.9566 GB, free: 3.695 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005475/0.8251, allocations: 230.8 kB / 0.9568 GB, free: 3.57 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005123/0.8256, allocations: 238.6 kB / 0.9571 GB, free: 3.422 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 8.855e-05/0.8257, allocations: 25.94 kB / 0.9571 GB, free: 3.422 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008242/0.8265, allocations: 274.7 kB / 0.9574 GB, free: 3.293 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0001983/0.8267, allocations: 127 kB / 0.9575 GB, free: 3.207 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0003324/0.8271, allocations: 204.9 kB / 0.9577 GB, free: 3.074 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.001139/0.8282, allocations: 0.5838 MB / 0.9582 GB, free: 2.684 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.21e-06/0.8282, allocations: 1.344 kB / 0.9583 GB, free: 2.684 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.886e-06/0.8282, allocations: 0 / 0.9583 GB, free: 2.684 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.386e-05/0.8283, allocations: 0 / 0.9583 GB, free: 2.684 MB / 0.7169 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.001992/0.8303, allocations: 0.7357 MB / 0.959 GB, free: 2.051 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 5.147e-05/0.8304, allocations: 13.06 kB / 0.959 GB, free: 2.047 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001168/0.8315, allocations: 129.9 kB / 0.9591 GB, free: 1.988 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006569/0.8322, allocations: 386.3 kB / 0.9595 GB, free: 1.637 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.963e-05/0.8322, allocations: 21.38 kB / 0.9595 GB, free: 1.629 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.491e-05/0.8323, allocations: 27.12 kB / 0.9595 GB, free: 1.621 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009716/0.8333, allocations: 0.5562 MB / 0.9601 GB, free: 1.184 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.121e-05/0.8333, allocations: 6.156 kB / 0.9601 GB, free: 1.18 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.661e-05/0.8334, allocations: 13.75 kB / 0.9601 GB, free: 1.172 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.79e-05/0.8335, allocations: 36.86 kB / 0.9601 GB, free: 1.164 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008938/0.8344, allocations: 413.3 kB / 0.9605 GB, free: 0.9648 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003531/0.8379, allocations: 3.329 MB / 0.9638 GB, free: 13.78 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007801/0.8387, allocations: 345.7 kB / 0.9641 GB, free: 13.59 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003193/0.8391, allocations: 172.9 kB / 0.9643 GB, free: 13.5 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 2.746e-05/0.8391, allocations: 3.844 kB / 0.9643 GB, free: 13.5 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.248e-05/0.8392, allocations: 43.73 kB / 0.9643 GB, free: 13.45 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=26): time 2.174e-06/0.8392, allocations: 0 / 0.9643 GB, free: 13.45 MB / 0.7325 GB Notification: Performance of matching and sorting (n=27): time 0.002375/0.8415, allocations: 1.063 MB / 0.9653 GB, free: 12.71 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.728e-05/0.8416, allocations: 53.83 kB / 0.9654 GB, free: 12.65 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004626/0.8421, allocations: 343.6 kB / 0.9657 GB, free: 12.43 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 3.005e-05/0.8421, allocations: 34.64 kB / 0.9658 GB, free: 12.39 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001815/0.8423, allocations: 239.2 kB / 0.966 GB, free: 12.17 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 9.085e-05/0.8424, allocations: 102.4 kB / 0.9661 GB, free: 12.08 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001382/0.8426, allocations: 76.89 kB / 0.9662 GB, free: 12.03 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001658/0.8427, allocations: 342.8 kB / 0.9665 GB, free: 11.69 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002907/0.843, allocations: 153.9 kB / 0.9666 GB, free: 11.62 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004464/0.8435, allocations: 299 kB / 0.9669 GB, free: 11.36 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007275/0.8442, allocations: 477.7 kB / 0.9674 GB, free: 11 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.997e-06/0.8442, allocations: 1.906 kB / 0.9674 GB, free: 11 MB / 0.7325 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.001111/0.8454, allocations: 0.564 MB / 0.9679 GB, free: 10.68 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 2.522e-05/0.8454, allocations: 6.969 kB / 0.9679 GB, free: 10.68 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.254e-05/0.8454, allocations: 5.562 kB / 0.9679 GB, free: 10.68 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003424/0.8458, allocations: 85.39 kB / 0.968 GB, free: 10.63 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003607/0.8461, allocations: 92.78 kB / 0.9681 GB, free: 10.6 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.625e-05/0.8462, allocations: 11.31 kB / 0.9681 GB, free: 10.6 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002998/0.8465, allocations: 33.47 kB / 0.9681 GB, free: 10.58 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.266e-05/0.8465, allocations: 14.78 kB / 0.9682 GB, free: 10.58 MB / 0.7325 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.0002205/0.8467, allocations: 175.5 kB / 0.9683 GB, free: 10.42 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.048e-05/0.8468, allocations: 35.12 kB / 0.9684 GB, free: 10.41 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009223/0.8478, allocations: 475.2 kB / 0.9688 GB, free: 10.11 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.935e-06/0.8478, allocations: 2.625 kB / 0.9688 GB, free: 10.11 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.566e-06/0.8478, allocations: 1.344 kB / 0.9688 GB, free: 10.11 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.403e-06/0.8478, allocations: 3.984 kB / 0.9688 GB, free: 10.11 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001601/0.8494, allocations: 0.9548 MB / 0.9698 GB, free: 9.395 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.926e-06/0.8494, allocations: 1.281 kB / 0.9698 GB, free: 9.395 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002495/0.8497, allocations: 52.45 kB / 0.9698 GB, free: 9.379 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002409/0.8499, allocations: 92.58 kB / 0.9699 GB, free: 9.312 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.279e-05/0.85, allocations: 6.781 kB / 0.9699 GB, free: 9.309 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.551e-06/0.85, allocations: 5.219 kB / 0.9699 GB, free: 9.305 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.609e-06/0.85, allocations: 5.156 kB / 0.9699 GB, free: 9.301 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009649/0.851, allocations: 0.5418 MB / 0.9704 GB, free: 8.926 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001872/0.8512, allocations: 137 kB / 0.9706 GB, free: 8.793 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.497e-05/0.8512, allocations: 6.656 kB / 0.9706 GB, free: 8.789 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002169/0.8514, allocations: 22.81 kB / 0.9706 GB, free: 8.777 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.511e-05/0.8515, allocations: 22.25 kB / 0.9706 GB, free: 8.766 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.176e-05/0.8516, allocations: 9.219 kB / 0.9706 GB, free: 8.762 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0003031/0.8519, allocations: 238.5 kB / 0.9709 GB, free: 8.605 MB / 0.7325 GB Notification: Performance of sort global known variables: time 3.81e-07/0.8519, allocations: 0 / 0.9709 GB, free: 8.605 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0005227/0.8524, allocations: 84.22 kB / 0.9709 GB, free: 8.598 MB / 0.7325 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.0001983/0.8526, allocations: 114.7 kB / 0.971 GB, free: 8.496 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.001178/0.8538, allocations: 0.6614 MB / 0.9717 GB, free: 8 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.796e-06/0.8538, allocations: 0 / 0.9717 GB, free: 8 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0005531/0.8544, allocations: 437.5 kB / 0.9721 GB, free: 7.605 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008107/0.8552, allocations: 124.2 kB / 0.9722 GB, free: 7.547 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001668/0.8569, allocations: 0.7334 MB / 0.9729 GB, free: 7.055 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006475/0.8575, allocations: 0.821 MB / 0.9737 GB, free: 6.293 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0003231/0.8579, allocations: 83.34 kB / 0.9738 GB, free: 6.254 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001058/0.858, allocations: 29 kB / 0.9738 GB, free: 6.246 MB / 0.7325 GB Notification: Performance of SimCode: time 4.538e-06/0.858, allocations: 0 / 0.9738 GB, free: 6.246 MB / 0.7325 GB Notification: Performance of Templates: time 0.01197/0.87, allocations: 4.684 MB / 0.9784 GB, free: 3.449 MB / 0.7325 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches