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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.001585/0.001585, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001967/0.001967, allocations: 194.5 kB / 16.25 MB, free: 6.629 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.327/1.327, allocations: 222.9 MB / 239.9 MB, free: 4.512 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.705/2.705, allocations: 472.6 MB / 0.7448 GB, free: 4.922 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001323/0.001323, allocations: 60.89 kB / 0.9116 GB, free: 33.59 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3115/0.3128, allocations: 159.9 MB / 1.068 GB, free: 10.8 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance): time 0.00488/0.3178, allocations: 3.779 MB / 1.071 GB, free: 7.008 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.002634/0.3204, allocations: 1.797 MB / 1.073 GB, free: 5.203 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000198/0.3206, allocations: 15.94 kB / 1.073 GB, free: 5.188 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0007964/0.3215, allocations: 247 kB / 1.073 GB, free: 4.945 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0005698/0.3221, allocations: 278.7 kB / 1.074 GB, free: 4.672 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005063/0.3226, allocations: 231 kB / 1.074 GB, free: 4.449 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0005516/0.3231, allocations: 0.601 MB / 1.074 GB, free: 3.848 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004369/0.3236, allocations: 278.5 kB / 1.075 GB, free: 3.57 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002789/0.3239, allocations: 239 kB / 1.075 GB, free: 3.336 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002652/0.3241, allocations: 243 kB / 1.075 GB, free: 3.098 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 4.2e-05/0.3242, allocations: 28 kB / 1.075 GB, free: 3.07 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003661/0.3246, allocations: 275.4 kB / 1.076 GB, free: 2.801 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001224/0.3247, allocations: 123.6 kB / 1.076 GB, free: 2.68 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001911/0.3249, allocations: 214.8 kB / 1.076 GB, free: 2.469 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0005792/0.3255, allocations: 0.5998 MB / 1.076 GB, free: 1.867 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.067e-06/0.3255, allocations: 0 / 1.076 GB, free: 1.867 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.452e-06/0.3255, allocations: 0 / 1.076 GB, free: 1.867 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 8.405e-06/0.3255, allocations: 0 / 1.076 GB, free: 1.867 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.001074/0.3266, allocations: 0.7401 MB / 1.077 GB, free: 1.078 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.465e-05/0.3266, allocations: 8.031 kB / 1.077 GB, free: 1.07 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008725/0.3275, allocations: 140.2 kB / 1.077 GB, free: 0.9336 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004293/0.328, allocations: 367.7 kB / 1.078 GB, free: 0.5352 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.386e-05/0.328, allocations: 25.02 kB / 1.078 GB, free: 0.5117 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.159e-05/0.3281, allocations: 32.31 kB / 1.078 GB, free: 492 kB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007821/0.3288, allocations: 0.5472 MB / 1.078 GB, free: 15.86 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.029e-05/0.3289, allocations: 7.938 kB / 1.078 GB, free: 15.86 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.677e-05/0.3289, allocations: 15.98 kB / 1.078 GB, free: 15.84 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.72e-05/0.329, allocations: 40.53 kB / 1.078 GB, free: 15.8 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006618/0.3296, allocations: 413.7 kB / 1.079 GB, free: 15.39 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00258/0.3322, allocations: 3.33 MB / 1.082 GB, free: 11.82 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006545/0.3329, allocations: 342.4 kB / 1.082 GB, free: 11.47 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002861/0.3332, allocations: 180.7 kB / 1.082 GB, free: 11.29 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 2.805e-05/0.3332, allocations: 4 kB / 1.082 GB, free: 11.29 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.309e-05/0.3333, allocations: 30.56 kB / 1.082 GB, free: 11.25 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=26): time 1.663e-06/0.3333, allocations: 0 / 1.082 GB, free: 11.25 MB / 0.8419 GB Notification: Performance of matching and sorting (n=27): time 0.001997/0.3353, allocations: 1.073 MB / 1.084 GB, free: 10.11 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.325e-05/0.3353, allocations: 55.64 kB / 1.084 GB, free: 10.04 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003739/0.3357, allocations: 337.6 kB / 1.084 GB, free: 9.703 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 2.859e-05/0.3357, allocations: 33.7 kB / 1.084 GB, free: 9.664 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001859/0.3359, allocations: 251.4 kB / 1.084 GB, free: 9.414 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 6.832e-05/0.336, allocations: 86.75 kB / 1.084 GB, free: 9.328 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001153/0.3361, allocations: 82.03 kB / 1.084 GB, free: 9.242 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001288/0.3363, allocations: 346.8 kB / 1.085 GB, free: 8.895 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003247/0.3366, allocations: 144.8 kB / 1.085 GB, free: 8.75 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003587/0.337, allocations: 298.5 kB / 1.085 GB, free: 8.398 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006433/0.3376, allocations: 474.3 kB / 1.086 GB, free: 7.871 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.586e-06/0.3376, allocations: 8 kB / 1.086 GB, free: 7.863 MB / 0.8419 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0009522/0.3386, allocations: 0.562 MB / 1.086 GB, free: 7.285 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.774e-05/0.3386, allocations: 8 kB / 1.086 GB, free: 7.277 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.155e-06/0.3386, allocations: 4 kB / 1.086 GB, free: 7.273 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003006/0.3389, allocations: 90.5 kB / 1.086 GB, free: 7.176 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003355/0.3393, allocations: 87.81 kB / 1.086 GB, free: 7.09 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.124e-05/0.3393, allocations: 12.28 kB / 1.086 GB, free: 7.078 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002564/0.3396, allocations: 35.91 kB / 1.086 GB, free: 7.043 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.832e-05/0.3396, allocations: 16 kB / 1.086 GB, free: 7.027 MB / 0.8419 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.0001812/0.3398, allocations: 177.6 kB / 1.086 GB, free: 6.844 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.469e-05/0.3399, allocations: 39.53 kB / 1.087 GB, free: 6.805 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008678/0.3407, allocations: 464 kB / 1.087 GB, free: 6.332 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.581e-06/0.3408, allocations: 4 kB / 1.087 GB, free: 6.328 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.921e-06/0.3408, allocations: 0 / 1.087 GB, free: 6.328 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.033e-06/0.3408, allocations: 4 kB / 1.087 GB, free: 6.324 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001374/0.3422, allocations: 0.9606 MB / 1.088 GB, free: 5.289 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.847e-06/0.3422, allocations: 4 kB / 1.088 GB, free: 5.285 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002399/0.3424, allocations: 59.89 kB / 1.088 GB, free: 5.227 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002288/0.3427, allocations: 74.52 kB / 1.088 GB, free: 5.145 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.133e-05/0.3427, allocations: 12.09 kB / 1.088 GB, free: 5.133 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.477e-06/0.3427, allocations: 0 / 1.088 GB, free: 5.133 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.418e-06/0.3427, allocations: 11.81 kB / 1.088 GB, free: 5.121 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008081/0.3435, allocations: 0.5462 MB / 1.089 GB, free: 4.543 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001478/0.3437, allocations: 140.6 kB / 1.089 GB, free: 4.387 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.411e-05/0.3438, allocations: 8 kB / 1.089 GB, free: 4.379 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002294/0.344, allocations: 23.97 kB / 1.089 GB, free: 4.355 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.347e-05/0.3441, allocations: 19.91 kB / 1.089 GB, free: 4.336 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.02e-05/0.3441, allocations: 12 kB / 1.089 GB, free: 4.324 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0002183/0.3443, allocations: 231.2 kB / 1.089 GB, free: 4.102 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.7e-07/0.3443, allocations: 4 kB / 1.089 GB, free: 4.098 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0004058/0.3447, allocations: 84 kB / 1.089 GB, free: 4.016 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.0001465/0.3449, allocations: 110 kB / 1.089 GB, free: 3.898 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0009226/0.3458, allocations: 0.6629 MB / 1.09 GB, free: 3.172 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.3458, allocations: 0 / 1.09 GB, free: 3.172 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0004273/0.3463, allocations: 437.6 kB / 1.09 GB, free: 2.68 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007012/0.347, allocations: 125.6 kB / 1.09 GB, free: 2.555 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001093/0.3481, allocations: 0.8792 MB / 1.091 GB, free: 1.637 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003425/0.3484, allocations: 0.8234 MB / 1.092 GB, free: 0.7852 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0002412/0.3487, allocations: 75.36 kB / 1.092 GB, free: 0.7109 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.99e-05/0.3488, allocations: 35.44 kB / 1.092 GB, free: 0.6758 MB / 0.8419 GB Notification: Performance of SimCode: time 3.1e-07/0.3488, allocations: 0 / 1.092 GB, free: 0.6758 MB / 0.8419 GB Notification: Performance of Templates: time 0.008713/0.3575, allocations: 4.695 MB / 1.097 GB, free: 12.04 MB / 0.8575 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/jenkins/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