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.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.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.001278/0.001278, allocations: 98.56 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.001965/0.001965, allocations: 183 kB / 16.92 MB, free: 6.918 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.436/1.436, allocations: 223.3 MB / 241 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.804/2.804, allocations: 462.6 MB / 0.737 GB, free: 15.58 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0005219/0.000522, allocations: 14.72 kB / 0.9034 GB, free: 36.43 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4245/0.425, allocations: 159.6 MB / 1.059 GB, free: 4.961 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance): time 0.005101/0.4301, allocations: 3.411 MB / 1.063 GB, free: 1.531 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.003718/0.4339, allocations: 1.781 MB / 1.064 GB, free: 15.74 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004522/0.4344, allocations: 15.88 kB / 1.064 GB, free: 15.73 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0003166/0.4347, allocations: 55.5 kB / 1.064 GB, free: 15.67 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.001089/0.4358, allocations: 278.7 kB / 1.065 GB, free: 15.4 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007806/0.4366, allocations: 231.6 kB / 1.065 GB, free: 15.17 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.001047/0.4377, allocations: 0.7374 MB / 1.066 GB, free: 14.43 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008123/0.4385, allocations: 362.9 kB / 1.066 GB, free: 14.06 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005506/0.4391, allocations: 203 kB / 1.066 GB, free: 13.86 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004615/0.4395, allocations: 223 kB / 1.066 GB, free: 13.64 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 5.591e-05/0.4396, allocations: 12 kB / 1.066 GB, free: 13.63 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000708/0.4403, allocations: 343.3 kB / 1.067 GB, free: 13.29 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001888/0.4405, allocations: 111.6 kB / 1.067 GB, free: 13.18 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0002799/0.4408, allocations: 212.6 kB / 1.067 GB, free: 12.97 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0006718/0.4415, allocations: 447.1 kB / 1.067 GB, free: 12.53 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.95e-06/0.4415, allocations: 0 / 1.067 GB, free: 12.53 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.333e-06/0.4415, allocations: 0 / 1.067 GB, free: 12.53 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 1.524e-05/0.4415, allocations: 0 / 1.067 GB, free: 12.53 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: 85 * Number of variables: 85 Notification: Performance of Generate backend data structure: time 0.001372/0.4429, allocations: 0.6662 MB / 1.068 GB, free: 11.82 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.652e-05/0.443, allocations: 19.95 kB / 1.068 GB, free: 11.8 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001016/0.444, allocations: 128.2 kB / 1.068 GB, free: 11.67 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006343/0.4446, allocations: 375.7 kB / 1.069 GB, free: 11.27 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.279e-05/0.4447, allocations: 33 kB / 1.069 GB, free: 11.23 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.529e-05/0.4448, allocations: 32.31 kB / 1.069 GB, free: 11.2 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009353/0.4457, allocations: 0.5557 MB / 1.069 GB, free: 10.57 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.084e-05/0.4458, allocations: 7.938 kB / 1.069 GB, free: 10.56 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.364e-05/0.4458, allocations: 12 kB / 1.069 GB, free: 10.55 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.68e-05/0.4459, allocations: 44.53 kB / 1.069 GB, free: 10.51 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008124/0.4467, allocations: 421.7 kB / 1.07 GB, free: 10.1 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003298/0.45, allocations: 3.33 MB / 1.073 GB, free: 6.516 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007015/0.4507, allocations: 342.5 kB / 1.073 GB, free: 6.172 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003295/0.4511, allocations: 180.8 kB / 1.073 GB, free: 5.992 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.5e-05/0.4511, allocations: 4 kB / 1.073 GB, free: 5.988 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.676e-05/0.4512, allocations: 34.56 kB / 1.073 GB, free: 5.945 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=26): time 2.004e-06/0.4512, allocations: 0 / 1.073 GB, free: 5.945 MB / 0.8262 GB Notification: Performance of matching and sorting (n=27): time 0.00229/0.4535, allocations: 1.089 MB / 1.075 GB, free: 4.785 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.88e-05/0.4535, allocations: 51.64 kB / 1.075 GB, free: 4.723 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003912/0.4539, allocations: 341.6 kB / 1.075 GB, free: 4.379 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.833e-05/0.4539, allocations: 33.7 kB / 1.075 GB, free: 4.34 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001853/0.4541, allocations: 251.5 kB / 1.075 GB, free: 4.09 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 9.471e-05/0.4542, allocations: 90.66 kB / 1.075 GB, free: 4 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.962e-05/0.4543, allocations: 37.7 kB / 1.075 GB, free: 3.957 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.00016/0.4545, allocations: 346.8 kB / 1.076 GB, free: 3.609 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003031/0.4548, allocations: 148.8 kB / 1.076 GB, free: 3.461 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003915/0.4552, allocations: 306.5 kB / 1.076 GB, free: 3.102 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007717/0.456, allocations: 486.6 kB / 1.077 GB, free: 2.562 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.285e-06/0.456, allocations: 0 / 1.077 GB, free: 2.562 MB / 0.8262 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.001104/0.4571, allocations: 0.5816 MB / 1.077 GB, free: 1.965 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.311e-05/0.4571, allocations: 4.062 kB / 1.077 GB, free: 1.961 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.989e-05/0.4571, allocations: 8 kB / 1.077 GB, free: 1.953 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000329/0.4575, allocations: 82.52 kB / 1.077 GB, free: 1.863 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003491/0.4578, allocations: 95.81 kB / 1.077 GB, free: 1.77 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.599e-05/0.4579, allocations: 8 kB / 1.077 GB, free: 1.762 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003023/0.4582, allocations: 43.84 kB / 1.077 GB, free: 1.719 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.365e-05/0.4582, allocations: 20 kB / 1.077 GB, free: 1.699 MB / 0.8262 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.0002051/0.4584, allocations: 173.6 kB / 1.078 GB, free: 1.52 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.205e-05/0.4585, allocations: 43.53 kB / 1.078 GB, free: 1.477 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009583/0.4595, allocations: 476.2 kB / 1.078 GB, free: 0.9961 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.085e-06/0.4595, allocations: 4 kB / 1.078 GB, free: 0.9922 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.065e-06/0.4595, allocations: 0 / 1.078 GB, free: 0.9922 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.212e-06/0.4595, allocations: 3.984 kB / 1.078 GB, free: 0.9883 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001587/0.4611, allocations: 0.9873 MB / 1.079 GB, free: 15.93 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.534e-06/0.4612, allocations: 4 kB / 1.079 GB, free: 15.93 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002471/0.4614, allocations: 52.05 kB / 1.079 GB, free: 15.88 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002438/0.4617, allocations: 86.44 kB / 1.079 GB, free: 15.78 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.627e-05/0.4617, allocations: 8 kB / 1.079 GB, free: 15.77 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.799e-06/0.4617, allocations: 4 kB / 1.079 GB, free: 15.77 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.853e-06/0.4617, allocations: 0 / 1.079 GB, free: 15.77 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009119/0.4626, allocations: 0.5585 MB / 1.08 GB, free: 15.18 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001718/0.4628, allocations: 136.6 kB / 1.08 GB, free: 15.02 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.263e-05/0.4629, allocations: 4 kB / 1.08 GB, free: 15.02 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002357/0.4631, allocations: 23.97 kB / 1.08 GB, free: 15 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.708e-05/0.4632, allocations: 27.91 kB / 1.08 GB, free: 14.97 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.756e-05/0.4632, allocations: 8 kB / 1.08 GB, free: 14.96 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0002483/0.4635, allocations: 231.2 kB / 1.08 GB, free: 14.74 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.3e-07/0.4635, allocations: 0 / 1.08 GB, free: 14.74 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0004509/0.464, allocations: 95.98 kB / 1.08 GB, free: 14.64 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.000148/0.4641, allocations: 107.2 kB / 1.08 GB, free: 14.53 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.001023/0.4651, allocations: 0.6384 MB / 1.081 GB, free: 13.82 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 3.186e-06/0.4652, allocations: 0 / 1.081 GB, free: 13.82 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0005156/0.4657, allocations: 442.8 kB / 1.081 GB, free: 13.33 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007716/0.4665, allocations: 119.7 kB / 1.081 GB, free: 13.21 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00157/0.468, allocations: 0.9434 MB / 1.082 GB, free: 12.23 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005791/0.4686, allocations: 0.8197 MB / 1.083 GB, free: 11.38 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001132/0.4688, allocations: 31.44 kB / 1.083 GB, free: 11.35 MB / 0.8419 GB Notification: Performance of SimCode: time 5.01e-07/0.4688, allocations: 0 / 1.083 GB, free: 11.35 MB / 0.8419 GB Notification: Performance of Templates: time 0.01433/0.4831, allocations: 9.381 MB / 1.092 GB, free: 1.992 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