Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.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_10_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_10_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.001134/0.001134, allocations: 98.8 kB / 16.02 MB, free: 76 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.00176/0.00176, allocations: 187.1 kB / 16.92 MB, free: 6.75 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.481/1.481, allocations: 223.3 MB / 241 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.628/2.628, allocations: 437.8 MB / 0.7128 GB, free: 7.027 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003542/0.0003542, allocations: 12 kB / 0.8735 GB, free: 3.305 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7006/0.701, allocations: 153.8 MB / 1.024 GB, free: 15.88 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance): time 0.004534/0.7056, allocations: 3.413 MB / 1.027 GB, free: 12.45 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.003134/0.7087, allocations: 1.77 MB / 1.029 GB, free: 10.68 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003798/0.7091, allocations: 15.88 kB / 1.029 GB, free: 10.66 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0002706/0.7094, allocations: 59.5 kB / 1.029 GB, free: 10.6 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0009153/0.7104, allocations: 270.7 kB / 1.029 GB, free: 10.34 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.000707/0.7111, allocations: 239.5 kB / 1.029 GB, free: 10.11 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0009243/0.712, allocations: 0.7413 MB / 1.03 GB, free: 9.359 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007016/0.7127, allocations: 358.9 kB / 1.03 GB, free: 8.984 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004014/0.7131, allocations: 207 kB / 1.031 GB, free: 8.781 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003982/0.7136, allocations: 219 kB / 1.031 GB, free: 8.566 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 3.646e-05/0.7136, allocations: 12 kB / 1.031 GB, free: 8.555 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005461/0.7142, allocations: 339.3 kB / 1.031 GB, free: 8.223 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001295/0.7143, allocations: 115.6 kB / 1.031 GB, free: 8.109 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0002032/0.7145, allocations: 220.5 kB / 1.031 GB, free: 7.887 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.000489/0.715, allocations: 444.8 kB / 1.032 GB, free: 7.453 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.557e-06/0.715, allocations: 0 / 1.032 GB, free: 7.453 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.854e-06/0.715, allocations: 4 kB / 1.032 GB, free: 7.449 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 6.933e-06/0.715, allocations: 0 / 1.032 GB, free: 7.449 MB / 0.7794 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.001037/0.7161, allocations: 0.6623 MB / 1.033 GB, free: 6.738 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.564e-05/0.7161, allocations: 8.031 kB / 1.033 GB, free: 6.73 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008903/0.717, allocations: 140.1 kB / 1.033 GB, free: 6.594 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004781/0.7175, allocations: 379.6 kB / 1.033 GB, free: 6.184 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.502e-05/0.7175, allocations: 21.03 kB / 1.033 GB, free: 6.164 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.976e-05/0.7176, allocations: 24.38 kB / 1.033 GB, free: 6.141 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008227/0.7184, allocations: 0.5589 MB / 1.034 GB, free: 5.508 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.827e-05/0.7185, allocations: 7.938 kB / 1.034 GB, free: 5.5 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.515e-05/0.7185, allocations: 12 kB / 1.034 GB, free: 5.488 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.912e-05/0.7186, allocations: 40.53 kB / 1.034 GB, free: 5.449 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007223/0.7193, allocations: 421.7 kB / 1.034 GB, free: 5.039 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002787/0.7221, allocations: 3.337 MB / 1.037 GB, free: 1.449 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006818/0.7228, allocations: 346.4 kB / 1.038 GB, free: 1.102 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003119/0.7231, allocations: 176.8 kB / 1.038 GB, free: 0.9258 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.373e-05/0.7231, allocations: 4 kB / 1.038 GB, free: 0.9219 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.352e-05/0.7232, allocations: 42.56 kB / 1.038 GB, free: 0.8711 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=26): time 1.924e-06/0.7232, allocations: 0 / 1.038 GB, free: 0.8711 MB / 0.7794 GB Notification: Performance of matching and sorting (n=27): time 0.002093/0.7253, allocations: 1.085 MB / 1.039 GB, free: 15.71 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.835e-05/0.7253, allocations: 55.64 kB / 1.039 GB, free: 15.65 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003478/0.7257, allocations: 341.5 kB / 1.039 GB, free: 15.31 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 2.692e-05/0.7257, allocations: 33.7 kB / 1.039 GB, free: 15.27 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001578/0.7259, allocations: 239.6 kB / 1.04 GB, free: 15.03 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 7.739e-05/0.726, allocations: 102.5 kB / 1.04 GB, free: 14.93 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.976e-05/0.726, allocations: 33.7 kB / 1.04 GB, free: 14.89 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001299/0.7262, allocations: 346.8 kB / 1.04 GB, free: 14.55 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002774/0.7265, allocations: 156.8 kB / 1.04 GB, free: 14.39 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003878/0.7269, allocations: 303 kB / 1.04 GB, free: 14.04 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006991/0.7276, allocations: 488 kB / 1.041 GB, free: 13.5 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.7276, allocations: 7.938 kB / 1.041 GB, free: 13.49 MB / 0.795 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.000988/0.7286, allocations: 0.5822 MB / 1.042 GB, free: 12.89 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 2.153e-05/0.7286, allocations: 9.875 kB / 1.042 GB, free: 12.88 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.876e-06/0.7286, allocations: 4 kB / 1.042 GB, free: 12.88 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003047/0.7289, allocations: 82.52 kB / 1.042 GB, free: 12.79 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003497/0.7293, allocations: 100.2 kB / 1.042 GB, free: 12.69 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.117e-05/0.7293, allocations: 4 kB / 1.042 GB, free: 12.69 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000268/0.7296, allocations: 31.91 kB / 1.042 GB, free: 12.66 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.703e-05/0.7296, allocations: 27.92 kB / 1.042 GB, free: 12.63 MB / 0.795 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.0001926/0.7298, allocations: 174.2 kB / 1.042 GB, free: 12.45 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.397e-05/0.7299, allocations: 43.53 kB / 1.042 GB, free: 12.41 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009434/0.7308, allocations: 471.9 kB / 1.042 GB, free: 11.93 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.268e-06/0.7308, allocations: 0 / 1.042 GB, free: 11.93 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.856e-05/0.7309, allocations: 12 kB / 1.042 GB, free: 11.92 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.021e-06/0.7309, allocations: 3.984 kB / 1.042 GB, free: 11.91 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001409/0.7323, allocations: 0.9677 MB / 1.043 GB, free: 10.87 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.027e-06/0.7323, allocations: 0 / 1.043 GB, free: 10.87 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002286/0.7325, allocations: 55.89 kB / 1.043 GB, free: 10.82 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000241/0.7328, allocations: 78.5 kB / 1.044 GB, free: 10.73 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.069e-05/0.7328, allocations: 8 kB / 1.044 GB, free: 10.72 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.838e-06/0.7328, allocations: 8.031 kB / 1.044 GB, free: 10.71 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.753e-06/0.7328, allocations: 4 kB / 1.044 GB, free: 10.71 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008328/0.7337, allocations: 0.5546 MB / 1.044 GB, free: 10.12 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001521/0.7338, allocations: 132.6 kB / 1.044 GB, free: 9.973 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.738e-05/0.7339, allocations: 8 kB / 1.044 GB, free: 9.965 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002245/0.7341, allocations: 23.97 kB / 1.044 GB, free: 9.941 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.432e-05/0.7342, allocations: 35.84 kB / 1.044 GB, free: 9.906 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.475e-05/0.7342, allocations: 4 kB / 1.044 GB, free: 9.902 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0002156/0.7345, allocations: 239.2 kB / 1.044 GB, free: 9.668 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.2e-07/0.7345, allocations: 0 / 1.044 GB, free: 9.668 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0004213/0.7349, allocations: 88 kB / 1.045 GB, free: 9.582 MB / 0.795 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.0001275/0.735, allocations: 107.2 kB / 1.045 GB, free: 9.469 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0008441/0.7359, allocations: 0.6321 MB / 1.045 GB, free: 8.773 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.7359, allocations: 4.125 kB / 1.045 GB, free: 8.77 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0004415/0.7363, allocations: 441.7 kB / 1.046 GB, free: 8.273 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007229/0.7371, allocations: 126.7 kB / 1.046 GB, free: 8.156 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00114/0.7382, allocations: 0.9395 MB / 1.047 GB, free: 7.176 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003718/0.7386, allocations: 0.8274 MB / 1.048 GB, free: 6.324 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.634e-05/0.7387, allocations: 31.44 kB / 1.048 GB, free: 6.293 MB / 0.795 GB Notification: Performance of SimCode: time 3.21e-07/0.7387, allocations: 0 / 1.048 GB, free: 6.293 MB / 0.795 GB Notification: Performance of Templates: time 0.01094/0.7496, allocations: 9.382 MB / 1.057 GB, free: 12.93 MB / 0.8106 GB make -j1 -f Buildings_10_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.makefile (rm -f Buildings_10_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe ; mkfifo Buildings_10_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe >> ../files/Buildings_10_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.sim & ./Buildings_10_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_AC_OnePhase_Loads_Examples_VariableImpedance.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches