Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L.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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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: "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine_L",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine_L",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001106/0.001106, allocations: 111.9 kB / 15.61 MB, free: 128 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.001036/0.001036, allocations: 196.2 kB / 16.54 MB, free: 6.668 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.278/1.278, allocations: 222.9 MB / 240.2 MB, free: 4.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.771/2.771, allocations: 461.9 MB / 0.7347 GB, free: 14.71 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001393/0.001393, allocations: 68.44 kB / 0.8992 GB, free: 37.07 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2823/0.2837, allocations: 157.4 MB / 1.053 GB, free: 8.223 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L): time 0.00812/0.2918, allocations: 6.16 MB / 1.059 GB, free: 2.039 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.005005/0.2969, allocations: 3.184 MB / 1.062 GB, free: 14.84 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004492/0.2973, allocations: 31.81 kB / 1.062 GB, free: 14.81 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.00247/0.2998, allocations: 0.9328 MB / 1.063 GB, free: 13.88 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.001312/0.3012, allocations: 485.5 kB / 1.063 GB, free: 13.4 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.001206/0.3024, allocations: 0.4946 MB / 1.064 GB, free: 12.91 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.001208/0.3036, allocations: 1.092 MB / 1.065 GB, free: 11.82 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009794/0.3046, allocations: 0.6508 MB / 1.066 GB, free: 11.16 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006533/0.3053, allocations: 426.4 kB / 1.066 GB, free: 10.75 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000619/0.3059, allocations: 474.1 kB / 1.066 GB, free: 10.28 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 0.0001143/0.306, allocations: 56 kB / 1.067 GB, free: 10.23 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008955/0.3069, allocations: 499 kB / 1.067 GB, free: 9.738 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0002871/0.3072, allocations: 287.2 kB / 1.067 GB, free: 9.457 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0004479/0.3077, allocations: 409.9 kB / 1.068 GB, free: 9.055 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.001293/0.309, allocations: 1.153 MB / 1.069 GB, free: 7.898 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 5.35e-06/0.309, allocations: 7.938 kB / 1.069 GB, free: 7.891 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.723e-06/0.309, allocations: 0 / 1.069 GB, free: 7.891 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 2.324e-05/0.309, allocations: 0 / 1.069 GB, free: 7.891 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: 177 * Number of variables: 177 Notification: Performance of Generate backend data structure: time 0.001663/0.3107, allocations: 1.056 MB / 1.07 GB, free: 6.781 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.086e-05/0.3107, allocations: 12.62 kB / 1.07 GB, free: 6.77 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001251/0.3109, allocations: 118.7 kB / 1.07 GB, free: 6.645 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001496/0.3124, allocations: 227.5 kB / 1.07 GB, free: 6.422 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007848/0.3132, allocations: 0.5337 MB / 1.071 GB, free: 5.848 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.393e-05/0.3132, allocations: 45.69 kB / 1.071 GB, free: 5.805 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000101/0.3133, allocations: 64.36 kB / 1.071 GB, free: 5.742 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001367/0.3147, allocations: 1.033 MB / 1.072 GB, free: 4.594 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.299e-05/0.3147, allocations: 11.84 kB / 1.072 GB, free: 4.582 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.737e-05/0.3148, allocations: 31.98 kB / 1.072 GB, free: 4.551 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.331e-05/0.3149, allocations: 69.27 kB / 1.072 GB, free: 4.484 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001039/0.316, allocations: 0.6918 MB / 1.073 GB, free: 3.793 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004841/0.3208, allocations: 5.749 MB / 1.078 GB, free: 13.61 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000853/0.3217, allocations: 0.6035 MB / 1.079 GB, free: 12.96 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007718/0.3225, allocations: 416.5 kB / 1.079 GB, free: 12.55 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 2.848e-05/0.3225, allocations: 8 kB / 1.079 GB, free: 12.55 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.603e-05/0.3225, allocations: 38.56 kB / 1.079 GB, free: 12.5 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=41): time 2.164e-06/0.3226, allocations: 0 / 1.079 GB, free: 12.5 MB / 0.8419 GB Notification: Performance of matching and sorting (n=42): time 0.004654/0.3272, allocations: 2.053 MB / 1.081 GB, free: 10.35 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.974e-05/0.3273, allocations: 59.41 kB / 1.081 GB, free: 10.28 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006425/0.328, allocations: 462.8 kB / 1.082 GB, free: 9.824 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 4.548e-05/0.328, allocations: 29.7 kB / 1.082 GB, free: 9.789 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003159/0.3283, allocations: 395 kB / 1.082 GB, free: 9.395 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 0.000158/0.3285, allocations: 149.9 kB / 1.082 GB, free: 9.246 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001923/0.3287, allocations: 114.2 kB / 1.082 GB, free: 9.129 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001977/0.3289, allocations: 366.8 kB / 1.083 GB, free: 8.762 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000371/0.3293, allocations: 245.1 kB / 1.083 GB, free: 8.52 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004806/0.3298, allocations: 457 kB / 1.083 GB, free: 7.98 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009441/0.3307, allocations: 0.7595 MB / 1.084 GB, free: 7.125 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.308e-06/0.3307, allocations: 4 kB / 1.084 GB, free: 7.121 MB / 0.8419 GB Notification: Performance of matching and sorting (n=73) (initialization): time 0.002112/0.3329, allocations: 1.061 MB / 1.085 GB, free: 6.039 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 2.269e-05/0.3329, allocations: 8 kB / 1.085 GB, free: 6.031 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.344e-05/0.3329, allocations: 8.875 kB / 1.085 GB, free: 6.023 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001061/0.334, allocations: 335.1 kB / 1.086 GB, free: 5.684 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003341/0.3343, allocations: 95.83 kB / 1.086 GB, free: 5.59 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007394/0.3417, allocations: 7.529 MB / 1.093 GB, free: 13.5 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004455/0.3422, allocations: 36.02 kB / 1.093 GB, free: 13.46 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.275e-05/0.3423, allocations: 28 kB / 1.093 GB, free: 13.44 MB / 0.8575 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * 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 (53): * Single equations (assignments): 49 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(3,7,88.9%), (1,5,100.0%), (1,3,100.0%), (2,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003581/0.3426, allocations: 245.5 kB / 1.093 GB, free: 13.19 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001229/0.3428, allocations: 63.19 kB / 1.093 GB, free: 13.12 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001725/0.3445, allocations: 0.9118 MB / 1.094 GB, free: 12.19 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.532e-06/0.3445, allocations: 8 kB / 1.094 GB, free: 12.18 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.268e-06/0.3445, allocations: 4 kB / 1.094 GB, free: 12.18 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.013e-06/0.3446, allocations: 3.984 kB / 1.094 GB, free: 12.18 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002708/0.3473, allocations: 1.704 MB / 1.096 GB, free: 10.38 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.979e-06/0.3473, allocations: 4 kB / 1.096 GB, free: 10.38 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001754/0.3475, allocations: 43.91 kB / 1.096 GB, free: 10.34 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009637/0.3484, allocations: 335.1 kB / 1.096 GB, free: 9.996 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.968e-05/0.3485, allocations: 4 kB / 1.096 GB, free: 9.992 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007056/0.3555, allocations: 7.501 MB / 1.104 GB, free: 1.926 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.827e-06/0.3556, allocations: 4 kB / 1.104 GB, free: 1.922 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001728/0.3573, allocations: 1.012 MB / 1.105 GB, free: 0.8633 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002637/0.3576, allocations: 180.3 kB / 1.105 GB, free: 0.668 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.371e-05/0.3577, allocations: 8 kB / 1.105 GB, free: 0.6602 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003054/0.358, allocations: 23.97 kB / 1.105 GB, free: 0.6367 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000104/0.3581, allocations: 39.89 kB / 1.105 GB, free: 0.5977 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.208e-05/0.3581, allocations: 12 kB / 1.105 GB, free: 0.5859 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0003464/0.3585, allocations: 318.8 kB / 1.105 GB, free: 284 kB / 0.8575 GB Notification: Performance of sort global known variables: time 1.5e-07/0.3585, allocations: 4 kB / 1.105 GB, free: 280 kB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0008099/0.3593, allocations: 192.3 kB / 1.105 GB, free: 88 kB / 0.8575 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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 (23): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(3,7,88.9%), (2,2,100.0%), (1,3,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.002023/0.3613, allocations: 1.563 MB / 1.107 GB, free: 14.46 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.001947/0.3633, allocations: 1.25 MB / 1.108 GB, free: 13.16 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 4.027e-06/0.3633, allocations: 0 / 1.108 GB, free: 13.16 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.00122/0.3646, allocations: 0.8699 MB / 1.109 GB, free: 12.24 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00105/0.3656, allocations: 207 kB / 1.109 GB, free: 12.05 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008257/0.3739, allocations: 5.989 MB / 1.115 GB, free: 5.738 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006079/0.3745, allocations: 0.9921 MB / 1.116 GB, free: 4.715 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0003267/0.3749, allocations: 105.2 kB / 1.116 GB, free: 4.613 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002675/0.3751, allocations: 235.1 kB / 1.116 GB, free: 4.387 MB / 0.8731 GB Notification: Performance of SimCode: time 5.31e-07/0.3751, allocations: 0 / 1.116 GB, free: 4.387 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04395/0.4191, allocations: 15.29 MB / 1.131 GB, free: 5.363 MB / 0.8887 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.49/10.91, allocations: 13.94 kB / 1.131 GB, free: 5.352 MB / 0.8887 GB (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L_res.mat --tempDir=temp_Buildings_latest_Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine_L_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine_L.fmu > Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine_L.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches