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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-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.0008877/0.0008878, allocations: 91.3 kB / 15.36 MB, free: 0.7383 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.004985/0.004985, allocations: 170 kB / 16.26 MB, free: 6.613 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.174/1.174, allocations: 223.3 MB / 240.3 MB, free: 5.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.382/2.382, allocations: 462.7 MB / 0.7364 GB, free: 15.54 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0002889/0.0002889, allocations: 6.281 kB / 0.9029 GB, free: 36.34 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2263/0.2266, allocations: 159.6 MB / 1.059 GB, free: 4.844 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL): time 0.005451/0.2321, allocations: 5.086 MB / 1.064 GB, free: 15.73 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.003684/0.2358, allocations: 2.596 MB / 1.066 GB, free: 13.13 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003355/0.2362, allocations: 15.88 kB / 1.066 GB, free: 13.11 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.000272/0.2364, allocations: 99.14 kB / 1.066 GB, free: 13.02 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0008304/0.2373, allocations: 378.1 kB / 1.067 GB, free: 12.64 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007969/0.2381, allocations: 370 kB / 1.067 GB, free: 12.29 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.001123/0.2392, allocations: 1.248 MB / 1.068 GB, free: 11.04 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001177/0.2404, allocations: 0.7923 MB / 1.069 GB, free: 10.21 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004329/0.2409, allocations: 314.5 kB / 1.069 GB, free: 9.902 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004711/0.2413, allocations: 390.4 kB / 1.07 GB, free: 9.52 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 5.776e-05/0.2414, allocations: 24 kB / 1.07 GB, free: 9.496 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006284/0.242, allocations: 427.1 kB / 1.07 GB, free: 9.078 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0002062/0.2422, allocations: 219.3 kB / 1.07 GB, free: 8.863 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0002941/0.2425, allocations: 339.9 kB / 1.071 GB, free: 8.523 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0008781/0.2434, allocations: 0.9539 MB / 1.072 GB, free: 7.566 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 2.865e-06/0.2434, allocations: 0 / 1.072 GB, free: 7.566 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.212e-06/0.2435, allocations: 0 / 1.072 GB, free: 7.566 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 1.506e-05/0.2435, allocations: 0 / 1.072 GB, free: 7.566 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.001274/0.2447, allocations: 0.8569 MB / 1.073 GB, free: 6.656 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.355e-05/0.2448, allocations: 11.97 kB / 1.073 GB, free: 6.645 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000108/0.2449, allocations: 98.7 kB / 1.073 GB, free: 6.539 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001331/0.2462, allocations: 199.8 kB / 1.073 GB, free: 6.344 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005991/0.2468, allocations: 486.5 kB / 1.073 GB, free: 5.828 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.294e-05/0.2469, allocations: 33.38 kB / 1.073 GB, free: 5.797 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000142/0.247, allocations: 60.45 kB / 1.073 GB, free: 5.738 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001024/0.2481, allocations: 0.8278 MB / 1.074 GB, free: 4.828 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.214e-05/0.2481, allocations: 7.938 kB / 1.074 GB, free: 4.82 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.375e-05/0.2482, allocations: 20 kB / 1.074 GB, free: 4.801 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001716/0.2483, allocations: 68.94 kB / 1.074 GB, free: 4.73 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000808/0.2492, allocations: 0.5658 MB / 1.075 GB, free: 4.168 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003861/0.253, allocations: 4.6 MB / 1.079 GB, free: 15.21 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004182/0.2534, allocations: 291.3 kB / 1.08 GB, free: 14.92 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00029/0.2538, allocations: 237.2 kB / 1.08 GB, free: 14.69 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 2.098e-05/0.2538, allocations: 288 / 1.08 GB, free: 14.69 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.347e-05/0.2538, allocations: 38.84 kB / 1.08 GB, free: 14.64 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=33): time 1.122e-06/0.2538, allocations: 0 / 1.08 GB, free: 14.64 MB / 0.8419 GB Notification: Performance of matching and sorting (n=40): time 0.005064/0.2589, allocations: 2.631 MB / 1.082 GB, free: 11.88 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.206e-05/0.2589, allocations: 55.41 kB / 1.082 GB, free: 11.82 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004169/0.2594, allocations: 465.9 kB / 1.083 GB, free: 11.35 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 3.547e-05/0.2594, allocations: 37.64 kB / 1.083 GB, free: 11.31 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001924/0.2596, allocations: 335.7 kB / 1.083 GB, free: 10.97 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001021/0.2597, allocations: 141.9 kB / 1.083 GB, free: 10.83 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.913e-05/0.2598, allocations: 57.69 kB / 1.083 GB, free: 10.77 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001252/0.2599, allocations: 358.8 kB / 1.084 GB, free: 10.41 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003304/0.2602, allocations: 237 kB / 1.084 GB, free: 10.18 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004235/0.2607, allocations: 410.4 kB / 1.084 GB, free: 9.703 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008026/0.2615, allocations: 0.6779 MB / 1.085 GB, free: 8.953 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.486e-06/0.2615, allocations: 4 kB / 1.085 GB, free: 8.949 MB / 0.8419 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001541/0.263, allocations: 0.9136 MB / 1.086 GB, free: 8.02 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.583e-05/0.2631, allocations: 8 kB / 1.086 GB, free: 8.012 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.327e-06/0.2631, allocations: 12.03 kB / 1.086 GB, free: 8 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007231/0.2638, allocations: 226.3 kB / 1.086 GB, free: 7.77 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004641/0.2643, allocations: 119.8 kB / 1.086 GB, free: 7.652 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004331/0.2686, allocations: 4.935 MB / 1.091 GB, free: 2.316 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003705/0.269, allocations: 27.97 kB / 1.091 GB, free: 2.289 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.772e-05/0.2691, allocations: 24 kB / 1.091 GB, free: 2.266 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.0002371/0.2693, allocations: 229.6 kB / 1.091 GB, free: 2.031 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.916e-05/0.2694, allocations: 59.48 kB / 1.091 GB, free: 1.973 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0014/0.2708, allocations: 0.7733 MB / 1.092 GB, free: 1.184 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.568e-06/0.2708, allocations: 4 kB / 1.092 GB, free: 1.18 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.859e-06/0.2708, allocations: 4 kB / 1.092 GB, free: 1.176 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.699e-06/0.2708, allocations: 3.984 kB / 1.092 GB, free: 1.172 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002139/0.273, allocations: 1.501 MB / 1.094 GB, free: 15.58 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.026e-06/0.273, allocations: 0 / 1.094 GB, free: 15.58 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003494/0.2733, allocations: 71.89 kB / 1.094 GB, free: 15.51 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006317/0.274, allocations: 206.6 kB / 1.094 GB, free: 15.3 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.84e-05/0.274, allocations: 8 kB / 1.094 GB, free: 15.29 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004124/0.2782, allocations: 4.876 MB / 1.099 GB, free: 10.02 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.219e-06/0.2782, allocations: 8.156 kB / 1.099 GB, free: 10.01 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001587/0.2798, allocations: 1.127 MB / 1.1 GB, free: 8.832 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001788/0.28, allocations: 176.3 kB / 1.1 GB, free: 8.641 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.214e-05/0.28, allocations: 12 kB / 1.1 GB, free: 8.629 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003045/0.2803, allocations: 27.97 kB / 1.1 GB, free: 8.602 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.729e-05/0.2804, allocations: 43.89 kB / 1.1 GB, free: 8.559 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.38e-05/0.2805, allocations: 12 kB / 1.1 GB, free: 8.547 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0002913/0.2807, allocations: 310.9 kB / 1.1 GB, free: 8.246 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2808, allocations: 0 / 1.1 GB, free: 8.246 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0005301/0.2813, allocations: 172 kB / 1.101 GB, free: 8.078 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.001849/0.2831, allocations: 1.684 MB / 1.102 GB, free: 6.336 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.001395/0.2845, allocations: 1.008 MB / 1.103 GB, free: 5.289 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.2846, allocations: 0 / 1.103 GB, free: 5.289 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0008721/0.2854, allocations: 0.6799 MB / 1.104 GB, free: 4.57 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009029/0.2864, allocations: 168.5 kB / 1.104 GB, free: 4.406 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007097/0.2935, allocations: 5.967 MB / 1.11 GB, free: 14.14 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004791/0.294, allocations: 0.9416 MB / 1.111 GB, free: 13.18 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0003341/0.2943, allocations: 117 kB / 1.111 GB, free: 13.06 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002429/0.2945, allocations: 207.4 kB / 1.111 GB, free: 12.86 MB / 0.8731 GB Notification: Performance of SimCode: time 3.1e-07/0.2945, allocations: 0 / 1.111 GB, free: 12.86 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.289/1.583, allocations: 13.26 MB / 1.124 GB, free: 15.89 MB / 0.8887 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002214/1.584, allocations: 239.8 kB / 1.124 GB, free: 15.63 MB / 0.8887 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.206/3.79, allocations: 4 kB / 1.124 GB, free: 15.62 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 & /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