Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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: "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine,fileNamePrefix="Buildings_10_Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine,fileNamePrefix="Buildings_10_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.001425/0.001425, allocations: 108 kB / 15.61 MB, free: 152 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.001636/0.001636, allocations: 196.8 kB / 16.53 MB, free: 6.699 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.308/1.308, allocations: 222.9 MB / 240.2 MB, free: 4.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.405/2.405, allocations: 437 MB / 0.7104 GB, free: 5.148 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001304/0.001304, allocations: 67.89 kB / 0.8693 GB, free: 4.582 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5061/0.5074, allocations: 151.6 MB / 1.017 GB, free: 2.551 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine): time 0.01276/0.5202, allocations: 10.92 MB / 1.028 GB, free: 7.59 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.01232/0.5326, allocations: 8.803 MB / 1.037 GB, free: 14.76 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007339/0.5333, allocations: 59.69 kB / 1.037 GB, free: 14.7 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.003753/0.5371, allocations: 1.668 MB / 1.038 GB, free: 13.03 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.003125/0.5403, allocations: 1.526 MB / 1.04 GB, free: 11.5 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.001377/0.5417, allocations: 0.6744 MB / 1.041 GB, free: 10.82 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.001957/0.5436, allocations: 2.271 MB / 1.043 GB, free: 8.543 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001529/0.5452, allocations: 1.387 MB / 1.044 GB, free: 7.121 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001032/0.5462, allocations: 0.9731 MB / 1.045 GB, free: 6.145 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001122/0.5473, allocations: 1.019 MB / 1.046 GB, free: 5.121 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 0.0001891/0.5475, allocations: 140 kB / 1.046 GB, free: 4.984 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001227/0.5488, allocations: 0.7994 MB / 1.047 GB, free: 4.184 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 0.0004661/0.5492, allocations: 0.5686 MB / 1.047 GB, free: 3.613 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.0007843/0.55, allocations: 0.8823 MB / 1.048 GB, free: 2.727 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.002183/0.5522, allocations: 2.535 MB / 1.051 GB, free: 188 kB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 5.961e-06/0.5522, allocations: 7.938 kB / 1.051 GB, free: 180 kB / 0.795 GB Notification: Performance of FrontEnd: time 1.343e-06/0.5522, allocations: 0 / 1.051 GB, free: 180 kB / 0.795 GB Notification: Performance of Transformations before backend: time 2.043e-05/0.5523, allocations: 4 kB / 1.051 GB, free: 176 kB / 0.795 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.002893/0.5552, allocations: 2.022 MB / 1.053 GB, free: 14.09 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.419e-05/0.5552, allocations: 8.031 kB / 1.053 GB, free: 14.09 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002071/0.5554, allocations: 186.1 kB / 1.053 GB, free: 13.89 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01119/0.5666, allocations: 2.054 MB / 1.055 GB, free: 11.84 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001911/0.5686, allocations: 1.115 MB / 1.056 GB, free: 10.66 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.499e-05/0.5686, allocations: 86.69 kB / 1.056 GB, free: 10.58 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002317/0.5689, allocations: 123.8 kB / 1.056 GB, free: 10.46 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005418/0.5743, allocations: 2.474 MB / 1.059 GB, free: 7.832 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.509e-05/0.5743, allocations: 7.938 kB / 1.059 GB, free: 7.824 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001525/0.5745, allocations: 55.98 kB / 1.059 GB, free: 7.77 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003523/0.5749, allocations: 134.1 kB / 1.059 GB, free: 7.637 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007214/0.5821, allocations: 2.537 MB / 1.061 GB, free: 5.09 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01228/0.5944, allocations: 10.08 MB / 1.071 GB, free: 10.35 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00632/0.6007, allocations: 1.952 MB / 1.073 GB, free: 8.371 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002712/0.6034, allocations: 0.9751 MB / 1.074 GB, free: 7.395 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 3.734e-05/0.6035, allocations: 12.42 kB / 1.074 GB, free: 7.383 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.703e-05/0.6035, allocations: 39 kB / 1.074 GB, free: 7.336 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=53): time 2.074e-06/0.6035, allocations: 0 / 1.074 GB, free: 7.336 MB / 0.8262 GB Notification: Performance of matching and sorting (n=81): time 0.03132/0.6349, allocations: 8.707 MB / 1.083 GB, free: 14.57 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.034e-05/0.6349, allocations: 64 kB / 1.083 GB, free: 14.49 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001517/0.6365, allocations: 1.097 MB / 1.084 GB, free: 13.38 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 9.106e-05/0.6366, allocations: 41.7 kB / 1.084 GB, free: 13.33 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005231/0.6371, allocations: 0.7418 MB / 1.085 GB, free: 12.58 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 0.000253/0.6374, allocations: 283.8 kB / 1.085 GB, free: 12.3 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003759/0.6377, allocations: 194.5 kB / 1.085 GB, free: 12.1 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001228/0.6379, allocations: 345.9 kB / 1.085 GB, free: 11.76 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002917/0.6408, allocations: 1.075 MB / 1.086 GB, free: 10.68 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00301/0.6438, allocations: 1.301 MB / 1.088 GB, free: 9.289 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006001/0.6498, allocations: 2.39 MB / 1.09 GB, free: 6.801 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.781e-06/0.6498, allocations: 4 kB / 1.09 GB, free: 6.797 MB / 0.8419 GB Notification: Performance of matching and sorting (n=118) (initialization): time 0.008802/0.6587, allocations: 3.273 MB / 1.093 GB, free: 3.488 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.876e-05/0.6587, allocations: 8 kB / 1.093 GB, free: 3.48 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.239e-05/0.6587, allocations: 8 kB / 1.093 GB, free: 3.473 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002747/0.6615, allocations: 0.7911 MB / 1.094 GB, free: 2.656 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001909/0.6634, allocations: 419.2 kB / 1.094 GB, free: 2.246 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01547/0.6789, allocations: 15.94 MB / 1.11 GB, free: 1.176 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002154/0.681, allocations: 291.5 kB / 1.11 GB, free: 0.8906 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001231/0.6812, allocations: 51.97 kB / 1.11 GB, free: 0.8398 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 (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.0006656/0.6818, allocations: 398.1 kB / 1.111 GB, free: 452 kB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000281/0.6821, allocations: 146.2 kB / 1.111 GB, free: 304 kB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00888/0.691, allocations: 3.206 MB / 1.114 GB, free: 13.05 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.975e-06/0.691, allocations: 8 kB / 1.114 GB, free: 13.04 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.474e-05/0.6911, allocations: 8 kB / 1.114 GB, free: 13.04 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.917e-06/0.6911, allocations: 7.984 kB / 1.114 GB, free: 13.03 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01099/0.7021, allocations: 4.901 MB / 1.119 GB, free: 8 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.943e-06/0.7021, allocations: 4 kB / 1.119 GB, free: 7.996 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001666/0.7038, allocations: 351.4 kB / 1.119 GB, free: 7.652 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002329/0.7061, allocations: 0.7014 MB / 1.12 GB, free: 6.926 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.07e-05/0.7062, allocations: 31.97 kB / 1.12 GB, free: 6.895 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01457/0.7208, allocations: 15.54 MB / 1.135 GB, free: 6.23 MB / 0.8887 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.26e-06/0.7208, allocations: 7.938 kB / 1.135 GB, free: 6.223 MB / 0.8887 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008196/0.729, allocations: 3.034 MB / 1.138 GB, free: 3.109 MB / 0.8887 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006993/0.7297, allocations: 379.2 kB / 1.138 GB, free: 2.719 MB / 0.8887 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002588/0.73, allocations: 24 kB / 1.138 GB, free: 2.695 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001875/0.7319, allocations: 291.4 kB / 1.139 GB, free: 2.41 MB / 0.8887 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002119/0.7321, allocations: 76.48 kB / 1.139 GB, free: 2.336 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.271e-05/0.7322, allocations: 43.97 kB / 1.139 GB, free: 2.293 MB / 0.8887 GB Notification: Performance of sorting global known variables: time 0.00105/0.7333, allocations: 0.7405 MB / 1.139 GB, free: 1.551 MB / 0.8887 GB Notification: Performance of sort global known variables: time 1.5e-07/0.7333, allocations: 0 / 1.139 GB, free: 1.551 MB / 0.8887 GB Notification: Performance of remove unused functions: time 0.001388/0.7347, allocations: 428 kB / 1.14 GB, free: 1.133 MB / 0.8887 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.008287/0.7429, allocations: 3.62 MB / 1.143 GB, free: 13.43 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.008638/0.7516, allocations: 3.758 MB / 1.147 GB, free: 9.57 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 5.57e-06/0.7516, allocations: 4 kB / 1.147 GB, free: 9.566 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.00484/0.7565, allocations: 2.371 MB / 1.149 GB, free: 7.086 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002098/0.7586, allocations: 0.5201 MB / 1.15 GB, free: 6.586 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03312/0.7917, allocations: 16.58 MB / 1.166 GB, free: 5.348 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001025/0.7928, allocations: 1.38 MB / 1.167 GB, free: 3.93 MB / 0.92 GB Notification: Performance of simCode: alias equations: time 0.001501/0.7943, allocations: 375.9 kB / 1.168 GB, free: 3.559 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007732/0.7951, allocations: 0.5969 MB / 1.168 GB, free: 2.961 MB / 0.92 GB Notification: Performance of SimCode: time 7.32e-07/0.7951, allocations: 0 / 1.168 GB, free: 2.961 MB / 0.92 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2419/1.037, allocations: 41.23 MB / 1.209 GB, free: 10.29 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.725/10.76, allocations: 9.719 kB / 1.209 GB, free: 10.29 MB / 0.9669 GB (rm -f Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.pipe ; mkfifo Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.pipe >> ../files/Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_res.mat --tempDir=temp_Buildings_10_Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine.fmu > Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches