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/Buildings 10.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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/Buildings 10.0.0-master/package.mo): time 2.558/2.558, allocations: 390.5 MB / 398 MB, free: 11 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001331/0.001331, allocations: 183.1 kB / 491.2 MB, free: 1.594 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.704/1.704, allocations: 221.5 MB / 0.7868 GB, free: 13.33 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001021/0.001021, allocations: 91.89 kB / 0.9269 GB, free: 13.82 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.299e-05/3.303e-05, allocations: 4 kB / 1.073 GB, free: 182 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3365/0.3365, allocations: 143 MB / 1.212 GB, free: 39.45 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.014/1.351, allocations: 192.9 MB / 1.401 GB, free: 7.668 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003184/1.351, allocations: 96.42 kB / 1.401 GB, free: 7.613 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.08466/1.436, allocations: 34.09 MB / 1.434 GB, free: 10.83 MB / 0.8542 GB Notification: Performance of FrontEnd: time 1.463e-06/1.436, allocations: 0 / 1.434 GB, free: 10.83 MB / 0.8542 GB Notification: Performance of Transformations before backend: time 7.191e-05/1.436, allocations: 19.94 kB / 1.434 GB, free: 10.81 MB / 0.8542 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.001887/1.438, allocations: 0.805 MB / 1.435 GB, free: 10 MB / 0.8542 GB Notification: Performance of prepare preOptimizeDAE: time 4.81e-05/1.438, allocations: 8.031 kB / 1.435 GB, free: 9.992 MB / 0.8542 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00155/1.439, allocations: 202.8 kB / 1.435 GB, free: 9.793 MB / 0.8542 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001021/1.44, allocations: 497.6 kB / 1.436 GB, free: 9.324 MB / 0.8542 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.001e-05/1.44, allocations: 16 kB / 1.436 GB, free: 9.309 MB / 0.8542 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001774/1.441, allocations: 32 kB / 1.436 GB, free: 9.277 MB / 0.8542 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007681/1.441, allocations: 463.5 kB / 1.436 GB, free: 8.98 MB / 0.8542 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001136/1.442, allocations: 0.7904 MB / 1.437 GB, free: 8.25 MB / 0.8542 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.347e-05/1.443, allocations: 11.84 kB / 1.437 GB, free: 8.238 MB / 0.8542 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.237e-05/1.443, allocations: 4 kB / 1.437 GB, free: 8.234 MB / 0.8542 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.342e-05/1.443, allocations: 44.66 kB / 1.437 GB, free: 8.191 MB / 0.8542 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004398/1.447, allocations: 4.49 MB / 1.441 GB, free: 3.762 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003954/1.447, allocations: 279.6 kB / 1.442 GB, free: 3.574 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002511/1.448, allocations: 206.9 kB / 1.442 GB, free: 3.445 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 2.804e-05/1.448, allocations: 4 kB / 1.442 GB, free: 3.441 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.023e-05/1.448, allocations: 45.67 kB / 1.442 GB, free: 3.391 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=33): time 2.054e-06/1.448, allocations: 0 / 1.442 GB, free: 3.391 MB / 0.8542 GB Notification: Performance of matching and sorting (n=40): time 0.003729/1.452, allocations: 1.981 MB / 1.444 GB, free: 1.73 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.107e-05/1.452, allocations: 55.41 kB / 1.444 GB, free: 1.664 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003613/1.452, allocations: 332.2 kB / 1.444 GB, free: 1.402 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 3.577e-05/1.452, allocations: 29.7 kB / 1.444 GB, free: 1.367 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001992/1.452, allocations: 338.9 kB / 1.445 GB, free: 1.105 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 0.000102/1.452, allocations: 132.1 kB / 1.445 GB, free: 0.9883 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.587e-05/1.452, allocations: 0 / 1.445 GB, free: 0.9883 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 0.0001521/1.453, allocations: 362.5 kB / 1.445 GB, free: 0.6445 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002872/1.453, allocations: 223.4 kB / 1.445 GB, free: 0.5078 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003816/1.453, allocations: 364.8 kB / 1.446 GB, free: 184 kB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003705/1.454, allocations: 273.2 kB / 1.446 GB, free: 4 kB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.985e-06/1.454, allocations: 0 / 1.446 GB, free: 4 kB / 0.8542 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001492/1.455, allocations: 0.8234 MB / 1.447 GB, free: 15.36 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 2.016e-05/1.455, allocations: 8 kB / 1.447 GB, free: 15.35 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.858e-06/1.455, allocations: 4 kB / 1.447 GB, free: 15.34 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007345/1.456, allocations: 218.3 kB / 1.447 GB, free: 15.16 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004993/1.456, allocations: 107.2 kB / 1.447 GB, free: 15.06 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004561/1.461, allocations: 4.739 MB / 1.452 GB, free: 10.43 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004877/1.462, allocations: 19.97 kB / 1.452 GB, free: 10.41 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.603e-05/1.462, allocations: 23.81 kB / 1.452 GB, free: 10.39 MB / 0.8698 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (55): * Single equations (assignments): 52 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 4,(2,100.0%) 2,(2,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001596/1.462, allocations: 120.7 kB / 1.452 GB, free: 10.27 MB / 0.8698 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001267/1.463, allocations: 0.6699 MB / 1.452 GB, free: 9.746 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001142/1.463, allocations: 55.34 kB / 1.452 GB, free: 9.691 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001395/1.465, allocations: 0.7214 MB / 1.453 GB, free: 9.156 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.243e-06/1.465, allocations: 4 kB / 1.453 GB, free: 9.152 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.973e-06/1.465, allocations: 3.938 kB / 1.453 GB, free: 9.148 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.235e-06/1.465, allocations: 7.938 kB / 1.453 GB, free: 9.141 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00261/1.467, allocations: 1.352 MB / 1.455 GB, free: 8.016 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.689e-06/1.467, allocations: 0 / 1.455 GB, free: 8.016 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003861/1.468, allocations: 67.08 kB / 1.455 GB, free: 7.953 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006665/1.468, allocations: 212.5 kB / 1.455 GB, free: 7.773 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.335e-05/1.468, allocations: 4 kB / 1.455 GB, free: 7.77 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004531/1.473, allocations: 4.665 MB / 1.459 GB, free: 3.199 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.095e-06/1.473, allocations: 3.953 kB / 1.459 GB, free: 3.195 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001897/1.475, allocations: 1.154 MB / 1.46 GB, free: 2.238 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003626/1.475, allocations: 169.8 kB / 1.461 GB, free: 2.07 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001064/1.475, allocations: 4 kB / 1.461 GB, free: 2.066 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003553/1.476, allocations: 15.97 kB / 1.461 GB, free: 2.051 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001036/1.476, allocations: 42.78 kB / 1.461 GB, free: 2.012 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.197e-05/1.476, allocations: 15.94 kB / 1.461 GB, free: 2 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 0.0003219/1.476, allocations: 252.3 kB / 1.461 GB, free: 1.809 MB / 0.8698 GB Notification: Performance of sort global known variables: time 2.2e-07/1.476, allocations: 0 / 1.461 GB, free: 1.809 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.0008023/1.477, allocations: 159.9 kB / 1.461 GB, free: 1.652 MB / 0.8698 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 2,(2,100.0%) 4,(2,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002389/1.479, allocations: 2.2 MB / 1.463 GB, free: 15.66 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.001625/1.481, allocations: 0.9321 MB / 1.464 GB, free: 14.89 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 4.919e-06/1.481, allocations: 0 / 1.464 GB, free: 14.89 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0009693/1.482, allocations: 0.6406 MB / 1.465 GB, free: 14.31 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009625/1.483, allocations: 144.2 kB / 1.465 GB, free: 14.19 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002599/1.486, allocations: 1.069 MB / 1.466 GB, free: 13.17 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008275/1.486, allocations: 0.9608 MB / 1.467 GB, free: 12.2 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 0.0004573/1.487, allocations: 116.6 kB / 1.467 GB, free: 12.09 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000288/1.487, allocations: 200.1 kB / 1.467 GB, free: 12.04 MB / 0.8855 GB Notification: Performance of SimCode: time 1.433e-06/1.487, allocations: 0 / 1.467 GB, free: 12.04 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03659/1.524, allocations: 11.89 MB / 1.479 GB, free: 280 kB / 0.8855 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000222/1.524, allocations: 160.2 kB / 1.479 GB, free: 76 kB / 0.8855 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.278/3.802, allocations: 0 / 1.479 GB, free: 76 kB / 0.8855 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/linux/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) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL_res.mat does not exist to compare? outputFormat=mat