Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.OnePhase.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 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_L,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_L",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_OnePhase_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.00165/0.00165, allocations: 108 kB / 15.6 MB, free: 132 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.0018/0.0018, allocations: 193.7 kB / 16.53 MB, free: 6.391 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.332/1.332, allocations: 222.9 MB / 240.2 MB, free: 4.418 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.311/2.311, allocations: 390.2 MB / 0.6647 GB, free: 320 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001326/0.001326, allocations: 67.91 kB / 0.8127 GB, free: 14.19 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5149/0.5162, allocations: 140.4 MB / 0.9497 GB, free: 9.172 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L): time 0.006209/0.5225, allocations: 6.074 MB / 0.9557 GB, free: 4.484 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.003623/0.5261, allocations: 3.144 MB / 0.9587 GB, free: 2.008 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002943/0.5264, allocations: 28.88 kB / 0.9588 GB, free: 1.996 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.001918/0.5284, allocations: 0.933 MB / 0.9597 GB, free: 1.281 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0007711/0.5291, allocations: 469.6 kB / 0.9601 GB, free: 0.9102 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008925/0.53, allocations: 498.5 kB / 0.9606 GB, free: 0.5273 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0008228/0.5309, allocations: 1.092 MB / 0.9617 GB, free: 15.9 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007973/0.5317, allocations: 0.6434 MB / 0.9623 GB, free: 15.56 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004312/0.5321, allocations: 433.2 kB / 0.9627 GB, free: 15.32 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004784/0.5326, allocations: 473.7 kB / 0.9632 GB, free: 15.03 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 8.958e-05/0.5327, allocations: 58.69 kB / 0.9632 GB, free: 15.03 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007075/0.5334, allocations: 495.5 kB / 0.9637 GB, free: 14.8 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.0002496/0.5337, allocations: 281 kB / 0.964 GB, free: 14.62 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0003724/0.5341, allocations: 404 kB / 0.9643 GB, free: 14.36 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.001074/0.5351, allocations: 1.162 MB / 0.9655 GB, free: 13.57 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 4.068e-06/0.5352, allocations: 1.094 kB / 0.9655 GB, free: 13.57 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.042e-06/0.5352, allocations: 0 / 0.9655 GB, free: 13.57 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 1.02e-05/0.5352, allocations: 0 / 0.9655 GB, free: 13.57 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: 177 * Number of variables: 177 Notification: Performance of Generate backend data structure: time 0.001455/0.5366, allocations: 1.052 MB / 0.9665 GB, free: 12.72 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.309e-05/0.5367, allocations: 9.375 kB / 0.9665 GB, free: 12.72 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001258/0.5368, allocations: 116.8 kB / 0.9666 GB, free: 12.62 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001496/0.5383, allocations: 213.4 kB / 0.9668 GB, free: 12.53 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007249/0.539, allocations: 0.5363 MB / 0.9674 GB, free: 12.08 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.96e-05/0.5391, allocations: 49.77 kB / 0.9674 GB, free: 12.05 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000102/0.5392, allocations: 68.86 kB / 0.9675 GB, free: 12.03 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001294/0.5405, allocations: 1.031 MB / 0.9685 GB, free: 11.27 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.714e-05/0.5405, allocations: 7 kB / 0.9685 GB, free: 11.27 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.793e-05/0.5406, allocations: 29.11 kB / 0.9685 GB, free: 11.25 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.335e-05/0.5407, allocations: 69.98 kB / 0.9686 GB, free: 11.23 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001018/0.5417, allocations: 0.6947 MB / 0.9693 GB, free: 10.88 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004458/0.5462, allocations: 5.743 MB / 0.9749 GB, free: 5.48 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008041/0.547, allocations: 0.6014 MB / 0.9754 GB, free: 5.047 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000757/0.5478, allocations: 418.7 kB / 0.9758 GB, free: 4.852 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 2.975e-05/0.5478, allocations: 12.34 kB / 0.9759 GB, free: 4.844 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.52e-05/0.5479, allocations: 36.06 kB / 0.9759 GB, free: 4.801 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=41): time 1.593e-06/0.5479, allocations: 5.406 kB / 0.9759 GB, free: 4.797 MB / 0.7325 GB Notification: Performance of matching and sorting (n=42): time 0.004243/0.5521, allocations: 2.056 MB / 0.9779 GB, free: 3.453 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.337e-05/0.5522, allocations: 55.66 kB / 0.978 GB, free: 3.391 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004324/0.5526, allocations: 453.2 kB / 0.9784 GB, free: 3.113 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 3.195e-05/0.5526, allocations: 31.05 kB / 0.9784 GB, free: 3.078 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002197/0.5529, allocations: 393 kB / 0.9788 GB, free: 2.727 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001061/0.553, allocations: 146.4 kB / 0.9789 GB, free: 2.602 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000161/0.5531, allocations: 115.9 kB / 0.979 GB, free: 2.523 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001235/0.5533, allocations: 363.3 kB / 0.9794 GB, free: 2.172 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000346/0.5536, allocations: 248.3 kB / 0.9796 GB, free: 2.051 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004667/0.5541, allocations: 460 kB / 0.9801 GB, free: 1.648 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008657/0.555, allocations: 0.7518 MB / 0.9808 GB, free: 0.9844 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.349e-06/0.555, allocations: 0 / 0.9808 GB, free: 0.9844 MB / 0.7325 GB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001791/0.5568, allocations: 1.061 MB / 0.9818 GB, free: 15.9 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 1.687e-05/0.5568, allocations: 8 kB / 0.9818 GB, free: 15.89 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.054e-05/0.5568, allocations: 8 kB / 0.9819 GB, free: 15.88 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001028/0.5579, allocations: 335.9 kB / 0.9822 GB, free: 15.54 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002995/0.5582, allocations: 95.83 kB / 0.9823 GB, free: 15.45 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006606/0.5648, allocations: 7.521 MB / 0.9896 GB, free: 7.367 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000357/0.5652, allocations: 36.02 kB / 0.9896 GB, free: 7.332 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.436e-05/0.5652, allocations: 24 kB / 0.9897 GB, free: 7.309 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 (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.0002607/0.5655, allocations: 251.4 kB / 0.9899 GB, free: 7.055 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.79e-05/0.5656, allocations: 55.34 kB / 0.99 GB, free: 7 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001655/0.5672, allocations: 0.9193 MB / 0.9909 GB, free: 6.059 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.759e-06/0.5673, allocations: 4 kB / 0.9909 GB, free: 6.055 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.29e-06/0.5673, allocations: 4 kB / 0.9909 GB, free: 6.051 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.69e-06/0.5673, allocations: 3.984 kB / 0.9909 GB, free: 6.047 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00249/0.5698, allocations: 1.708 MB / 0.9925 GB, free: 4.254 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.816e-06/0.5698, allocations: 0 / 0.9925 GB, free: 4.254 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001702/0.57, allocations: 43.97 kB / 0.9926 GB, free: 4.211 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009278/0.5709, allocations: 327.2 kB / 0.9929 GB, free: 3.879 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.107e-05/0.5709, allocations: 12.05 kB / 0.9929 GB, free: 3.867 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006429/0.5774, allocations: 7.501 MB / 1 GB, free: 11.8 MB / 0.7637 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.873e-06/0.5774, allocations: 0 / 1 GB, free: 11.8 MB / 0.7637 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001575/0.579, allocations: 1.019 MB / 1.001 GB, free: 10.74 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001966/0.5792, allocations: 184.3 kB / 1.001 GB, free: 10.54 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.073e-05/0.5793, allocations: 8 kB / 1.001 GB, free: 10.53 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002924/0.5796, allocations: 19.97 kB / 1.001 GB, free: 10.51 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.328e-05/0.5797, allocations: 39.94 kB / 1.001 GB, free: 10.47 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.665e-05/0.5797, allocations: 19.94 kB / 1.001 GB, free: 10.45 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.0002788/0.58, allocations: 302.8 kB / 1.002 GB, free: 10.16 MB / 0.7637 GB Notification: Performance of sort global known variables: time 1.3e-07/0.58, allocations: 0 / 1.002 GB, free: 10.16 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.0007078/0.5807, allocations: 204 kB / 1.002 GB, free: 9.961 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 (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.001798/0.5825, allocations: 1.544 MB / 1.003 GB, free: 8.359 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.001741/0.5843, allocations: 1.258 MB / 1.005 GB, free: 7.051 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 2.464e-06/0.5843, allocations: 0 / 1.005 GB, free: 7.051 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.001124/0.5854, allocations: 0.8543 MB / 1.006 GB, free: 6.145 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000967/0.5864, allocations: 224.1 kB / 1.006 GB, free: 5.938 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00715/0.5935, allocations: 5.965 MB / 1.012 GB, free: 15.64 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005088/0.5941, allocations: 0.9843 MB / 1.013 GB, free: 14.63 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.0002745/0.5943, allocations: 101.2 kB / 1.013 GB, free: 14.53 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002339/0.5946, allocations: 223.4 kB / 1.013 GB, free: 14.32 MB / 0.7794 GB Notification: Performance of SimCode: time 5.71e-07/0.5946, allocations: 0 / 1.013 GB, free: 14.32 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08352/0.6781, allocations: 15.17 MB / 1.028 GB, free: 15.37 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.018/9.696, allocations: 16.03 kB / 1.028 GB, free: 15.35 MB / 0.795 GB (rm -f Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.sim & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_9_Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_L.fmu > Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_L.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches