Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.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: "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine",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.00121/0.00121, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001231/0.001231, allocations: 193.7 kB / 16.14 MB, free: 6.711 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.226/1.226, allocations: 222.9 MB / 239.8 MB, free: 4.527 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.413/2.413, allocations: 461.8 MB / 0.7342 GB, free: 14.21 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001174/0.001174, allocations: 62.2 kB / 0.8985 GB, free: 36.97 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2205/0.2217, allocations: 157.4 MB / 1.052 GB, free: 8.23 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine): time 0.01095/0.2326, allocations: 10.87 MB / 1.063 GB, free: 13.31 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.01071/0.2434, allocations: 8.803 MB / 1.071 GB, free: 4.484 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008802/0.2443, allocations: 51.69 kB / 1.071 GB, free: 4.434 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.003354/0.2477, allocations: 1.558 MB / 1.073 GB, free: 2.875 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.00288/0.2505, allocations: 1.395 MB / 1.074 GB, free: 1.477 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.001245/0.2518, allocations: 0.6176 MB / 1.075 GB, free: 0.8594 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.002489/0.2543, allocations: 2.895 MB / 1.078 GB, free: 13.96 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001563/0.2559, allocations: 1.329 MB / 1.079 GB, free: 12.59 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001182/0.2571, allocations: 0.8792 MB / 1.08 GB, free: 11.71 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001028/0.2581, allocations: 1.031 MB / 1.081 GB, free: 10.68 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 0.0001449/0.2582, allocations: 88 kB / 1.081 GB, free: 10.59 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001262/0.2595, allocations: 0.9084 MB / 1.082 GB, free: 9.68 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.0003829/0.2599, allocations: 0.5179 MB / 1.082 GB, free: 9.16 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.0006541/0.2606, allocations: 0.8275 MB / 1.083 GB, free: 8.328 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.001919/0.2625, allocations: 2.542 MB / 1.086 GB, free: 5.777 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 3.297e-06/0.2625, allocations: 0 / 1.086 GB, free: 5.777 MB / 0.8419 GB Notification: Performance of FrontEnd: time 7.11e-07/0.2625, allocations: 0 / 1.086 GB, free: 5.777 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 1.642e-05/0.2625, allocations: 0 / 1.086 GB, free: 5.777 MB / 0.8419 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 315 * Number of variables: 315 Notification: Performance of Generate backend data structure: time 0.0027/0.2652, allocations: 2.018 MB / 1.088 GB, free: 3.703 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.473e-05/0.2653, allocations: 11.97 kB / 1.088 GB, free: 3.691 MB / 0.8419 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001903/0.2655, allocations: 194.1 kB / 1.088 GB, free: 3.492 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009552/0.275, allocations: 2.046 MB / 1.09 GB, free: 1.441 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001535/0.2766, allocations: 1.13 MB / 1.091 GB, free: 260 kB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.037e-05/0.2766, allocations: 86.69 kB / 1.091 GB, free: 172 kB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001812/0.2768, allocations: 115.9 kB / 1.091 GB, free: 56 kB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004525/0.2814, allocations: 2.482 MB / 1.094 GB, free: 13.42 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.284e-05/0.2814, allocations: 11.92 kB / 1.094 GB, free: 13.41 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001397/0.2816, allocations: 51.98 kB / 1.094 GB, free: 13.36 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002986/0.2819, allocations: 126.1 kB / 1.094 GB, free: 13.23 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005976/0.2878, allocations: 2.541 MB / 1.096 GB, free: 10.68 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01041/0.2983, allocations: 10.08 MB / 1.106 GB, free: 15.95 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00518/0.3035, allocations: 1.948 MB / 1.108 GB, free: 13.96 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002285/0.3058, allocations: 0.9699 MB / 1.109 GB, free: 12.99 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 3.853e-05/0.3058, allocations: 4.438 kB / 1.109 GB, free: 12.99 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.77e-05/0.3058, allocations: 43 kB / 1.109 GB, free: 12.94 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=53): time 1.774e-06/0.3058, allocations: 0 / 1.109 GB, free: 12.94 MB / 0.8731 GB Notification: Performance of matching and sorting (n=81): time 0.02682/0.3327, allocations: 8.706 MB / 1.118 GB, free: 4.172 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.783e-05/0.3327, allocations: 75.92 kB / 1.118 GB, free: 4.082 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001157/0.3339, allocations: 1.097 MB / 1.119 GB, free: 2.969 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 8.487e-05/0.334, allocations: 41.7 kB / 1.119 GB, free: 2.922 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004189/0.3344, allocations: 0.7301 MB / 1.119 GB, free: 2.184 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002167/0.3346, allocations: 279.9 kB / 1.12 GB, free: 1.906 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003554/0.335, allocations: 206.4 kB / 1.12 GB, free: 1.695 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 9.829e-05/0.3351, allocations: 341.9 kB / 1.12 GB, free: 1.355 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002484/0.3376, allocations: 1.071 MB / 1.121 GB, free: 292 kB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00256/0.3402, allocations: 1.313 MB / 1.123 GB, free: 14.88 MB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004932/0.3451, allocations: 2.374 MB / 1.125 GB, free: 12.41 MB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.819e-06/0.3451, allocations: 4 kB / 1.125 GB, free: 12.4 MB / 0.8887 GB Notification: Performance of matching and sorting (n=118) (initialization): time 0.007352/0.3525, allocations: 3.268 MB / 1.128 GB, free: 9.102 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 1.721e-05/0.3525, allocations: 8 kB / 1.128 GB, free: 9.094 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.204e-05/0.3525, allocations: 12 kB / 1.128 GB, free: 9.082 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002513/0.355, allocations: 0.7878 MB / 1.129 GB, free: 8.27 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001589/0.3566, allocations: 427.2 kB / 1.129 GB, free: 7.852 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01282/0.3695, allocations: 14.69 MB / 1.144 GB, free: 8.086 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001764/0.3713, allocations: 291.5 kB / 1.144 GB, free: 7.801 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001212/0.3714, allocations: 47.97 kB / 1.144 GB, free: 7.754 MB / 0.9044 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 (82): * Single equations (assignments): 74 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 8 systems {(2,2,100.0%), (2,2,100.0%), (3,5,100.0%), (3,5,100.0%), (2,4,100.0%), (2,4,100.0%), (2,2,100.0%), (2,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0006048/0.372, allocations: 408.2 kB / 1.144 GB, free: 7.348 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002512/0.3723, allocations: 146.3 kB / 1.144 GB, free: 7.203 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007473/0.3797, allocations: 3.214 MB / 1.148 GB, free: 3.949 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.574e-06/0.3798, allocations: 8 kB / 1.148 GB, free: 3.941 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.51e-05/0.3798, allocations: 8 kB / 1.148 GB, free: 3.934 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.252e-06/0.3798, allocations: 3.984 kB / 1.148 GB, free: 3.93 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009244/0.389, allocations: 4.904 MB / 1.152 GB, free: 14.9 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.328e-06/0.389, allocations: 0 / 1.152 GB, free: 14.9 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001359/0.3904, allocations: 359.3 kB / 1.153 GB, free: 14.55 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002132/0.3926, allocations: 0.6945 MB / 1.153 GB, free: 13.83 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.675e-05/0.3927, allocations: 35.95 kB / 1.153 GB, free: 13.79 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01264/0.4053, allocations: 14.31 MB / 1.167 GB, free: 14.41 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.851e-06/0.4053, allocations: 7.938 kB / 1.167 GB, free: 14.4 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007092/0.4124, allocations: 3.046 MB / 1.17 GB, free: 11.27 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006225/0.4131, allocations: 387.1 kB / 1.171 GB, free: 10.88 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002564/0.4133, allocations: 20 kB / 1.171 GB, free: 10.86 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001646/0.415, allocations: 287.7 kB / 1.171 GB, free: 10.57 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002194/0.4152, allocations: 84.5 kB / 1.171 GB, free: 10.49 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.21e-05/0.4153, allocations: 43.95 kB / 1.171 GB, free: 10.45 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.0008815/0.4162, allocations: 0.7365 MB / 1.172 GB, free: 9.711 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.7e-07/0.4162, allocations: 0 / 1.172 GB, free: 9.711 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.001288/0.4175, allocations: 432 kB / 1.172 GB, free: 9.289 MB / 0.9356 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * 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 (46): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 8 systems {(2,2,100.0%), (2,4,100.0%), (2,2,100.0%), (3,5,100.0%), (2,2,100.0%), (2,4,100.0%), (2,2,100.0%), (3,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.00714/0.4246, allocations: 3.62 MB / 1.176 GB, free: 5.578 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.007184/0.4318, allocations: 3.621 MB / 1.179 GB, free: 1.855 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 4.198e-06/0.4319, allocations: 0 / 1.179 GB, free: 1.855 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.004212/0.4361, allocations: 2.368 MB / 1.182 GB, free: 15.38 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002029/0.4381, allocations: 490.4 kB / 1.182 GB, free: 14.91 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03083/0.469, allocations: 17.12 MB / 1.199 GB, free: 13.12 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000991/0.47, allocations: 1.388 MB / 1.2 GB, free: 11.7 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 0.001486/0.4715, allocations: 379.9 kB / 1.201 GB, free: 11.33 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007789/0.4723, allocations: 0.6008 MB / 1.201 GB, free: 10.73 MB / 0.9669 GB Notification: Performance of SimCode: time 6.01e-07/0.4723, allocations: 0 / 1.201 GB, free: 10.73 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7414/1.214, allocations: 40.13 MB / 1.24 GB, free: 3.172 MB / 0.9981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002284/1.214, allocations: 224.9 kB / 1.241 GB, free: 2.922 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.544/3.758, allocations: 3.234 kB / 1.241 GB, free: 2.922 MB / 0.9981 GB (rm -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_res.mat --tempDir=temp_Buildings_latest_Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine.fmu > Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches