Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 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_L,fileNamePrefix="Buildings_10_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_10_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.00143/0.001431, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001702/0.001702, allocations: 188.8 kB / 16.25 MB, free: 6.641 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.236/1.236, 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 10.1.1-maint.10.0.x/package.mo): time 2.369/2.369, allocations: 437 MB / 0.7101 GB, free: 5.211 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001361/0.001361, allocations: 59.91 kB / 0.8689 GB, free: 4.969 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5165/0.5179, allocations: 151.6 MB / 1.017 GB, free: 2.723 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L): time 0.006563/0.5245, allocations: 6.1 MB / 1.023 GB, free: 12.6 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.003903/0.5284, allocations: 3.129 MB / 1.026 GB, free: 9.461 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002231/0.5286, allocations: 27.81 kB / 1.026 GB, free: 9.434 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.001958/0.5306, allocations: 0.8731 MB / 1.027 GB, free: 8.559 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0007288/0.5314, allocations: 438 kB / 1.027 GB, free: 8.129 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008285/0.5322, allocations: 439.1 kB / 1.028 GB, free: 7.703 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0008857/0.5331, allocations: 1.1 MB / 1.029 GB, free: 6.598 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008007/0.5339, allocations: 0.7151 MB / 1.029 GB, free: 5.883 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004069/0.5343, allocations: 434.3 kB / 1.03 GB, free: 5.457 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004429/0.5348, allocations: 498.1 kB / 1.03 GB, free: 4.969 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 7.224e-05/0.5349, allocations: 56 kB / 1.03 GB, free: 4.914 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005723/0.5354, allocations: 491 kB / 1.031 GB, free: 4.434 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0002174/0.5357, allocations: 291.2 kB / 1.031 GB, free: 4.148 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0002888/0.536, allocations: 394 kB / 1.031 GB, free: 3.762 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0009343/0.5369, allocations: 1.199 MB / 1.033 GB, free: 2.559 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.5369, allocations: 4 kB / 1.033 GB, free: 2.555 MB / 0.7794 GB Notification: Performance of FrontEnd: time 2.224e-06/0.5369, allocations: 0 / 1.033 GB, free: 2.555 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 8.696e-06/0.5369, allocations: 3.938 kB / 1.033 GB, free: 2.551 MB / 0.7794 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.001315/0.5382, allocations: 1.056 MB / 1.034 GB, free: 1.445 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.267e-05/0.5383, allocations: 8.031 kB / 1.034 GB, free: 1.438 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001105/0.5384, allocations: 118.7 kB / 1.034 GB, free: 1.312 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001354/0.5398, allocations: 215.7 kB / 1.034 GB, free: 1.102 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006177/0.5404, allocations: 0.5376 MB / 1.035 GB, free: 0.5195 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.009e-05/0.5404, allocations: 41.69 kB / 1.035 GB, free: 492 kB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.724e-05/0.5405, allocations: 64.27 kB / 1.035 GB, free: 428 kB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001214/0.5417, allocations: 1.037 MB / 1.036 GB, free: 15.27 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.396e-05/0.5418, allocations: 7.938 kB / 1.036 GB, free: 15.27 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.394e-05/0.5418, allocations: 31.98 kB / 1.036 GB, free: 15.23 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.608e-05/0.5419, allocations: 69.27 kB / 1.036 GB, free: 15.16 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008904/0.5428, allocations: 0.6879 MB / 1.036 GB, free: 14.47 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004039/0.5469, allocations: 5.753 MB / 1.042 GB, free: 8.293 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007226/0.5476, allocations: 0.5957 MB / 1.043 GB, free: 7.652 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006902/0.5483, allocations: 424.6 kB / 1.043 GB, free: 7.234 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 3.245e-05/0.5483, allocations: 4 kB / 1.043 GB, free: 7.23 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.172e-05/0.5484, allocations: 34.56 kB / 1.043 GB, free: 7.188 MB / 0.795 GB Notification: Performance of pre-optimization done (n=41): time 1.613e-06/0.5484, allocations: 4 kB / 1.043 GB, free: 7.184 MB / 0.795 GB Notification: Performance of matching and sorting (n=42): time 0.003869/0.5523, allocations: 2.057 MB / 1.045 GB, free: 5.031 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.122e-05/0.5523, allocations: 55.41 kB / 1.045 GB, free: 4.965 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003956/0.5527, allocations: 454.8 kB / 1.046 GB, free: 4.512 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 3.426e-05/0.5527, allocations: 29.7 kB / 1.046 GB, free: 4.477 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002044/0.5529, allocations: 391 kB / 1.046 GB, free: 4.086 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001013/0.5531, allocations: 149.9 kB / 1.046 GB, free: 3.938 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001409/0.5532, allocations: 114.2 kB / 1.046 GB, free: 3.82 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001143/0.5533, allocations: 366.8 kB / 1.047 GB, free: 3.453 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003157/0.5536, allocations: 241.2 kB / 1.047 GB, free: 3.219 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004176/0.5541, allocations: 457.5 kB / 1.047 GB, free: 2.676 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007924/0.5549, allocations: 0.7634 MB / 1.048 GB, free: 1.816 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.15e-06/0.5549, allocations: 8 kB / 1.048 GB, free: 1.809 MB / 0.795 GB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001691/0.5566, allocations: 1.066 MB / 1.049 GB, free: 0.7227 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 1.852e-05/0.5566, allocations: 9.875 kB / 1.049 GB, free: 0.7148 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.047e-06/0.5566, allocations: 4 kB / 1.049 GB, free: 0.7109 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009555/0.5576, allocations: 339.5 kB / 1.049 GB, free: 376 kB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002729/0.5579, allocations: 95.83 kB / 1.049 GB, free: 280 kB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006146/0.564, allocations: 7.509 MB / 1.057 GB, free: 8.199 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003244/0.5644, allocations: 32.02 kB / 1.057 GB, free: 8.168 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.442e-05/0.5644, allocations: 28 kB / 1.057 GB, free: 8.141 MB / 0.8106 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.0002707/0.5647, allocations: 250.6 kB / 1.057 GB, free: 7.887 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.099e-05/0.5648, allocations: 59.25 kB / 1.057 GB, free: 7.828 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001566/0.5663, allocations: 0.9197 MB / 1.058 GB, free: 6.887 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.328e-06/0.5664, allocations: 8 kB / 1.058 GB, free: 6.879 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.109e-06/0.5664, allocations: 4 kB / 1.058 GB, free: 6.875 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.521e-06/0.5664, allocations: 3.984 kB / 1.058 GB, free: 6.871 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002341/0.5687, allocations: 1.704 MB / 1.06 GB, free: 5.078 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.146e-06/0.5687, allocations: 4 kB / 1.06 GB, free: 5.074 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001542/0.5689, allocations: 39.91 kB / 1.06 GB, free: 5.035 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008936/0.5698, allocations: 343.5 kB / 1.06 GB, free: 4.688 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.736e-05/0.5698, allocations: 4 kB / 1.06 GB, free: 4.684 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00602/0.5759, allocations: 7.506 MB / 1.067 GB, free: 12.62 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.954e-06/0.5759, allocations: 4 kB / 1.067 GB, free: 12.61 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001486/0.5774, allocations: 1.011 MB / 1.068 GB, free: 11.55 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001933/0.5776, allocations: 168.4 kB / 1.069 GB, free: 11.37 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.56e-05/0.5777, allocations: 11.98 kB / 1.069 GB, free: 11.36 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002588/0.5779, allocations: 27.98 kB / 1.069 GB, free: 11.33 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.029e-05/0.578, allocations: 39.88 kB / 1.069 GB, free: 11.29 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.494e-05/0.578, allocations: 15.94 kB / 1.069 GB, free: 11.28 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0002771/0.5783, allocations: 310.8 kB / 1.069 GB, free: 10.98 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.51e-07/0.5783, allocations: 0 / 1.069 GB, free: 10.98 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0006581/0.579, allocations: 196 kB / 1.069 GB, free: 10.79 MB / 0.8262 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.001691/0.5807, allocations: 1.563 MB / 1.071 GB, free: 9.164 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.001629/0.5823, allocations: 1.246 MB / 1.072 GB, free: 7.867 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/0.5823, allocations: 0 / 1.072 GB, free: 7.867 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.001025/0.5834, allocations: 0.8543 MB / 1.073 GB, free: 6.961 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000872/0.5843, allocations: 209.4 kB / 1.073 GB, free: 6.762 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007016/0.5913, allocations: 6.248 MB / 1.079 GB, free: 196 kB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004819/0.5918, allocations: 0.9882 MB / 1.08 GB, free: 15.18 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0002669/0.5921, allocations: 101.2 kB / 1.08 GB, free: 15.08 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002238/0.5923, allocations: 223.4 kB / 1.08 GB, free: 14.86 MB / 0.8419 GB Notification: Performance of SimCode: time 2.3e-07/0.5923, allocations: 0 / 1.08 GB, free: 14.86 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03242/0.6247, allocations: 15.14 MB / 1.095 GB, free: 15.98 MB / 0.8575 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002015/0.6249, allocations: 234.7 kB / 1.095 GB, free: 15.72 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.816/2.441, allocations: 0 / 1.095 GB, free: 15.72 MB / 0.8575 GB (rm -f Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.pipe ; mkfifo Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.pipe >> ../files/Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L_res.mat --tempDir=temp_Buildings_10_Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_L_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_L.fmu > Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_L.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches