Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL,fileNamePrefix="Buildings_9_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_9_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 9.1.1-maint.9.1.x/package.mo): time 2.393/2.393, allocations: 387.4 MB / 394.9 MB, free: 13.38 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.001262/0.001262, allocations: 184.8 kB / 487.4 MB, free: 5.09 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.603/1.603, allocations: 221.5 MB / 0.7824 GB, free: 1.008 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001001/0.001001, allocations: 98.09 kB / 0.9219 GB, free: 2.234 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 2.263e-05/2.28e-05, allocations: 7.984 kB / 1.067 GB, free: 185.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2795/0.2795, allocations: 142.4 MB / 1.206 GB, free: 43.9 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.08/1.359, allocations: 192.1 MB / 1.394 GB, free: 13.25 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000282/1.36, allocations: 96.09 kB / 1.394 GB, free: 13.23 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.0805/1.44, allocations: 34.1 MB / 1.427 GB, free: 3.047 MB / 0.8386 GB Notification: Performance of FrontEnd: time 3.797e-06/1.44, allocations: 0 / 1.427 GB, free: 3.047 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 5.663e-05/1.44, allocations: 19.94 kB / 1.427 GB, free: 3.027 MB / 0.8386 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.001965/1.442, allocations: 0.8044 MB / 1.428 GB, free: 2.219 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 5.255e-05/1.442, allocations: 12.03 kB / 1.428 GB, free: 2.207 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001637/1.444, allocations: 194.9 kB / 1.428 GB, free: 2.016 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001217/1.445, allocations: 498 kB / 1.429 GB, free: 1.539 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.483e-05/1.445, allocations: 16 kB / 1.429 GB, free: 1.523 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001903/1.445, allocations: 39.89 kB / 1.429 GB, free: 1.484 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008271/1.446, allocations: 461.8 kB / 1.429 GB, free: 1.188 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001081/1.447, allocations: 0.7908 MB / 1.43 GB, free: 468 kB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.274e-05/1.447, allocations: 7.938 kB / 1.43 GB, free: 460 kB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.677e-05/1.447, allocations: 0 / 1.43 GB, free: 460 kB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.445e-05/1.448, allocations: 45.11 kB / 1.43 GB, free: 416 kB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006398/1.454, allocations: 4.487 MB / 1.434 GB, free: 11.98 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006107/1.455, allocations: 280.6 kB / 1.435 GB, free: 11.8 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003787/1.455, allocations: 211.3 kB / 1.435 GB, free: 11.66 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 3.991e-05/1.455, allocations: 4 kB / 1.435 GB, free: 11.66 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.269e-05/1.455, allocations: 34.56 kB / 1.435 GB, free: 11.62 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=33): time 2.936e-06/1.455, allocations: 0 / 1.435 GB, free: 11.62 MB / 0.8542 GB Notification: Performance of matching and sorting (n=40): time 0.005338/1.46, allocations: 1.978 MB / 1.437 GB, free: 9.961 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.702e-05/1.461, allocations: 55.41 kB / 1.437 GB, free: 9.895 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005193/1.461, allocations: 331.9 kB / 1.437 GB, free: 9.633 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 5.216e-05/1.461, allocations: 25.7 kB / 1.437 GB, free: 9.602 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002805/1.461, allocations: 336 kB / 1.437 GB, free: 9.34 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001597/1.462, allocations: 143.4 kB / 1.438 GB, free: 9.215 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.465e-05/1.462, allocations: 0 / 1.438 GB, free: 9.215 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 0.0001883/1.462, allocations: 359.4 kB / 1.438 GB, free: 8.875 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004334/1.462, allocations: 219.2 kB / 1.438 GB, free: 8.738 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006039/1.463, allocations: 366.4 kB / 1.438 GB, free: 8.406 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005889/1.464, allocations: 276 kB / 1.439 GB, free: 8.227 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.857e-06/1.464, allocations: 7.891 kB / 1.439 GB, free: 8.219 MB / 0.8542 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.002132/1.466, allocations: 0.8128 MB / 1.44 GB, free: 7.586 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 2.902e-05/1.466, allocations: 15.89 kB / 1.44 GB, free: 7.57 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.376e-05/1.466, allocations: 4.562 kB / 1.44 GB, free: 7.566 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001032/1.467, allocations: 212.8 kB / 1.44 GB, free: 7.387 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007375/1.468, allocations: 112.8 kB / 1.44 GB, free: 7.281 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005989/1.474, allocations: 4.744 MB / 1.444 GB, free: 2.652 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006669/1.474, allocations: 19.97 kB / 1.444 GB, free: 2.633 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.024e-05/1.474, allocations: 23.38 kB / 1.445 GB, free: 2.613 MB / 0.8542 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.0001993/1.475, allocations: 120.8 kB / 1.445 GB, free: 2.488 MB / 0.8542 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001826/1.476, allocations: 0.6786 MB / 1.445 GB, free: 1.961 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001616/1.477, allocations: 59.34 kB / 1.445 GB, free: 1.902 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001929/1.479, allocations: 0.7116 MB / 1.446 GB, free: 1.379 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.142e-05/1.479, allocations: 7.984 kB / 1.446 GB, free: 1.371 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.065e-06/1.479, allocations: 8 kB / 1.446 GB, free: 1.363 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.534e-06/1.479, allocations: 0 / 1.446 GB, free: 1.363 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003195/1.482, allocations: 1.347 MB / 1.447 GB, free: 248 kB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.731e-06/1.482, allocations: 4 kB / 1.447 GB, free: 244 kB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005587/1.482, allocations: 71.44 kB / 1.447 GB, free: 176 kB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009341/1.483, allocations: 197.9 kB / 1.448 GB, free: 4 kB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.268e-05/1.483, allocations: 8.031 kB / 1.448 GB, free: 15.99 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006087/1.49, allocations: 4.658 MB / 1.452 GB, free: 11.43 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.286e-06/1.49, allocations: 4.031 kB / 1.452 GB, free: 11.42 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002541/1.492, allocations: 1.163 MB / 1.453 GB, free: 10.45 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004206/1.493, allocations: 160.5 kB / 1.453 GB, free: 10.29 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001601/1.493, allocations: 8.047 kB / 1.453 GB, free: 10.29 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005608/1.493, allocations: 19.97 kB / 1.454 GB, free: 10.27 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001398/1.493, allocations: 42.8 kB / 1.454 GB, free: 10.23 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.145e-05/1.494, allocations: 15.62 kB / 1.454 GB, free: 10.22 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 0.0004551/1.494, allocations: 246.1 kB / 1.454 GB, free: 10.03 MB / 0.8698 GB Notification: Performance of sort global known variables: time 3.3e-07/1.494, allocations: 0 / 1.454 GB, free: 10.03 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.00125/1.495, allocations: 159.9 kB / 1.454 GB, free: 9.875 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.00302/1.498, allocations: 2.211 MB / 1.456 GB, free: 7.871 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.002025/1.5, allocations: 0.9286 MB / 1.457 GB, free: 7.105 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 4.077e-06/1.5, allocations: 0 / 1.457 GB, free: 7.105 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.001188/1.502, allocations: 0.6417 MB / 1.458 GB, free: 6.527 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001122/1.503, allocations: 143.2 kB / 1.458 GB, free: 6.414 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003062/1.506, allocations: 1.071 MB / 1.459 GB, free: 5.387 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008781/1.507, allocations: 0.9561 MB / 1.46 GB, free: 4.422 MB / 0.8698 GB Notification: Performance of simCode: alias equations: time 0.000638/1.507, allocations: 108.6 kB / 1.46 GB, free: 4.316 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003443/1.508, allocations: 200.8 kB / 1.46 GB, free: 4.27 MB / 0.8698 GB Notification: Performance of SimCode: time 9.72e-07/1.508, allocations: 0 / 1.46 GB, free: 4.27 MB / 0.8698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05883/1.567, allocations: 11.9 MB / 1.472 GB, free: 8.5 MB / 0.8855 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002809/1.567, allocations: 148.6 kB / 1.472 GB, free: 8.305 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.209/3.776, allocations: 0 / 1.472 GB, free: 8.305 MB / 0.8855 GB (rm -f Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL_res.mat --tempDir=temp_Buildings_9_Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_RL_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_RL.fmu > Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL_res.mat does not exist to compare? outputFormat=mat