Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.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_R,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_R",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_R",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.001223/0.001223, 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.001268/0.001268, allocations: 196.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.186/1.186, allocations: 222.9 MB / 239.8 MB, free: 4.617 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.122/2.122, allocations: 390.2 MB / 0.6643 GB, free: 0.6172 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001549/0.001549, allocations: 63.91 kB / 0.812 GB, free: 14.79 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6244/0.626, allocations: 140.4 MB / 0.9491 GB, free: 9.109 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R): time 0.006615/0.6326, allocations: 6.738 MB / 0.9556 GB, free: 3.914 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.003663/0.6363, allocations: 3.041 MB / 0.9586 GB, free: 1.523 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002794/0.6366, allocations: 26.22 kB / 0.9586 GB, free: 1.512 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.001771/0.6384, allocations: 0.8932 MB / 0.9595 GB, free: 0.832 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0007397/0.6391, allocations: 477.7 kB / 0.96 GB, free: 472 kB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006868/0.6398, allocations: 381.4 kB / 0.9603 GB, free: 176 kB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.001266/0.6411, allocations: 1.583 MB / 0.9619 GB, free: 15.3 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008511/0.642, allocations: 0.6498 MB / 0.9625 GB, free: 14.95 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004444/0.6424, allocations: 415.2 kB / 0.9629 GB, free: 14.73 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005382/0.643, allocations: 0.5249 MB / 0.9634 GB, free: 14.42 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 8.743e-05/0.6431, allocations: 47 kB / 0.9635 GB, free: 14.42 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000694/0.6438, allocations: 456.8 kB / 0.9639 GB, free: 14.19 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.0002627/0.644, allocations: 295.6 kB / 0.9642 GB, free: 14 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0003881/0.6444, allocations: 425.1 kB / 0.9646 GB, free: 13.73 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.001078/0.6455, allocations: 1.205 MB / 0.9658 GB, free: 12.91 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 3.326e-06/0.6455, allocations: 0 / 0.9658 GB, free: 12.91 MB / 0.7325 GB Notification: Performance of FrontEnd: time 9.92e-07/0.6455, allocations: 0 / 0.9658 GB, free: 12.91 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 1.36e-05/0.6456, allocations: 0 / 0.9658 GB, free: 12.91 MB / 0.7325 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 183 * Number of variables: 183 Notification: Performance of Generate backend data structure: time 0.00174/0.6473, allocations: 1.161 MB / 0.9669 GB, free: 12.01 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.805e-05/0.6474, allocations: 8.781 kB / 0.9669 GB, free: 12.01 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001352/0.6475, allocations: 118.2 kB / 0.967 GB, free: 11.91 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001478/0.649, allocations: 239.6 kB / 0.9672 GB, free: 11.8 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007169/0.6497, allocations: 0.5514 MB / 0.9678 GB, free: 11.35 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.01e-05/0.6498, allocations: 48.02 kB / 0.9678 GB, free: 11.32 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001001/0.6499, allocations: 65.98 kB / 0.9679 GB, free: 11.3 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001387/0.6513, allocations: 1.088 MB / 0.969 GB, free: 10.51 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.344e-05/0.6513, allocations: 6.719 kB / 0.969 GB, free: 10.51 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.094e-05/0.6514, allocations: 37.33 kB / 0.969 GB, free: 10.48 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001372/0.6515, allocations: 84.91 kB / 0.9691 GB, free: 10.46 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001072/0.6526, allocations: 0.7483 MB / 0.9698 GB, free: 10.09 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004693/0.6573, allocations: 5.902 MB / 0.9756 GB, free: 4.594 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009046/0.6582, allocations: 0.5532 MB / 0.9761 GB, free: 4.297 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004117/0.6586, allocations: 329.2 kB / 0.9764 GB, free: 4.129 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 3.368e-05/0.6587, allocations: 5.25 kB / 0.9764 GB, free: 4.129 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.573e-05/0.6587, allocations: 37.69 kB / 0.9765 GB, free: 4.086 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=47): time 3.847e-06/0.6587, allocations: 3.984 kB / 0.9765 GB, free: 4.082 MB / 0.7325 GB Notification: Performance of matching and sorting (n=48): time 0.003544/0.6623, allocations: 1.982 MB / 0.9784 GB, free: 2.789 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.549e-05/0.6623, allocations: 55.88 kB / 0.9785 GB, free: 2.723 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000577/0.6629, allocations: 0.5587 MB / 0.979 GB, free: 2.379 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 3.885e-05/0.6629, allocations: 36.45 kB / 0.979 GB, free: 2.34 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002551/0.6632, allocations: 416.5 kB / 0.9794 GB, free: 1.969 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001233/0.6633, allocations: 163.5 kB / 0.9796 GB, free: 1.828 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001861/0.6635, allocations: 126.8 kB / 0.9797 GB, free: 1.75 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001573/0.6637, allocations: 382.7 kB / 0.9801 GB, free: 1.383 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003895/0.6641, allocations: 271.3 kB / 0.9803 GB, free: 1.223 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005036/0.6646, allocations: 496.9 kB / 0.9808 GB, free: 0.6445 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009321/0.6655, allocations: 0.8133 MB / 0.9816 GB, free: 15.74 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.027e-06/0.6655, allocations: 0 / 0.9816 GB, free: 15.74 MB / 0.7481 GB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001642/0.6672, allocations: 1.09 MB / 0.9827 GB, free: 14.63 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 1.812e-05/0.6672, allocations: 8 kB / 0.9827 GB, free: 14.62 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.142e-05/0.6672, allocations: 8 kB / 0.9827 GB, free: 14.61 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007815/0.668, allocations: 271.9 kB / 0.9829 GB, free: 14.34 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004386/0.6685, allocations: 123.8 kB / 0.9831 GB, free: 14.21 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005473/0.6739, allocations: 6.599 MB / 0.9895 GB, free: 7.082 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000465/0.6744, allocations: 40.03 kB / 0.9895 GB, free: 7.043 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.544e-05/0.6745, allocations: 32 kB / 0.9896 GB, free: 7.012 MB / 0.7481 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 (67): * Single equations (assignments): 63 * 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 {(2,6,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.0002968/0.6748, allocations: 257.5 kB / 0.9898 GB, free: 6.75 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.885e-05/0.6749, allocations: 71.16 kB / 0.9899 GB, free: 6.68 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001424/0.6763, allocations: 0.8846 MB / 0.9908 GB, free: 5.777 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.67e-06/0.6763, allocations: 8.031 kB / 0.9908 GB, free: 5.77 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.442e-06/0.6763, allocations: 7.984 kB / 0.9908 GB, free: 5.762 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.939e-06/0.6764, allocations: 0 / 0.9908 GB, free: 5.762 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002331/0.6787, allocations: 1.736 MB / 0.9925 GB, free: 3.938 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.805e-06/0.6787, allocations: 0 / 0.9925 GB, free: 3.938 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002434/0.679, allocations: 56.14 kB / 0.9925 GB, free: 3.883 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006982/0.6797, allocations: 275.1 kB / 0.9928 GB, free: 3.602 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.397e-05/0.6797, allocations: 12 kB / 0.9928 GB, free: 3.59 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005518/0.6852, allocations: 6.579 MB / 0.9992 GB, free: 12.47 MB / 0.7637 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.667e-06/0.6852, allocations: 3.938 kB / 0.9992 GB, free: 12.47 MB / 0.7637 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001358/0.6866, allocations: 0.9797 MB / 1 GB, free: 11.44 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002378/0.6869, allocations: 196.2 kB / 1 GB, free: 11.23 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.562e-05/0.687, allocations: 11.94 kB / 1 GB, free: 11.22 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003449/0.6873, allocations: 35.97 kB / 1 GB, free: 11.18 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.256e-05/0.6874, allocations: 39.88 kB / 1 GB, free: 11.14 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.163e-05/0.6874, allocations: 16 kB / 1 GB, free: 11.13 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.0003837/0.6878, allocations: 387.1 kB / 1.001 GB, free: 10.75 MB / 0.7637 GB Notification: Performance of sort global known variables: time 1.2e-07/0.6878, allocations: 0 / 1.001 GB, free: 10.75 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.0007148/0.6886, allocations: 224 kB / 1.001 GB, free: 10.54 MB / 0.7637 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 (31): * Single equations (assignments): 27 * 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 {(2,2,100.0%), (2,4,100.0%), (2,2,100.0%), (2,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001636/0.6902, allocations: 1.544 MB / 1.003 GB, free: 8.938 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.001716/0.6919, allocations: 1.268 MB / 1.004 GB, free: 7.617 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 4.889e-06/0.6919, allocations: 4 kB / 1.004 GB, free: 7.613 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.001103/0.6931, allocations: 0.8855 MB / 1.005 GB, free: 6.676 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009539/0.694, allocations: 201.2 kB / 1.005 GB, free: 6.484 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008174/0.7022, allocations: 6.804 MB / 1.011 GB, free: 15.35 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005361/0.7028, allocations: 1.013 MB / 1.012 GB, free: 14.31 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.0003916/0.7032, allocations: 122 kB / 1.013 GB, free: 14.19 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002798/0.7034, allocations: 247.4 kB / 1.013 GB, free: 13.95 MB / 0.7794 GB Notification: Performance of SimCode: time 3.91e-07/0.7034, allocations: 4 kB / 1.013 GB, free: 13.94 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.024/2.728, allocations: 16.6 MB / 1.029 GB, free: 13.61 MB / 0.795 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000331/2.728, allocations: 224.5 kB / 1.029 GB, free: 13.36 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.061/4.789, allocations: 4 kB / 1.029 GB, free: 13.36 MB / 0.795 GB (rm -f Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R_res.mat --tempDir=temp_Buildings_9_Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_R_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_R.fmu > Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_R.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches