Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine,fileNamePrefix="Buildings_9_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.001104/0.001104, 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.001045/0.001045, allocations: 195.5 kB / 16.25 MB, free: 6.625 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.393/1.393, allocations: 222.9 MB / 239.9 MB, free: 4.426 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.326/2.326, allocations: 390.2 MB / 0.6644 GB, free: 0.5508 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001317/0.001317, allocations: 71.89 kB / 0.8122 GB, free: 14.67 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5263/0.5276, allocations: 140.4 MB / 0.9492 GB, free: 9.059 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine): time 0.01043/0.5381, allocations: 10.86 MB / 0.9599 GB, free: 0.6719 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.01197/0.5501, allocations: 8.711 MB / 0.9684 GB, free: 9.797 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00123/0.5513, allocations: 51.62 kB / 0.9684 GB, free: 9.777 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.004063/0.5554, allocations: 1.573 MB / 0.9699 GB, free: 8.59 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.003745/0.5592, allocations: 1.393 MB / 0.9713 GB, free: 7.527 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.001581/0.5608, allocations: 0.6116 MB / 0.9719 GB, free: 7.047 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.002755/0.5635, allocations: 2.285 MB / 0.9741 GB, free: 5.738 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00219/0.5657, allocations: 1.55 MB / 0.9756 GB, free: 4.832 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001687/0.5674, allocations: 1.001 MB / 0.9766 GB, free: 4.281 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001729/0.5692, allocations: 1.051 MB / 0.9776 GB, free: 3.648 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 0.0003326/0.5695, allocations: 137.8 kB / 0.9778 GB, free: 3.648 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001621/0.5711, allocations: 0.7992 MB / 0.9786 GB, free: 3.293 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.0006734/0.5718, allocations: 0.5704 MB / 0.9791 GB, free: 2.902 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.001475/0.5733, allocations: 0.8905 MB / 0.98 GB, free: 2.305 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.003024/0.5763, allocations: 2.589 MB / 0.9825 GB, free: 15.86 MB / 0.7481 GB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.5763, allocations: 0 / 0.9825 GB, free: 15.86 MB / 0.7481 GB Notification: Performance of FrontEnd: time 1.242e-06/0.5764, allocations: 0 / 0.9825 GB, free: 15.86 MB / 0.7481 GB Notification: Performance of Transformations before backend: time 1.666e-05/0.5764, allocations: 0 / 0.9825 GB, free: 15.86 MB / 0.7481 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.002967/0.5794, allocations: 2.021 MB / 0.9845 GB, free: 13.78 MB / 0.7481 GB Notification: Performance of prepare preOptimizeDAE: time 3.783e-05/0.5794, allocations: 12.03 kB / 0.9845 GB, free: 13.77 MB / 0.7481 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000215/0.5796, allocations: 190 kB / 0.9847 GB, free: 13.57 MB / 0.7481 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01107/0.5907, allocations: 2.046 MB / 0.9867 GB, free: 11.52 MB / 0.7481 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001728/0.5924, allocations: 1.115 MB / 0.9878 GB, free: 10.35 MB / 0.7481 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.507e-05/0.5925, allocations: 90.69 kB / 0.9879 GB, free: 10.26 MB / 0.7481 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002048/0.5927, allocations: 127.8 kB / 0.988 GB, free: 10.14 MB / 0.7481 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004957/0.5977, allocations: 2.482 MB / 0.9904 GB, free: 7.504 MB / 0.7481 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.604e-05/0.5977, allocations: 7.938 kB / 0.9904 GB, free: 7.496 MB / 0.7481 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001493/0.5979, allocations: 55.98 kB / 0.9905 GB, free: 7.441 MB / 0.7481 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003299/0.5982, allocations: 130.1 kB / 0.9906 GB, free: 7.312 MB / 0.7481 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006774/0.605, allocations: 2.541 MB / 0.9931 GB, free: 4.762 MB / 0.7481 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01192/0.6169, allocations: 10.07 MB / 1.003 GB, free: 10.03 MB / 0.7637 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005965/0.6229, allocations: 1.948 MB / 1.005 GB, free: 8.051 MB / 0.7637 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002602/0.6255, allocations: 0.9737 MB / 1.006 GB, free: 7.074 MB / 0.7637 GB Notification: Performance of preOpt evalFunc (simulation): time 4.617e-05/0.6256, allocations: 8.438 kB / 1.006 GB, free: 7.066 MB / 0.7637 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.906e-05/0.6256, allocations: 35 kB / 1.006 GB, free: 7.023 MB / 0.7637 GB Notification: Performance of pre-optimization done (n=53): time 2.284e-06/0.6256, allocations: 0 / 1.006 GB, free: 7.023 MB / 0.7637 GB Notification: Performance of matching and sorting (n=81): time 0.0302/0.6558, allocations: 8.714 MB / 1.014 GB, free: 14.25 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.74e-05/0.6559, allocations: 67.94 kB / 1.014 GB, free: 14.17 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001357/0.6573, allocations: 1.101 MB / 1.015 GB, free: 13.05 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 0.0001063/0.6574, allocations: 41.7 kB / 1.015 GB, free: 13 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004919/0.6579, allocations: 0.7457 MB / 1.016 GB, free: 12.25 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002559/0.6581, allocations: 272 kB / 1.016 GB, free: 11.98 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004034/0.6586, allocations: 198.4 kB / 1.017 GB, free: 11.78 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001132/0.6587, allocations: 341.9 kB / 1.017 GB, free: 11.44 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002863/0.6615, allocations: 1.075 MB / 1.018 GB, free: 10.36 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003014/0.6646, allocations: 1.305 MB / 1.019 GB, free: 8.965 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005991/0.6706, allocations: 2.374 MB / 1.022 GB, free: 6.492 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.481e-06/0.6706, allocations: 4 kB / 1.022 GB, free: 6.488 MB / 0.7794 GB Notification: Performance of matching and sorting (n=118) (initialization): time 0.008432/0.679, allocations: 3.276 MB / 1.025 GB, free: 3.176 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 2.497e-05/0.6791, allocations: 8 kB / 1.025 GB, free: 3.168 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.462e-05/0.6791, allocations: 8 kB / 1.025 GB, free: 3.16 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002812/0.6819, allocations: 0.8072 MB / 1.026 GB, free: 2.328 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001838/0.6838, allocations: 419.2 kB / 1.026 GB, free: 1.918 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0157/0.6995, allocations: 15.92 MB / 1.042 GB, free: 0.8789 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002216/0.7017, allocations: 287.5 kB / 1.042 GB, free: 0.5977 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001513/0.7019, allocations: 56.03 kB / 1.042 GB, free: 0.543 MB / 0.795 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.000719/0.7026, allocations: 403.8 kB / 1.042 GB, free: 144 kB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002981/0.7029, allocations: 142.5 kB / 1.042 GB, free: 16 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008459/0.7114, allocations: 3.214 MB / 1.046 GB, free: 12.74 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.476e-06/0.7114, allocations: 8 kB / 1.046 GB, free: 12.73 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.065e-05/0.7114, allocations: 7.938 kB / 1.046 GB, free: 12.73 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.053e-05/0.7114, allocations: 7.984 kB / 1.046 GB, free: 12.72 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01043/0.7219, allocations: 4.912 MB / 1.05 GB, free: 7.68 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.586e-06/0.7219, allocations: 8 kB / 1.05 GB, free: 7.672 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001527/0.7234, allocations: 355.3 kB / 1.051 GB, free: 7.324 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002291/0.7257, allocations: 0.7056 MB / 1.051 GB, free: 6.594 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.558e-05/0.7258, allocations: 28.06 kB / 1.051 GB, free: 6.566 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01341/0.7393, allocations: 15.55 MB / 1.067 GB, free: 5.898 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.977e-06/0.7393, allocations: 4.031 kB / 1.067 GB, free: 5.895 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006957/0.7462, allocations: 3.042 MB / 1.07 GB, free: 2.77 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006119/0.7469, allocations: 383.2 kB / 1.07 GB, free: 2.375 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002397/0.7471, allocations: 15.98 kB / 1.07 GB, free: 2.359 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00164/0.7488, allocations: 291.5 kB / 1.07 GB, free: 2.074 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001977/0.749, allocations: 84.48 kB / 1.07 GB, free: 1.992 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.149e-05/0.7491, allocations: 39.97 kB / 1.07 GB, free: 1.953 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0008602/0.7499, allocations: 0.7366 MB / 1.071 GB, free: 1.215 MB / 0.8262 GB Notification: Performance of sort global known variables: time 3e-07/0.7499, allocations: 0 / 1.071 GB, free: 1.215 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.001267/0.7512, allocations: 432 kB / 1.072 GB, free: 0.793 MB / 0.8262 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.007165/0.7584, allocations: 3.616 MB / 1.075 GB, free: 13.09 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.007374/0.7658, allocations: 3.754 MB / 1.079 GB, free: 9.23 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 3.357e-06/0.7658, allocations: 0 / 1.079 GB, free: 9.23 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.004196/0.77, allocations: 2.379 MB / 1.081 GB, free: 6.742 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001855/0.7719, allocations: 0.5206 MB / 1.082 GB, free: 6.238 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03097/0.8028, allocations: 17.12 MB / 1.098 GB, free: 4.461 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009189/0.8038, allocations: 1.388 MB / 1.1 GB, free: 3.035 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.001426/0.8052, allocations: 379.9 kB / 1.1 GB, free: 2.66 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007493/0.806, allocations: 0.593 MB / 1.101 GB, free: 2.066 MB / 0.8575 GB Notification: Performance of SimCode: time 6.11e-07/0.806, allocations: 0 / 1.101 GB, free: 2.066 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5764/1.382, allocations: 41.32 MB / 1.141 GB, free: 9.352 MB / 0.9044 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002076/1.383, allocations: 218.9 kB / 1.141 GB, free: 9.102 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.555/3.937, allocations: 0 / 1.141 GB, free: 9.102 MB / 0.9044 GB (rm -f Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_res.mat --tempDir=temp_Buildings_9_Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine.fmu > Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches