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.006771/0.006771, allocations: 101.2 kB / 15.73 MB, free: 6.043 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.001326/0.001326, allocations: 197.4 kB / 16.68 MB, free: 5.965 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.485/1.485, allocations: 222.9 MB / 240.4 MB, free: 4.18 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.57/2.57, allocations: 390.2 MB / 0.6648 GB, free: 164 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001263/0.001263, allocations: 66.73 kB / 0.9508 GB, free: 5.566 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3403/0.3416, allocations: 140.4 MB / 1.088 GB, free: 1.488 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance): time 0.005048/0.3467, allocations: 3.749 MB / 1.092 GB, free: 13.72 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.003018/0.3497, allocations: 1.793 MB / 1.093 GB, free: 11.92 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002192/0.35, allocations: 19.81 kB / 1.093 GB, free: 11.9 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0008718/0.3509, allocations: 265.2 kB / 1.094 GB, free: 11.64 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0007021/0.3516, allocations: 302.4 kB / 1.094 GB, free: 11.34 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.000577/0.3522, allocations: 251.4 kB / 1.094 GB, free: 11.1 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0006029/0.3528, allocations: 0.6049 MB / 1.095 GB, free: 10.49 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004087/0.3532, allocations: 259.1 kB / 1.095 GB, free: 10.23 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002949/0.3535, allocations: 231.1 kB / 1.095 GB, free: 10.01 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003026/0.3538, allocations: 231 kB / 1.095 GB, free: 9.781 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 4.628e-05/0.3539, allocations: 24 kB / 1.095 GB, free: 9.758 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004359/0.3543, allocations: 275.4 kB / 1.096 GB, free: 9.488 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0001307/0.3545, allocations: 119.6 kB / 1.096 GB, free: 9.371 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.000195/0.3547, allocations: 214.8 kB / 1.096 GB, free: 9.16 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.000632/0.3553, allocations: 0.5878 MB / 1.097 GB, free: 8.57 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.087e-06/0.3553, allocations: 0 / 1.097 GB, free: 8.57 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.843e-06/0.3553, allocations: 0 / 1.097 GB, free: 8.57 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 8.235e-06/0.3553, allocations: 0 / 1.097 GB, free: 8.57 MB / 0.8575 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.3565, allocations: 0.744 MB / 1.097 GB, free: 7.777 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.014e-05/0.3565, allocations: 12.03 kB / 1.097 GB, free: 7.766 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008313/0.3574, allocations: 132.1 kB / 1.097 GB, free: 7.637 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005919/0.358, allocations: 407.6 kB / 1.098 GB, free: 7.195 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.641e-05/0.358, allocations: 25.02 kB / 1.098 GB, free: 7.168 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.707e-05/0.3581, allocations: 28.38 kB / 1.098 GB, free: 7.141 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008121/0.3589, allocations: 0.5488 MB / 1.098 GB, free: 6.523 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.711e-05/0.3589, allocations: 3.938 kB / 1.098 GB, free: 6.52 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.559e-05/0.359, allocations: 15.98 kB / 1.098 GB, free: 6.504 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.724e-05/0.359, allocations: 48.53 kB / 1.098 GB, free: 6.457 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006643/0.3597, allocations: 409.7 kB / 1.099 GB, free: 6.059 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00279/0.3625, allocations: 3.33 MB / 1.102 GB, free: 2.477 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006519/0.3632, allocations: 338.4 kB / 1.102 GB, free: 2.137 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002904/0.3635, allocations: 180.6 kB / 1.103 GB, free: 1.957 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.439e-05/0.3635, allocations: 0 / 1.103 GB, free: 1.957 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.528e-05/0.3635, allocations: 42.56 kB / 1.103 GB, free: 1.906 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=26): time 1.804e-06/0.3636, allocations: 0 / 1.103 GB, free: 1.906 MB / 0.8575 GB Notification: Performance of matching and sorting (n=27): time 0.001989/0.3655, allocations: 1.06 MB / 1.104 GB, free: 0.7734 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.531e-05/0.3656, allocations: 59.62 kB / 1.104 GB, free: 0.7031 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003127/0.3659, allocations: 337.6 kB / 1.104 GB, free: 376 kB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 3.048e-05/0.366, allocations: 29.7 kB / 1.104 GB, free: 340 kB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001409/0.3661, allocations: 247.5 kB / 1.104 GB, free: 88 kB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 7.725e-05/0.3662, allocations: 90.73 kB / 1.104 GB, free: 15.99 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001095/0.3663, allocations: 86.03 kB / 1.105 GB, free: 15.9 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.000128/0.3664, allocations: 346.8 kB / 1.105 GB, free: 15.55 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002619/0.3667, allocations: 144.8 kB / 1.105 GB, free: 15.41 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000334/0.367, allocations: 294.5 kB / 1.105 GB, free: 15.06 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006507/0.3677, allocations: 478.6 kB / 1.106 GB, free: 14.53 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.3677, allocations: 0 / 1.106 GB, free: 14.53 MB / 0.8731 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0009777/0.3687, allocations: 0.5616 MB / 1.106 GB, free: 13.95 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 2.025e-05/0.3687, allocations: 8 kB / 1.106 GB, free: 13.95 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.093e-05/0.3687, allocations: 7.984 kB / 1.106 GB, free: 13.94 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003154/0.3691, allocations: 91.08 kB / 1.106 GB, free: 13.84 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003387/0.3694, allocations: 87.81 kB / 1.106 GB, free: 13.75 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.362e-05/0.3694, allocations: 8 kB / 1.106 GB, free: 13.75 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002541/0.3697, allocations: 31.91 kB / 1.106 GB, free: 13.71 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.808e-05/0.3697, allocations: 23.94 kB / 1.107 GB, free: 13.69 MB / 0.8731 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.0001871/0.3699, allocations: 177.6 kB / 1.107 GB, free: 13.51 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.911e-05/0.37, allocations: 39.53 kB / 1.107 GB, free: 13.47 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008266/0.3708, allocations: 468 kB / 1.107 GB, free: 13 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.491e-06/0.3708, allocations: 4 kB / 1.107 GB, free: 12.99 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.49e-06/0.3708, allocations: 0 / 1.107 GB, free: 12.99 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.587e-06/0.3709, allocations: 0 / 1.107 GB, free: 12.99 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001271/0.3721, allocations: 0.9668 MB / 1.108 GB, free: 11.96 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.394e-06/0.3721, allocations: 0 / 1.108 GB, free: 11.96 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002161/0.3724, allocations: 51.89 kB / 1.108 GB, free: 11.91 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002193/0.3726, allocations: 90.61 kB / 1.108 GB, free: 11.81 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.852e-05/0.3726, allocations: 4 kB / 1.108 GB, free: 11.8 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.083e-06/0.3726, allocations: 7.984 kB / 1.108 GB, free: 11.8 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.3726, allocations: 3.938 kB / 1.108 GB, free: 11.79 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007355/0.3734, allocations: 0.5355 MB / 1.109 GB, free: 11.22 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001351/0.3735, allocations: 140.7 kB / 1.109 GB, free: 11.07 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.553e-05/0.3736, allocations: 7.906 kB / 1.109 GB, free: 11.06 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002095/0.3738, allocations: 23.97 kB / 1.109 GB, free: 11.04 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.168e-05/0.3739, allocations: 31.84 kB / 1.109 GB, free: 11 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.678e-05/0.3739, allocations: 8 kB / 1.109 GB, free: 11 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0001975/0.3741, allocations: 235.2 kB / 1.109 GB, free: 10.77 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3741, allocations: 0 / 1.109 GB, free: 10.77 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0003862/0.3745, allocations: 84 kB / 1.109 GB, free: 10.68 MB / 0.8731 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.0001297/0.3746, allocations: 108.2 kB / 1.109 GB, free: 10.57 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0008347/0.3755, allocations: 0.6382 MB / 1.11 GB, free: 9.863 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.3755, allocations: 1.25 kB / 1.11 GB, free: 9.863 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0004137/0.3759, allocations: 437.8 kB / 1.11 GB, free: 9.371 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006523/0.3766, allocations: 122.7 kB / 1.111 GB, free: 9.258 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001009/0.3776, allocations: 0.7191 MB / 1.111 GB, free: 8.5 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003664/0.378, allocations: 0.8195 MB / 1.112 GB, free: 7.652 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0002057/0.3782, allocations: 79.34 kB / 1.112 GB, free: 7.574 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.346e-05/0.3783, allocations: 27.44 kB / 1.112 GB, free: 7.547 MB / 0.8731 GB Notification: Performance of SimCode: time 4.11e-07/0.3783, allocations: 0 / 1.112 GB, free: 7.547 MB / 0.8731 GB Notification: Performance of Templates: time 0.009061/0.3873, allocations: 4.831 MB / 1.117 GB, free: 2.777 MB / 0.8731 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