Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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_latest_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_latest_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.001617/0.001617, allocations: 108 kB / 15.61 MB, free: 152 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.001816/0.001816, allocations: 193.1 kB / 16.53 MB, free: 6.664 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.294/1.294, allocations: 222.9 MB / 240.2 MB, free: 4.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.618/2.618, allocations: 469.4 MB / 0.742 GB, free: 7.723 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001267/0.001267, allocations: 64.02 kB / 0.9083 GB, free: 34.43 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2521/0.2534, allocations: 159.1 MB / 1.064 GB, free: 14.51 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL): time 0.006844/0.2602, allocations: 5.462 MB / 1.069 GB, free: 9.02 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.004054/0.2643, allocations: 2.623 MB / 1.072 GB, free: 6.387 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004547/0.2648, allocations: 19.88 kB / 1.072 GB, free: 6.367 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.001768/0.2666, allocations: 0.6825 MB / 1.072 GB, free: 5.684 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0009855/0.2676, allocations: 409.7 kB / 1.073 GB, free: 5.281 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009241/0.2685, allocations: 397.9 kB / 1.073 GB, free: 4.895 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.001004/0.2695, allocations: 0.9436 MB / 1.074 GB, free: 3.949 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006095/0.2701, allocations: 474.7 kB / 1.074 GB, free: 3.484 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004648/0.2706, allocations: 366.6 kB / 1.075 GB, free: 3.125 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004834/0.2711, allocations: 406.4 kB / 1.075 GB, free: 2.727 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 8.344e-05/0.2712, allocations: 48 kB / 1.075 GB, free: 2.68 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006137/0.2718, allocations: 363.2 kB / 1.076 GB, free: 2.324 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0002241/0.272, allocations: 247.4 kB / 1.076 GB, free: 2.082 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0003411/0.2724, allocations: 342.2 kB / 1.076 GB, free: 1.746 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0009297/0.2733, allocations: 0.9695 MB / 1.077 GB, free: 0.7734 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.867e-06/0.2733, allocations: 0 / 1.077 GB, free: 0.7734 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.403e-06/0.2733, allocations: 7.938 kB / 1.077 GB, free: 0.7656 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 1.759e-05/0.2734, allocations: 0 / 1.077 GB, free: 0.7656 MB / 0.8262 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.001481/0.2749, allocations: 0.9621 MB / 1.078 GB, free: 15.75 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.777e-05/0.2749, allocations: 12.03 kB / 1.078 GB, free: 15.74 MB / 0.8419 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001012/0.275, allocations: 98.69 kB / 1.078 GB, free: 15.64 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001378/0.2764, allocations: 203.8 kB / 1.078 GB, free: 15.44 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006468/0.2771, allocations: 478.5 kB / 1.079 GB, free: 14.93 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.309e-05/0.2771, allocations: 41.34 kB / 1.079 GB, free: 14.89 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001537/0.2773, allocations: 60.45 kB / 1.079 GB, free: 14.83 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001061/0.2783, allocations: 0.8294 MB / 1.08 GB, free: 13.93 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.157e-05/0.2784, allocations: 4 kB / 1.08 GB, free: 13.92 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.687e-05/0.2784, allocations: 23.98 kB / 1.08 GB, free: 13.9 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001953/0.2786, allocations: 68.89 kB / 1.08 GB, free: 13.83 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008369/0.2795, allocations: 0.5736 MB / 1.08 GB, free: 13.25 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003896/0.2834, allocations: 4.581 MB / 1.085 GB, free: 8.324 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004501/0.2838, allocations: 295.3 kB / 1.085 GB, free: 8.027 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002932/0.2841, allocations: 233.2 kB / 1.085 GB, free: 7.797 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 2.682e-05/0.2842, allocations: 12.2 kB / 1.085 GB, free: 7.785 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.051e-05/0.2842, allocations: 34.84 kB / 1.085 GB, free: 7.742 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=33): time 1.463e-06/0.2842, allocations: 0 / 1.085 GB, free: 7.742 MB / 0.8419 GB Notification: Performance of matching and sorting (n=40): time 0.005328/0.2895, allocations: 2.622 MB / 1.088 GB, free: 4.992 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.058e-05/0.2896, allocations: 55.41 kB / 1.088 GB, free: 4.926 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004192/0.29, allocations: 461.9 kB / 1.088 GB, free: 4.461 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 3.341e-05/0.29, allocations: 33.7 kB / 1.088 GB, free: 4.422 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.000192/0.2902, allocations: 339.6 kB / 1.089 GB, free: 4.082 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 9.949e-05/0.2904, allocations: 145.9 kB / 1.089 GB, free: 3.938 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001481/0.2905, allocations: 106.2 kB / 1.089 GB, free: 3.828 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001179/0.2906, allocations: 362.8 kB / 1.089 GB, free: 3.465 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003349/0.291, allocations: 240.9 kB / 1.09 GB, free: 3.227 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000427/0.2914, allocations: 410.4 kB / 1.09 GB, free: 2.754 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008103/0.2922, allocations: 0.674 MB / 1.091 GB, free: 2.008 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.554e-06/0.2922, allocations: 0 / 1.091 GB, free: 2.008 MB / 0.8419 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001568/0.2938, allocations: 0.921 MB / 1.092 GB, free: 1.07 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.51e-05/0.2938, allocations: 8 kB / 1.092 GB, free: 1.062 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.346e-06/0.2938, allocations: 4 kB / 1.092 GB, free: 1.059 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007475/0.2946, allocations: 235 kB / 1.092 GB, free: 0.8203 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000495/0.2951, allocations: 111.8 kB / 1.092 GB, free: 0.7109 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004684/0.2998, allocations: 5.336 MB / 1.097 GB, free: 10.95 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004003/0.3002, allocations: 32.03 kB / 1.097 GB, free: 10.92 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.82e-05/0.3003, allocations: 24 kB / 1.097 GB, free: 10.9 MB / 0.8575 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.0002514/0.3005, allocations: 233.5 kB / 1.097 GB, free: 10.66 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.727e-05/0.3006, allocations: 59.28 kB / 1.097 GB, free: 10.6 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001444/0.3021, allocations: 0.7772 MB / 1.098 GB, free: 9.809 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.769e-06/0.3021, allocations: 4 kB / 1.098 GB, free: 9.805 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.903e-06/0.3021, allocations: 4 kB / 1.098 GB, free: 9.801 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.298e-06/0.3021, allocations: 0 / 1.098 GB, free: 9.801 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002219/0.3043, allocations: 1.494 MB / 1.1 GB, free: 8.219 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.516e-06/0.3043, allocations: 192 / 1.1 GB, free: 8.219 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003703/0.3047, allocations: 79.88 kB / 1.1 GB, free: 8.141 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006445/0.3054, allocations: 198.6 kB / 1.1 GB, free: 7.938 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.983e-05/0.3054, allocations: 12 kB / 1.1 GB, free: 7.926 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004545/0.31, allocations: 5.286 MB / 1.105 GB, free: 2.219 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.745e-06/0.31, allocations: 0 / 1.105 GB, free: 2.219 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001685/0.3117, allocations: 1.135 MB / 1.106 GB, free: 1.035 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002397/0.3119, allocations: 172.3 kB / 1.106 GB, free: 0.8477 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.417e-05/0.312, allocations: 15.98 kB / 1.106 GB, free: 0.832 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003743/0.3124, allocations: 23.97 kB / 1.106 GB, free: 0.8086 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.443e-05/0.3125, allocations: 36.03 kB / 1.106 GB, free: 0.7734 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.108e-05/0.3126, allocations: 11.98 kB / 1.106 GB, free: 0.7617 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0003501/0.3129, allocations: 310.9 kB / 1.107 GB, free: 472 kB / 0.8575 GB Notification: Performance of sort global known variables: time 1.11e-07/0.3129, allocations: 0 / 1.107 GB, free: 472 kB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0006479/0.3136, allocations: 168 kB / 1.107 GB, free: 304 kB / 0.8575 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.001867/0.3154, allocations: 1.692 MB / 1.109 GB, free: 14.54 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.001601/0.3171, allocations: 1.059 MB / 1.11 GB, free: 13.45 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 3.406e-06/0.3171, allocations: 0 / 1.11 GB, free: 13.45 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0008901/0.318, allocations: 0.6721 MB / 1.11 GB, free: 12.73 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008578/0.3188, allocations: 185.1 kB / 1.11 GB, free: 12.56 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007432/0.3263, allocations: 5.689 MB / 1.116 GB, free: 6.594 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005387/0.3268, allocations: 0.957 MB / 1.117 GB, free: 5.605 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0003586/0.3272, allocations: 109 kB / 1.117 GB, free: 5.5 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002431/0.3275, allocations: 211.4 kB / 1.117 GB, free: 5.293 MB / 0.8731 GB Notification: Performance of SimCode: time 2.51e-07/0.3275, allocations: 0 / 1.117 GB, free: 5.293 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04042/0.3679, allocations: 13.93 MB / 1.131 GB, free: 7.605 MB / 0.8887 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.355/9.723, allocations: 9.656 kB / 1.131 GB, free: 7.598 MB / 0.8887 GB (rm -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.sim & python3 -m fmpy simulate --output-file Buildings_latest_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_latest_Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_RL.fmu > Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_RL.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches