Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.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_RL,fileNamePrefix="Buildings_10_Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_RL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL,fileNamePrefix="Buildings_10_Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_RL",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.004004/0.004004, allocations: 101.7 kB / 15.73 MB, free: 6.07 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.001043/0.001043, allocations: 196.6 kB / 16.68 MB, free: 5.977 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.319/1.319, allocations: 222.9 MB / 240.4 MB, free: 15.1 MB / 206.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.448/2.448, allocations: 437.1 MB / 0.7105 GB, free: 4.375 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001286/0.001286, allocations: 67.84 kB / 1.018 GB, free: 9.941 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6619/0.6632, allocations: 151.6 MB / 1.166 GB, free: 3.809 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL): time 0.009745/0.673, allocations: 5.463 MB / 1.171 GB, free: 14.32 MB / 0.9044 GB Notification: Performance of NFInst.instExpressions: time 0.005523/0.6785, allocations: 2.638 MB / 1.174 GB, free: 11.67 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004086/0.679, allocations: 19.88 kB / 1.174 GB, free: 11.65 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 0.002125/0.6811, allocations: 0.6857 MB / 1.175 GB, free: 10.96 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 0.001169/0.6823, allocations: 425.8 kB / 1.175 GB, free: 10.55 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.00114/0.6834, allocations: 392.3 kB / 1.176 GB, free: 10.16 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.00141/0.6849, allocations: 0.9435 MB / 1.176 GB, free: 9.215 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008867/0.6857, allocations: 474.2 kB / 1.177 GB, free: 8.75 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006859/0.6864, allocations: 378.6 kB / 1.177 GB, free: 8.379 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007184/0.6872, allocations: 402.4 kB / 1.178 GB, free: 7.984 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 0.0001436/0.6873, allocations: 48 kB / 1.178 GB, free: 7.938 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008949/0.6882, allocations: 359.3 kB / 1.178 GB, free: 7.586 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.0003751/0.6886, allocations: 251.3 kB / 1.178 GB, free: 7.34 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.0006112/0.6893, allocations: 354.2 kB / 1.179 GB, free: 6.992 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.001477/0.6907, allocations: 0.965 MB / 1.18 GB, free: 6.023 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 3.627e-06/0.6908, allocations: 4 kB / 1.18 GB, free: 6.02 MB / 0.9044 GB Notification: Performance of FrontEnd: time 1.303e-06/0.6908, allocations: 0 / 1.18 GB, free: 6.02 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 2.346e-05/0.6908, allocations: 0 / 1.18 GB, free: 6.02 MB / 0.9044 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 140 * Number of variables: 140 Notification: Performance of Generate backend data structure: time 0.002376/0.6932, allocations: 1 MB / 1.181 GB, free: 4.965 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 4.211e-05/0.6932, allocations: 8.922 kB / 1.181 GB, free: 4.957 MB / 0.9044 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001755/0.6934, allocations: 94.7 kB / 1.181 GB, free: 4.855 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002212/0.6956, allocations: 196.3 kB / 1.181 GB, free: 4.664 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00119/0.6968, allocations: 0.5223 MB / 1.181 GB, free: 4.102 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.531e-05/0.6969, allocations: 33.38 kB / 1.181 GB, free: 4.07 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000212/0.6971, allocations: 60.48 kB / 1.181 GB, free: 4.012 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001539/0.6987, allocations: 0.8239 MB / 1.182 GB, free: 3.109 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.87e-05/0.6987, allocations: 11.92 kB / 1.182 GB, free: 3.098 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.066e-05/0.6988, allocations: 24 kB / 1.182 GB, free: 3.074 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000257/0.6991, allocations: 60.95 kB / 1.182 GB, free: 3.012 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001365/0.7005, allocations: 0.5658 MB / 1.183 GB, free: 2.449 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005792/0.7063, allocations: 4.589 MB / 1.187 GB, free: 13.5 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006716/0.7069, allocations: 287.3 kB / 1.188 GB, free: 13.21 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004446/0.7074, allocations: 229.3 kB / 1.188 GB, free: 12.99 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 4.033e-05/0.7075, allocations: 8.219 kB / 1.188 GB, free: 12.98 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.375e-05/0.7075, allocations: 38.84 kB / 1.188 GB, free: 12.93 MB / 0.92 GB Notification: Performance of pre-optimization done (n=33): time 2.325e-06/0.7075, allocations: 0 / 1.188 GB, free: 12.93 MB / 0.92 GB Notification: Performance of matching and sorting (n=40): time 0.007775/0.7153, allocations: 2.648 MB / 1.19 GB, free: 10.16 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.645e-05/0.7154, allocations: 59.39 kB / 1.191 GB, free: 10.09 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007211/0.7161, allocations: 454 kB / 1.191 GB, free: 9.633 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 4.44e-05/0.7162, allocations: 33.64 kB / 1.191 GB, free: 9.594 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002793/0.7164, allocations: 356.5 kB / 1.191 GB, free: 9.242 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001509/0.7166, allocations: 154.7 kB / 1.191 GB, free: 9.09 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002234/0.7168, allocations: 102.2 kB / 1.192 GB, free: 8.984 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001659/0.717, allocations: 358.8 kB / 1.192 GB, free: 8.625 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005208/0.7175, allocations: 244.9 kB / 1.192 GB, free: 8.387 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006851/0.7182, allocations: 406.5 kB / 1.193 GB, free: 7.914 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001307/0.7196, allocations: 0.67 MB / 1.193 GB, free: 7.172 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.931e-06/0.7196, allocations: 4 kB / 1.193 GB, free: 7.168 MB / 0.92 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.002318/0.7219, allocations: 0.9249 MB / 1.194 GB, free: 6.227 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.787e-05/0.7219, allocations: 4 kB / 1.194 GB, free: 6.223 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.788e-06/0.7219, allocations: 8 kB / 1.194 GB, free: 6.215 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007903/0.7227, allocations: 231 kB / 1.194 GB, free: 5.98 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005259/0.7233, allocations: 115.8 kB / 1.194 GB, free: 5.867 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005089/0.7284, allocations: 5.348 MB / 1.2 GB, free: 104 kB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004316/0.7288, allocations: 36.03 kB / 1.2 GB, free: 68 kB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.26e-05/0.7289, allocations: 24 kB / 1.2 GB, free: 44 kB / 0.92 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * 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 (58): * Single equations (assignments): 55 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(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.0002876/0.7292, allocations: 213.7 kB / 1.2 GB, free: 15.82 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001029/0.7293, allocations: 59.61 kB / 1.2 GB, free: 15.77 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001483/0.7308, allocations: 0.7811 MB / 1.201 GB, free: 14.96 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.34e-06/0.7308, allocations: 4 kB / 1.201 GB, free: 14.96 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.18e-06/0.7308, allocations: 4 kB / 1.201 GB, free: 14.96 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.192e-06/0.7308, allocations: 3.984 kB / 1.201 GB, free: 14.95 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002463/0.7333, allocations: 1.499 MB / 1.202 GB, free: 13.37 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.029e-06/0.7333, allocations: 4 kB / 1.202 GB, free: 13.36 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003776/0.7337, allocations: 63.89 kB / 1.202 GB, free: 13.3 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006768/0.7344, allocations: 210.5 kB / 1.202 GB, free: 13.09 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.622e-05/0.7344, allocations: 12 kB / 1.203 GB, free: 13.07 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004775/0.7392, allocations: 5.274 MB / 1.208 GB, free: 7.379 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.89e-06/0.7392, allocations: 7.969 kB / 1.208 GB, free: 7.371 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001711/0.7409, allocations: 1.128 MB / 1.209 GB, free: 6.195 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002666/0.7412, allocations: 172.7 kB / 1.209 GB, free: 6.008 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.295e-05/0.7413, allocations: 12 kB / 1.209 GB, free: 5.996 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003351/0.7416, allocations: 24.16 kB / 1.209 GB, free: 5.973 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.795e-05/0.7417, allocations: 39.95 kB / 1.209 GB, free: 5.934 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.007e-05/0.7418, allocations: 16 kB / 1.209 GB, free: 5.918 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.000313/0.7421, allocations: 318.8 kB / 1.209 GB, free: 5.609 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.5e-07/0.7421, allocations: 0 / 1.209 GB, free: 5.609 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0006435/0.7427, allocations: 168 kB / 1.209 GB, free: 5.445 MB / 0.9356 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 2 (RL_3.i_p[1],RL_3.i_p[2]) * 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 (30): * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(2,2,100.0%), (2,4,100.0%), (2,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001978/0.7447, allocations: 1.707 MB / 1.211 GB, free: 3.68 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.001577/0.7463, allocations: 1.008 MB / 1.212 GB, free: 2.633 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 3.617e-06/0.7463, allocations: 0 / 1.212 GB, free: 2.633 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0009804/0.7473, allocations: 0.6837 MB / 1.213 GB, free: 1.91 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008802/0.7482, allocations: 180 kB / 1.213 GB, free: 1.742 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00759/0.7558, allocations: 5.614 MB / 1.218 GB, free: 11.85 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005169/0.7563, allocations: 0.9455 MB / 1.219 GB, free: 10.88 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 0.0003222/0.7567, allocations: 113 kB / 1.219 GB, free: 10.76 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002543/0.7569, allocations: 207.4 kB / 1.22 GB, free: 10.56 MB / 0.9512 GB Notification: Performance of SimCode: time 7.12e-07/0.7569, allocations: 4 kB / 1.22 GB, free: 10.55 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0413/0.7982, allocations: 14.12 MB / 1.233 GB, free: 12.68 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.19/10.99, allocations: 6.312 kB / 1.233 GB, free: 12.68 MB / 0.9669 GB (rm -f Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe ; mkfifo Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe >> ../files/Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.sim & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_10_Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_RL.fmu > Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_RL.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches