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.001581/0.00158, allocations: 102.2 kB / 16.35 MB, free: 5.895 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.001705/0.001705, allocations: 189.8 kB / 17.29 MB, free: 5.527 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.521/1.521, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.573/2.573, allocations: 442.5 MB / 0.7165 GB, free: 14.64 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001294/0.001294, allocations: 68.09 kB / 0.8773 GB, free: 10.94 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3573/0.3586, allocations: 153 MB / 1.027 GB, free: 2.023 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance): time 0.006307/0.365, allocations: 3.761 MB / 1.03 GB, free: 14.25 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.003289/0.3683, allocations: 1.789 MB / 1.032 GB, free: 12.45 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002726/0.3686, allocations: 19.81 kB / 1.032 GB, free: 12.43 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0009645/0.3696, allocations: 266.7 kB / 1.032 GB, free: 12.17 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0007034/0.3704, allocations: 294.4 kB / 1.033 GB, free: 11.88 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006844/0.3711, allocations: 255.4 kB / 1.033 GB, free: 11.63 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0006719/0.3717, allocations: 0.5971 MB / 1.034 GB, free: 11.03 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004705/0.3722, allocations: 262.5 kB / 1.034 GB, free: 10.77 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003491/0.3726, allocations: 231.1 kB / 1.034 GB, free: 10.54 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004087/0.373, allocations: 235 kB / 1.034 GB, free: 10.31 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 4.809e-05/0.373, allocations: 28 kB / 1.034 GB, free: 10.29 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005126/0.3736, allocations: 271.4 kB / 1.035 GB, free: 10.02 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0001489/0.3737, allocations: 123.6 kB / 1.035 GB, free: 9.898 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0002036/0.3739, allocations: 218.8 kB / 1.035 GB, free: 9.684 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0006635/0.3746, allocations: 0.5801 MB / 1.035 GB, free: 9.102 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.919e-06/0.3746, allocations: 0 / 1.035 GB, free: 9.102 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.984e-06/0.3746, allocations: 0 / 1.035 GB, free: 9.102 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 1.332e-05/0.3747, allocations: 0 / 1.035 GB, free: 9.102 MB / 0.8106 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.001237/0.3759, allocations: 0.7401 MB / 1.036 GB, free: 8.312 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.101e-05/0.3759, allocations: 12.02 kB / 1.036 GB, free: 8.301 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008803/0.3768, allocations: 136.1 kB / 1.036 GB, free: 8.168 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006291/0.3775, allocations: 403.6 kB / 1.037 GB, free: 7.734 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.692e-05/0.3775, allocations: 21.03 kB / 1.037 GB, free: 7.715 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.468e-05/0.3776, allocations: 40.36 kB / 1.037 GB, free: 7.676 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008364/0.3784, allocations: 0.5549 MB / 1.037 GB, free: 7.039 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.208e-05/0.3785, allocations: 7.938 kB / 1.037 GB, free: 7.031 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.757e-05/0.3785, allocations: 16 kB / 1.037 GB, free: 7.016 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.407e-05/0.3786, allocations: 40.53 kB / 1.037 GB, free: 6.977 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006902/0.3793, allocations: 409.7 kB / 1.038 GB, free: 6.578 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003167/0.3825, allocations: 3.33 MB / 1.041 GB, free: 2.996 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006503/0.3831, allocations: 333.4 kB / 1.041 GB, free: 2.664 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002944/0.3834, allocations: 180.7 kB / 1.041 GB, free: 2.484 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.786e-05/0.3835, allocations: 4 kB / 1.041 GB, free: 2.48 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.141e-05/0.3835, allocations: 34.56 kB / 1.041 GB, free: 2.438 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=26): time 5.571e-06/0.3835, allocations: 0 / 1.041 GB, free: 2.438 MB / 0.8106 GB Notification: Performance of matching and sorting (n=27): time 0.002024/0.3855, allocations: 1.061 MB / 1.043 GB, free: 1.305 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.842e-05/0.3856, allocations: 55.64 kB / 1.043 GB, free: 1.238 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003431/0.386, allocations: 341.5 kB / 1.043 GB, free: 0.8984 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.698e-05/0.386, allocations: 29.7 kB / 1.043 GB, free: 0.8633 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001748/0.3862, allocations: 243.5 kB / 1.043 GB, free: 0.6211 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 7.567e-05/0.3863, allocations: 98.64 kB / 1.043 GB, free: 0.5234 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001203/0.3864, allocations: 82.03 kB / 1.043 GB, free: 448 kB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001581/0.3865, allocations: 342.8 kB / 1.044 GB, free: 96 kB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002755/0.3868, allocations: 148.8 kB / 1.044 GB, free: 15.95 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003457/0.3872, allocations: 294.5 kB / 1.044 GB, free: 15.6 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006274/0.3878, allocations: 479.2 kB / 1.045 GB, free: 15.07 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.29e-06/0.3878, allocations: 4 kB / 1.045 GB, free: 15.07 MB / 0.8262 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.001045/0.3889, allocations: 0.5615 MB / 1.045 GB, free: 14.49 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.818e-05/0.3889, allocations: 8 kB / 1.045 GB, free: 14.48 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.201e-05/0.3889, allocations: 8.609 kB / 1.045 GB, free: 14.47 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003152/0.3893, allocations: 90.5 kB / 1.045 GB, free: 14.38 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003212/0.3896, allocations: 91.77 kB / 1.045 GB, free: 14.29 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.687e-05/0.3896, allocations: 11.98 kB / 1.045 GB, free: 14.27 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000249/0.3899, allocations: 35.84 kB / 1.045 GB, free: 14.24 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.938e-05/0.3899, allocations: 16 kB / 1.045 GB, free: 14.22 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.0002008/0.3901, allocations: 180.8 kB / 1.046 GB, free: 14.04 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.483e-05/0.3902, allocations: 39.53 kB / 1.046 GB, free: 14 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008406/0.391, allocations: 460.2 kB / 1.046 GB, free: 13.53 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.212e-06/0.391, allocations: 4 kB / 1.046 GB, free: 13.53 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.773e-06/0.3911, allocations: 0 / 1.046 GB, free: 13.53 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.16e-06/0.3911, allocations: 0 / 1.046 GB, free: 13.53 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00145/0.3925, allocations: 0.9676 MB / 1.047 GB, free: 12.48 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.016e-06/0.3925, allocations: 0 / 1.047 GB, free: 12.48 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002204/0.3928, allocations: 47.95 kB / 1.047 GB, free: 12.44 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002309/0.393, allocations: 86.55 kB / 1.047 GB, free: 12.34 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.29e-05/0.393, allocations: 8 kB / 1.047 GB, free: 12.34 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.416e-06/0.3931, allocations: 0 / 1.047 GB, free: 12.34 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/0.3931, allocations: 0 / 1.047 GB, free: 12.34 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008341/0.3939, allocations: 0.5586 MB / 1.048 GB, free: 11.74 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001809/0.3941, allocations: 132.6 kB / 1.048 GB, free: 11.59 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.972e-05/0.3941, allocations: 8 kB / 1.048 GB, free: 11.59 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002059/0.3944, allocations: 19.97 kB / 1.048 GB, free: 11.57 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.964e-05/0.3944, allocations: 35.84 kB / 1.048 GB, free: 11.53 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.717e-05/0.3945, allocations: 4 kB / 1.048 GB, free: 11.53 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0002333/0.3947, allocations: 239.2 kB / 1.048 GB, free: 11.3 MB / 0.8262 GB Notification: Performance of sort global known variables: time 4.21e-07/0.3947, allocations: 0 / 1.048 GB, free: 11.3 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0004074/0.3951, allocations: 88 kB / 1.048 GB, free: 11.21 MB / 0.8262 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.0001728/0.3953, allocations: 107.2 kB / 1.048 GB, free: 11.1 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0008992/0.3962, allocations: 0.6264 MB / 1.049 GB, free: 10.41 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 3.186e-06/0.3962, allocations: 1.25 kB / 1.049 GB, free: 10.41 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0004689/0.3967, allocations: 441.8 kB / 1.049 GB, free: 9.91 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006885/0.3974, allocations: 120.2 kB / 1.049 GB, free: 9.793 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0011/0.3985, allocations: 0.7307 MB / 1.05 GB, free: 9.023 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003903/0.3989, allocations: 0.8195 MB / 1.051 GB, free: 8.176 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0002256/0.3991, allocations: 75.36 kB / 1.051 GB, free: 8.098 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.012e-05/0.3992, allocations: 35.42 kB / 1.051 GB, free: 8.062 MB / 0.8262 GB Notification: Performance of SimCode: time 2.3e-07/0.3992, allocations: 7.938 kB / 1.051 GB, free: 8.055 MB / 0.8262 GB Notification: Performance of Templates: time 0.009124/0.4084, allocations: 4.669 MB / 1.056 GB, free: 3.445 MB / 0.8262 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 -s cvode -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