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.308/2.308, allocations: 387.1 MB / 399.7 MB, free: 9.477 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.001052/0.001052, allocations: 169 kB / 492.3 MB, free: 0.6094 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.579/1.579, allocations: 221.3 MB / 0.7871 GB, free: 12.86 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.0009183/0.0009183, allocations: 106.5 kB / 0.9267 GB, free: 13.93 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.322e-05/3.325e-05, allocations: 4 kB / 1.073 GB, free: 180.3 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2679/0.2679, allocations: 142.3 MB / 1.212 GB, free: 38.39 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.061/1.329, allocations: 192.8 MB / 1.401 GB, free: 7.262 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002345/1.329, allocations: 95.75 kB / 1.401 GB, free: 7.207 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.08186/1.411, allocations: 34.23 MB / 1.434 GB, free: 10.08 MB / 0.8542 GB Notification: Performance of FrontEnd: time 2.695e-06/1.411, allocations: 0 / 1.434 GB, free: 10.08 MB / 0.8542 GB Notification: Performance of Transformations before backend: time 6.134e-05/1.411, allocations: 20 kB / 1.434 GB, free: 10.06 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.001487/1.413, allocations: 0.8028 MB / 1.435 GB, free: 9.258 MB / 0.8542 GB Notification: Performance of prepare preOptimizeDAE: time 5.482e-05/1.413, allocations: 12.03 kB / 1.435 GB, free: 9.246 MB / 0.8542 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001285/1.413, allocations: 97.31 kB / 1.435 GB, free: 9.172 MB / 0.8542 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001432/1.414, allocations: 198.9 kB / 1.435 GB, free: 8.977 MB / 0.8542 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001048/1.415, allocations: 497.3 kB / 1.436 GB, free: 8.5 MB / 0.8542 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.161e-05/1.415, allocations: 42.48 kB / 1.436 GB, free: 8.469 MB / 0.8542 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001669/1.416, allocations: 58.02 kB / 1.436 GB, free: 8.426 MB / 0.8542 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001319/1.417, allocations: 0.8597 MB / 1.437 GB, free: 7.664 MB / 0.8542 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.967e-05/1.417, allocations: 4 kB / 1.437 GB, free: 7.66 MB / 0.8542 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.938e-05/1.417, allocations: 25.36 kB / 1.437 GB, free: 7.648 MB / 0.8542 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.714e-05/1.417, allocations: 44.09 kB / 1.437 GB, free: 7.609 MB / 0.8542 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009941/1.418, allocations: 0.5637 MB / 1.437 GB, free: 7.219 MB / 0.8542 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005574/1.424, allocations: 4.594 MB / 1.442 GB, free: 2.715 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004812/1.424, allocations: 287.7 kB / 1.442 GB, free: 2.52 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003109/1.424, allocations: 225.8 kB / 1.442 GB, free: 2.379 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 3.576e-05/1.425, allocations: 4 kB / 1.442 GB, free: 2.375 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.701e-05/1.425, allocations: 30.56 kB / 1.442 GB, free: 2.336 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=33): time 3.938e-06/1.425, allocations: 8 kB / 1.442 GB, free: 2.328 MB / 0.8542 GB Notification: Performance of matching and sorting (n=40): time 0.00484/1.429, allocations: 2.199 MB / 1.445 GB, free: 0.5 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.295e-05/1.429, allocations: 55.41 kB / 1.445 GB, free: 444 kB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004979/1.43, allocations: 388.7 kB / 1.445 GB, free: 128 kB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 4.132e-05/1.43, allocations: 29.64 kB / 1.445 GB, free: 96 kB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002435/1.43, allocations: 336.9 kB / 1.445 GB, free: 15.84 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001112/1.43, allocations: 145.1 kB / 1.445 GB, free: 15.71 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.45e-05/1.43, allocations: 11.56 kB / 1.446 GB, free: 15.71 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0001752/1.431, allocations: 369.7 kB / 1.446 GB, free: 15.36 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000328/1.431, allocations: 229.7 kB / 1.446 GB, free: 15.21 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004161/1.431, allocations: 379.3 kB / 1.446 GB, free: 14.87 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003998/1.432, allocations: 285 kB / 1.447 GB, free: 14.68 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.888e-06/1.432, allocations: 4 kB / 1.447 GB, free: 14.68 MB / 0.8698 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001576/1.433, allocations: 0.884 MB / 1.448 GB, free: 14 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 2.433e-05/1.433, allocations: 8.562 kB / 1.448 GB, free: 13.99 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.005e-05/1.433, allocations: 8 kB / 1.448 GB, free: 13.98 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007759/1.434, allocations: 228.7 kB / 1.448 GB, free: 13.79 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004851/1.435, allocations: 107.7 kB / 1.448 GB, free: 13.69 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005022/1.44, allocations: 4.919 MB / 1.453 GB, free: 8.852 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005465/1.44, allocations: 29.34 kB / 1.453 GB, free: 8.832 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.139e-05/1.44, allocations: 27.75 kB / 1.453 GB, free: 8.809 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.0001603/1.441, allocations: 141.6 kB / 1.453 GB, free: 8.68 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001004/1.441, allocations: 55.34 kB / 1.453 GB, free: 8.625 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00152/1.442, allocations: 0.7631 MB / 1.454 GB, free: 8.074 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.235e-06/1.442, allocations: 7.984 kB / 1.454 GB, free: 8.066 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.078e-06/1.442, allocations: 0 / 1.454 GB, free: 8.066 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.538e-06/1.442, allocations: 0 / 1.454 GB, free: 8.066 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002349/1.445, allocations: 1.476 MB / 1.455 GB, free: 6.84 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.831e-06/1.445, allocations: 4 kB / 1.455 GB, free: 6.836 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003719/1.445, allocations: 71.44 kB / 1.455 GB, free: 6.77 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006336/1.446, allocations: 198.7 kB / 1.455 GB, free: 6.602 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.004e-05/1.446, allocations: 11.42 kB / 1.455 GB, free: 6.594 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004679/1.45, allocations: 4.869 MB / 1.46 GB, free: 1.793 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.314e-06/1.45, allocations: 0 / 1.46 GB, free: 1.793 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001828/1.452, allocations: 1.199 MB / 1.461 GB, free: 0.8008 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002775/1.453, allocations: 167.2 kB / 1.462 GB, free: 0.6367 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.97e-05/1.453, allocations: 15.06 kB / 1.462 GB, free: 0.6289 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003174/1.453, allocations: 27.45 kB / 1.462 GB, free: 0.6055 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.022e-05/1.453, allocations: 31.48 kB / 1.462 GB, free: 0.5781 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.187e-05/1.453, allocations: 19.36 kB / 1.462 GB, free: 0.5625 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 0.0003522/1.453, allocations: 309.8 kB / 1.462 GB, free: 332 kB / 0.8698 GB Notification: Performance of sort global known variables: time 1.8e-07/1.453, allocations: 0 / 1.462 GB, free: 332 kB / 0.8698 GB Notification: Performance of remove unused functions: time 0.0006948/1.454, allocations: 174.2 kB / 1.462 GB, free: 176 kB / 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.002263/1.456, allocations: 2.252 MB / 1.464 GB, free: 14.14 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.001594/1.458, allocations: 0.9925 MB / 1.465 GB, free: 13.31 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 3.226e-06/1.458, allocations: 0 / 1.465 GB, free: 13.31 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0009297/1.459, allocations: 0.6639 MB / 1.466 GB, free: 12.71 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007892/1.46, allocations: 162.1 kB / 1.466 GB, free: 12.58 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002102/1.462, allocations: 1.124 MB / 1.467 GB, free: 11.53 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005459/1.462, allocations: 0.9502 MB / 1.468 GB, free: 10.57 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 0.0003778/1.463, allocations: 112.9 kB / 1.468 GB, free: 10.46 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000234/1.463, allocations: 218.3 kB / 1.468 GB, free: 10.4 MB / 0.8855 GB Notification: Performance of SimCode: time 6.21e-07/1.463, allocations: 0 / 1.468 GB, free: 10.4 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03166/1.495, allocations: 13.17 MB / 1.481 GB, free: 13.51 MB / 0.9011 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002656/1.495, allocations: 180.4 kB / 1.481 GB, free: 13.28 MB / 0.9011 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.282/3.777, allocations: 4.062 kB / 1.481 GB, free: 13.28 MB / 0.9011 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