Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.TestImpedance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Z1.i.1.|Z1.i.2.|Z2.i.1.|Z2.i.2.|Z3.i.1.|Z3.i.2.|Z4.i.1.|Z4.i.2.|Z5.i.1.|Z5.i.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance") translateModel(Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Z1.i.1.|Z1.i.2.|Z2.i.1.|Z2.i.2.|Z3.i.1.|Z3.i.2.|Z4.i.1.|Z4.i.2.|Z5.i.1.|Z5.i.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009032/0.0009034, allocations: 97.78 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.00103/0.00103, allocations: 187.3 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.38/1.38, allocations: 223.3 MB / 241 MB, free: 5.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.774/2.774, allocations: 462.6 MB / 0.7371 GB, free: 15.6 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0004314/0.0004316, allocations: 8.375 kB / 0.9034 GB, free: 36.43 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3375/0.3379, allocations: 159.6 MB / 1.059 GB, free: 4.984 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance): time 0.005797/0.3437, allocations: 4.474 MB / 1.064 GB, free: 500 kB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.00434/0.3481, allocations: 2.44 MB / 1.066 GB, free: 14.04 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005985/0.3487, allocations: 23.81 kB / 1.066 GB, free: 14.02 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0004239/0.3492, allocations: 87.2 kB / 1.066 GB, free: 13.93 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.001411/0.3506, allocations: 418 kB / 1.067 GB, free: 13.52 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009904/0.3516, allocations: 338.1 kB / 1.067 GB, free: 13.19 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.001416/0.3531, allocations: 1.124 MB / 1.068 GB, free: 12.07 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009366/0.354, allocations: 472.2 kB / 1.068 GB, free: 11.58 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006382/0.3547, allocations: 286.7 kB / 1.069 GB, free: 11.3 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006299/0.3553, allocations: 334.4 kB / 1.069 GB, free: 10.97 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 9.524e-05/0.3554, allocations: 20 kB / 1.069 GB, free: 10.95 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009276/0.3563, allocations: 498.9 kB / 1.07 GB, free: 10.46 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0002313/0.3566, allocations: 159.5 kB / 1.07 GB, free: 10.3 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0004311/0.357, allocations: 316 kB / 1.07 GB, free: 9.988 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0008648/0.3579, allocations: 0.6625 MB / 1.071 GB, free: 9.324 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.3579, allocations: 0 / 1.071 GB, free: 9.324 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.523e-06/0.3579, allocations: 0 / 1.071 GB, free: 9.324 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 2.553e-05/0.358, allocations: 4 kB / 1.071 GB, free: 9.32 MB / 0.8262 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 129 * Number of variables: 129 Notification: Performance of Generate backend data structure: time 0.001519/0.3595, allocations: 0.8103 MB / 1.071 GB, free: 8.461 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.85e-05/0.3595, allocations: 11.97 kB / 1.071 GB, free: 8.449 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00143/0.361, allocations: 215.7 kB / 1.072 GB, free: 8.238 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000723/0.3617, allocations: 494.3 kB / 1.072 GB, free: 7.715 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.52e-05/0.3618, allocations: 33.38 kB / 1.072 GB, free: 7.684 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.529e-05/0.3619, allocations: 52.36 kB / 1.072 GB, free: 7.633 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001175/0.363, allocations: 0.8448 MB / 1.073 GB, free: 6.656 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.734e-05/0.3631, allocations: 7.922 kB / 1.073 GB, free: 6.648 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.12e-05/0.3631, allocations: 23.98 kB / 1.073 GB, free: 6.625 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.931e-05/0.3632, allocations: 60.97 kB / 1.073 GB, free: 6.562 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009019/0.3642, allocations: 0.5772 MB / 1.074 GB, free: 5.988 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004702/0.3689, allocations: 5.647 MB / 1.079 GB, free: 15.95 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006612/0.3695, allocations: 450.3 kB / 1.08 GB, free: 15.5 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003248/0.3699, allocations: 228.7 kB / 1.08 GB, free: 15.27 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 2.657e-05/0.3699, allocations: 8.469 kB / 1.08 GB, free: 15.26 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.136e-05/0.37, allocations: 38.56 kB / 1.08 GB, free: 15.21 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=32): time 3.016e-06/0.37, allocations: 0 / 1.08 GB, free: 15.21 MB / 0.8419 GB Notification: Performance of matching and sorting (n=33): time 0.00261/0.3726, allocations: 1.512 MB / 1.081 GB, free: 13.59 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.168e-05/0.3726, allocations: 55.69 kB / 1.081 GB, free: 13.52 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005504/0.3732, allocations: 0.4949 MB / 1.082 GB, free: 13.01 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 3.005e-05/0.3732, allocations: 33.7 kB / 1.082 GB, free: 12.97 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002335/0.3735, allocations: 358.8 kB / 1.082 GB, free: 12.62 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001012/0.3736, allocations: 114.3 kB / 1.082 GB, free: 12.5 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.33e-05/0.3737, allocations: 49.69 kB / 1.082 GB, free: 12.45 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001509/0.3738, allocations: 362.8 kB / 1.083 GB, free: 12.09 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002894/0.3741, allocations: 197.2 kB / 1.083 GB, free: 11.89 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004112/0.3745, allocations: 451.3 kB / 1.083 GB, free: 11.34 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007764/0.3753, allocations: 0.6799 MB / 1.084 GB, free: 10.54 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.83e-06/0.3753, allocations: 4 kB / 1.084 GB, free: 10.54 MB / 0.8419 GB Notification: Performance of matching and sorting (n=71) (initialization): time 0.001285/0.3766, allocations: 0.813 MB / 1.085 GB, free: 9.699 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 2.285e-05/0.3767, allocations: 12 kB / 1.085 GB, free: 9.688 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.61e-05/0.3767, allocations: 8 kB / 1.085 GB, free: 9.68 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004954/0.3772, allocations: 152.6 kB / 1.085 GB, free: 9.516 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004676/0.3777, allocations: 127.7 kB / 1.085 GB, free: 9.391 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003127/0.3808, allocations: 4.036 MB / 1.089 GB, free: 4.957 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004357/0.3813, allocations: 35.97 kB / 1.089 GB, free: 4.922 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.961e-05/0.3813, allocations: 28 kB / 1.089 GB, free: 4.895 MB / 0.8419 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 38 * 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 (66): * Single equations (assignments): 61 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,1,100.0%), (1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002766/0.3816, allocations: 211.4 kB / 1.089 GB, free: 4.68 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001074/0.3817, allocations: 63.19 kB / 1.089 GB, free: 4.617 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001084/0.3828, allocations: 0.5972 MB / 1.09 GB, free: 4 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.757e-06/0.3828, allocations: 0 / 1.09 GB, free: 4 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.712e-06/0.3828, allocations: 4 kB / 1.09 GB, free: 3.996 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.021e-06/0.3829, allocations: 3.938 kB / 1.09 GB, free: 3.992 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001827/0.3847, allocations: 1.266 MB / 1.091 GB, free: 2.637 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.519e-06/0.3847, allocations: 0 / 1.091 GB, free: 2.637 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002691/0.385, allocations: 55.89 kB / 1.091 GB, free: 2.582 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004178/0.3854, allocations: 144.3 kB / 1.091 GB, free: 2.426 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.913e-05/0.3854, allocations: 11.98 kB / 1.091 GB, free: 2.414 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003033/0.3885, allocations: 4.032 MB / 1.095 GB, free: 13.98 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.865e-06/0.3885, allocations: 0 / 1.095 GB, free: 13.98 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00103/0.3895, allocations: 0.7039 MB / 1.096 GB, free: 13.22 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002249/0.3898, allocations: 172.2 kB / 1.096 GB, free: 13.03 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.678e-05/0.3899, allocations: 15.88 kB / 1.096 GB, free: 13.02 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002741/0.3902, allocations: 31.95 kB / 1.096 GB, free: 12.98 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.208e-05/0.3902, allocations: 31.89 kB / 1.096 GB, free: 12.95 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.133e-05/0.3903, allocations: 12 kB / 1.096 GB, free: 12.94 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0003488/0.3906, allocations: 330.8 kB / 1.097 GB, free: 12.62 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3906, allocations: 0 / 1.097 GB, free: 12.62 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.000654/0.3913, allocations: 144 kB / 1.097 GB, free: 12.48 MB / 0.8575 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * 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 (29): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,1,100.0%), (1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.00015/0.3914, allocations: 111.2 kB / 1.097 GB, free: 12.36 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.001456/0.3929, allocations: 1.032 MB / 1.098 GB, free: 11.25 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 3.317e-06/0.3929, allocations: 0.9375 kB / 1.098 GB, free: 11.25 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0008231/0.3937, allocations: 0.7421 MB / 1.099 GB, free: 10.42 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001161/0.3949, allocations: 192.9 kB / 1.099 GB, free: 10.24 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001793/0.3967, allocations: 1.312 MB / 1.1 GB, free: 8.871 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004577/0.3972, allocations: 0.9097 MB / 1.101 GB, free: 7.934 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001285/0.3973, allocations: 39.44 kB / 1.101 GB, free: 7.895 MB / 0.8575 GB Notification: Performance of SimCode: time 6.52e-07/0.3973, allocations: 4 kB / 1.101 GB, free: 7.891 MB / 0.8575 GB Notification: Performance of Templates: time 0.02193/0.4193, allocations: 17.89 MB / 1.118 GB, free: 6.023 MB / 0.8731 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.sim & ./Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_OnePhase_Loads_Examples_TestImpedance.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches