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.001861/0.001861, 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.002207/0.002207, allocations: 191.5 kB / 16.25 MB, free: 6.648 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.733/1.733, allocations: 222.9 MB / 239.9 MB, free: 4.527 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 3.427/3.427, allocations: 461.9 MB / 0.7344 GB, free: 14.99 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001979/0.001979, allocations: 71.23 kB / 0.8987 GB, free: 37.14 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2655/0.2675, allocations: 157.4 MB / 1.052 GB, free: 8.707 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL): time 0.00673/0.2743, allocations: 5.487 MB / 1.058 GB, free: 3.195 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.003766/0.2781, allocations: 2.611 MB / 1.06 GB, free: 0.5742 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003917/0.2785, allocations: 19.88 kB / 1.06 GB, free: 0.5547 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.001593/0.2801, allocations: 0.6422 MB / 1.061 GB, free: 15.91 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.001467/0.2816, allocations: 374.2 kB / 1.061 GB, free: 15.54 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.001272/0.2829, allocations: 358.3 kB / 1.062 GB, free: 15.2 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.001509/0.2844, allocations: 0.963 MB / 1.063 GB, free: 14.23 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009939/0.2854, allocations: 0.5027 MB / 1.063 GB, free: 13.73 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006726/0.2861, allocations: 374.5 kB / 1.063 GB, free: 13.36 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007305/0.2868, allocations: 422.4 kB / 1.064 GB, free: 12.95 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 0.0001244/0.287, allocations: 48 kB / 1.064 GB, free: 12.9 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008038/0.2878, allocations: 363.2 kB / 1.064 GB, free: 12.54 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0003222/0.2881, allocations: 251.4 kB / 1.064 GB, free: 12.3 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0004854/0.2886, allocations: 346.2 kB / 1.065 GB, free: 11.96 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.001459/0.2901, allocations: 0.985 MB / 1.066 GB, free: 10.97 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.438e-06/0.2901, allocations: 0 / 1.066 GB, free: 10.97 MB / 0.8262 GB Notification: Performance of FrontEnd: time 2.344e-06/0.2901, allocations: 0 / 1.066 GB, free: 10.97 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 3.186e-05/0.2902, allocations: 3.984 kB / 1.066 GB, free: 10.96 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.002019/0.2922, allocations: 0.9699 MB / 1.067 GB, free: 9.945 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.277e-05/0.2922, allocations: 8.625 kB / 1.067 GB, free: 9.938 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001623/0.2924, allocations: 106.7 kB / 1.067 GB, free: 9.824 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001824/0.2942, allocations: 195.9 kB / 1.067 GB, free: 9.633 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009009/0.2951, allocations: 498.3 kB / 1.068 GB, free: 9.109 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.109e-05/0.2952, allocations: 41.36 kB / 1.068 GB, free: 9.066 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001762/0.2954, allocations: 52.47 kB / 1.068 GB, free: 9.016 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001444/0.2968, allocations: 0.8278 MB / 1.068 GB, free: 8.105 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.857e-05/0.2969, allocations: 3.938 kB / 1.068 GB, free: 8.102 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.347e-05/0.297, allocations: 27.98 kB / 1.068 GB, free: 8.074 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002205/0.2972, allocations: 64.94 kB / 1.068 GB, free: 8.012 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00113/0.2983, allocations: 0.5697 MB / 1.069 GB, free: 7.441 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005279/0.3036, allocations: 4.577 MB / 1.074 GB, free: 2.516 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005559/0.3042, allocations: 295.3 kB / 1.074 GB, free: 2.219 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003907/0.3046, allocations: 229.3 kB / 1.074 GB, free: 1.992 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 3.36e-05/0.3046, allocations: 4.281 kB / 1.074 GB, free: 1.988 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.237e-05/0.3047, allocations: 34.84 kB / 1.074 GB, free: 1.945 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=33): time 2.544e-06/0.3047, allocations: 0 / 1.074 GB, free: 1.945 MB / 0.8262 GB Notification: Performance of matching and sorting (n=40): time 0.006545/0.3112, allocations: 2.634 MB / 1.077 GB, free: 15.18 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.637e-05/0.3113, allocations: 55.41 kB / 1.077 GB, free: 15.12 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005895/0.3119, allocations: 457.9 kB / 1.077 GB, free: 14.66 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 4.672e-05/0.312, allocations: 33.7 kB / 1.077 GB, free: 14.62 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002524/0.3122, allocations: 339.6 kB / 1.077 GB, free: 14.28 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001462/0.3124, allocations: 145.9 kB / 1.078 GB, free: 14.13 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000194/0.3126, allocations: 106.1 kB / 1.078 GB, free: 14.02 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001607/0.3127, allocations: 362.8 kB / 1.078 GB, free: 13.66 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004378/0.3132, allocations: 237 kB / 1.078 GB, free: 13.43 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005557/0.3138, allocations: 410.4 kB / 1.079 GB, free: 12.95 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00106/0.3148, allocations: 0.6778 MB / 1.079 GB, free: 12.2 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.623e-06/0.3148, allocations: 4 kB / 1.079 GB, free: 12.2 MB / 0.8419 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.002037/0.3169, allocations: 0.9251 MB / 1.08 GB, free: 11.26 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.767e-05/0.3169, allocations: 4 kB / 1.08 GB, free: 11.25 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.338e-05/0.3169, allocations: 11.98 kB / 1.08 GB, free: 11.24 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009007/0.3178, allocations: 234.7 kB / 1.08 GB, free: 11 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006028/0.3185, allocations: 111.8 kB / 1.081 GB, free: 10.89 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005874/0.3243, allocations: 5.336 MB / 1.086 GB, free: 5.137 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005222/0.3249, allocations: 32.16 kB / 1.086 GB, free: 5.105 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.442e-05/0.3249, allocations: 23.98 kB / 1.086 GB, free: 5.082 MB / 0.8419 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.0003458/0.3253, allocations: 225.7 kB / 1.086 GB, free: 4.852 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001271/0.3254, allocations: 59.28 kB / 1.086 GB, free: 4.793 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001735/0.3272, allocations: 0.7772 MB / 1.087 GB, free: 4 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.104e-06/0.3272, allocations: 4 kB / 1.087 GB, free: 3.996 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.985e-06/0.3272, allocations: 4 kB / 1.087 GB, free: 3.992 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.35e-05/0.3272, allocations: 3.984 kB / 1.087 GB, free: 3.988 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002858/0.3301, allocations: 1.495 MB / 1.088 GB, free: 2.406 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.052e-06/0.3301, allocations: 4 kB / 1.088 GB, free: 2.402 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004513/0.3306, allocations: 63.89 kB / 1.088 GB, free: 2.34 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007771/0.3314, allocations: 206.5 kB / 1.089 GB, free: 2.129 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.33e-05/0.3314, allocations: 15.98 kB / 1.089 GB, free: 2.113 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004869/0.3363, allocations: 5.269 MB / 1.094 GB, free: 12.43 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.72e-06/0.3363, allocations: 7.938 kB / 1.094 GB, free: 12.42 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001618/0.3379, allocations: 1.139 MB / 1.095 GB, free: 11.23 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002001/0.3381, allocations: 176.4 kB / 1.095 GB, free: 11.04 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.453e-05/0.3382, allocations: 12 kB / 1.095 GB, free: 11.03 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003068/0.3385, allocations: 23.97 kB / 1.095 GB, free: 11 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.708e-05/0.3386, allocations: 35.89 kB / 1.095 GB, free: 10.97 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.637e-05/0.3387, allocations: 16 kB / 1.095 GB, free: 10.95 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.00029/0.339, allocations: 310.9 kB / 1.095 GB, free: 10.65 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1e-07/0.339, allocations: 0 / 1.095 GB, free: 10.65 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0006083/0.3396, allocations: 168 kB / 1.096 GB, free: 10.49 MB / 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.00186/0.3414, allocations: 1.7 MB / 1.097 GB, free: 8.727 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.001529/0.343, allocations: 1.048 MB / 1.098 GB, free: 7.641 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.896e-06/0.343, allocations: 0 / 1.098 GB, free: 7.641 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.000848/0.3438, allocations: 0.6799 MB / 1.099 GB, free: 6.922 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000798/0.3447, allocations: 190.1 kB / 1.099 GB, free: 6.746 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006837/0.3515, allocations: 5.909 MB / 1.105 GB, free: 0.5469 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000463/0.352, allocations: 0.9532 MB / 1.106 GB, free: 15.57 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0003418/0.3523, allocations: 113 kB / 1.106 GB, free: 15.46 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002355/0.3526, allocations: 207.4 kB / 1.106 GB, free: 15.25 MB / 0.8731 GB Notification: Performance of SimCode: time 4.5e-07/0.3526, allocations: 0 / 1.106 GB, free: 15.25 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 3.034/3.387, allocations: 13.9 MB / 1.12 GB, free: 1.648 MB / 0.8731 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003109/3.387, allocations: 236.8 kB / 1.12 GB, free: 1.391 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.961/6.348, allocations: 0 / 1.12 GB, free: 1.391 MB / 0.8731 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL_res.mat --tempDir=temp_Buildings_latest_Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_RL_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 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.mat","/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