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/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 9.1.1-maint.9.1.x/package.mo", uses=false) 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) 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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007933/0.0007934, allocations: 86.09 kB / 15.06 MB, free: 1.09 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.0009542/0.0009543, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.38/1.38, allocations: 223.2 MB / 240 MB, free: 5.422 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.349/2.349, allocations: 390.4 MB / 0.6655 GB, free: 2.984 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0004584/0.0004585, allocations: 8 kB / 0.8149 GB, free: 14.18 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7614/0.7619, allocations: 142.3 MB / 0.9539 GB, free: 8.109 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL): time 0.005485/0.7674, allocations: 4.836 MB / 0.9586 GB, free: 4.387 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.003807/0.7713, allocations: 2.467 MB / 0.961 GB, free: 2.445 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005378/0.7718, allocations: 18.16 kB / 0.961 GB, free: 2.438 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0003871/0.7723, allocations: 103.5 kB / 0.9611 GB, free: 2.348 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.001005/0.7733, allocations: 333.5 kB / 0.9614 GB, free: 2.086 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008447/0.7741, allocations: 292.6 kB / 0.9617 GB, free: 1.871 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.001035/0.7752, allocations: 1.04 MB / 0.9627 GB, free: 1.254 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001096/0.7763, allocations: 0.7366 MB / 0.9634 GB, free: 0.7266 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003979/0.7767, allocations: 317.5 kB / 0.9637 GB, free: 0.5625 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000421/0.7771, allocations: 370 kB / 0.9641 GB, free: 368 kB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 6.069e-05/0.7772, allocations: 25.53 kB / 0.9641 GB, free: 368 kB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004246/0.7776, allocations: 188.8 kB / 0.9643 GB, free: 284 kB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0001826/0.7778, allocations: 217.1 kB / 0.9645 GB, free: 148 kB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0001327/0.778, allocations: 149 kB / 0.9647 GB, free: 56 kB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0007208/0.7787, allocations: 0.7204 MB / 0.9654 GB, free: 15.57 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 5.41e-06/0.7787, allocations: 0 / 0.9654 GB, free: 15.57 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.744e-06/0.7787, allocations: 0 / 0.9654 GB, free: 15.57 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 8.937e-06/0.7787, allocations: 1.031 kB / 0.9654 GB, free: 15.57 MB / 0.7325 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.001383/0.7801, allocations: 0.8564 MB / 0.9662 GB, free: 14.86 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.765e-05/0.7802, allocations: 8.844 kB / 0.9662 GB, free: 14.86 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001278/0.7803, allocations: 91.11 kB / 0.9663 GB, free: 14.79 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001317/0.7816, allocations: 196.4 kB / 0.9665 GB, free: 14.7 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008004/0.7824, allocations: 484.2 kB / 0.9669 GB, free: 14.29 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.778e-05/0.7825, allocations: 32.81 kB / 0.967 GB, free: 14.28 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000158/0.7827, allocations: 66.02 kB / 0.967 GB, free: 14.25 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001339/0.784, allocations: 0.8237 MB / 0.9678 GB, free: 13.64 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.828e-05/0.784, allocations: 10.69 kB / 0.9678 GB, free: 13.64 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.135e-05/0.7841, allocations: 23.16 kB / 0.9679 GB, free: 13.62 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001888/0.7843, allocations: 66.02 kB / 0.9679 GB, free: 13.6 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000967/0.7853, allocations: 0.5715 MB / 0.9685 GB, free: 13.31 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004279/0.7896, allocations: 4.581 MB / 0.973 GB, free: 9.047 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004928/0.7901, allocations: 294.5 kB / 0.9732 GB, free: 8.887 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003145/0.7904, allocations: 229.2 kB / 0.9735 GB, free: 8.766 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 4.095e-05/0.7905, allocations: 7.734 kB / 0.9735 GB, free: 8.762 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.841e-05/0.7905, allocations: 33.19 kB / 0.9735 GB, free: 8.723 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=33): time 1.713e-06/0.7905, allocations: 0 / 0.9735 GB, free: 8.723 MB / 0.7325 GB Notification: Performance of matching and sorting (n=40): time 0.005529/0.796, allocations: 2.636 MB / 0.9761 GB, free: 7.008 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.026e-05/0.7961, allocations: 59.81 kB / 0.9761 GB, free: 6.941 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005266/0.7966, allocations: 449 kB / 0.9766 GB, free: 6.66 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 3.859e-05/0.7967, allocations: 32.14 kB / 0.9766 GB, free: 6.625 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002394/0.7969, allocations: 339.7 kB / 0.9769 GB, free: 6.32 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001242/0.797, allocations: 140.3 kB / 0.9771 GB, free: 6.199 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.121e-05/0.7971, allocations: 10.38 kB / 0.9771 GB, free: 6.191 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001582/0.7972, allocations: 363.1 kB / 0.9774 GB, free: 5.84 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000379/0.7976, allocations: 238 kB / 0.9776 GB, free: 5.719 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005101/0.7981, allocations: 408.5 kB / 0.978 GB, free: 5.383 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004676/0.7986, allocations: 295.6 kB / 0.9783 GB, free: 5.234 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.075e-06/0.7986, allocations: 1.062 kB / 0.9783 GB, free: 5.234 MB / 0.7325 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001696/0.8003, allocations: 0.9123 MB / 0.9792 GB, free: 4.73 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.995e-05/0.8004, allocations: 6.375 kB / 0.9792 GB, free: 4.73 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.53e-05/0.8004, allocations: 10.42 kB / 0.9792 GB, free: 4.727 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007571/0.8012, allocations: 226.2 kB / 0.9794 GB, free: 4.605 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004916/0.8017, allocations: 116.9 kB / 0.9795 GB, free: 4.574 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004869/0.8065, allocations: 4.942 MB / 0.9844 GB, free: 15.63 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006036/0.8072, allocations: 31.91 kB / 0.9844 GB, free: 15.6 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.747e-05/0.8072, allocations: 24 kB / 0.9844 GB, free: 15.58 MB / 0.7481 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 (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.0003864/0.8076, allocations: 221.7 kB / 0.9846 GB, free: 15.35 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001013/0.8077, allocations: 59.33 kB / 0.9847 GB, free: 15.29 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001468/0.8092, allocations: 0.7695 MB / 0.9854 GB, free: 14.5 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.951e-06/0.8092, allocations: 4 kB / 0.9854 GB, free: 14.5 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.591e-06/0.8092, allocations: 4 kB / 0.9854 GB, free: 14.5 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.204e-06/0.8092, allocations: 7.938 kB / 0.9855 GB, free: 14.49 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002397/0.8116, allocations: 1.494 MB / 0.9869 GB, free: 12.91 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.448e-06/0.8117, allocations: 224 / 0.9869 GB, free: 12.91 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003871/0.8121, allocations: 79.81 kB / 0.987 GB, free: 12.83 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006353/0.8127, allocations: 198.4 kB / 0.9872 GB, free: 12.63 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.339e-05/0.8128, allocations: 15.94 kB / 0.9872 GB, free: 12.61 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004391/0.8172, allocations: 4.872 MB / 0.992 GB, free: 7.344 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.958e-06/0.8172, allocations: 4 kB / 0.992 GB, free: 7.34 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001784/0.819, allocations: 1.137 MB / 0.9931 GB, free: 6.156 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002571/0.8192, allocations: 172.4 kB / 0.9932 GB, free: 5.969 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.774e-05/0.8193, allocations: 8 kB / 0.9932 GB, free: 5.961 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003034/0.8196, allocations: 27.95 kB / 0.9933 GB, free: 5.934 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.84e-05/0.8197, allocations: 39.86 kB / 0.9933 GB, free: 5.895 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.567e-05/0.8197, allocations: 16 kB / 0.9933 GB, free: 5.879 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0003271/0.8201, allocations: 310.9 kB / 0.9936 GB, free: 5.578 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.3e-07/0.8201, allocations: 0 / 0.9936 GB, free: 5.578 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0007118/0.8208, allocations: 168 kB / 0.9938 GB, free: 5.414 MB / 0.7481 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 (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.002083/0.8229, allocations: 1.684 MB / 0.9954 GB, free: 3.668 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.001622/0.8245, allocations: 0.9927 MB / 0.9964 GB, free: 2.637 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 4.389e-06/0.8245, allocations: 3.938 kB / 0.9964 GB, free: 2.633 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0009496/0.8255, allocations: 0.6799 MB / 0.9971 GB, free: 1.914 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009028/0.8264, allocations: 179.7 kB / 0.9972 GB, free: 1.742 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005637/0.8321, allocations: 3.808 MB / 1.001 GB, free: 13.78 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005453/0.8326, allocations: 0.9416 MB / 1.002 GB, free: 12.81 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.0003866/0.833, allocations: 117 kB / 1.002 GB, free: 12.7 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002637/0.8333, allocations: 207.4 kB / 1.002 GB, free: 12.49 MB / 0.7637 GB Notification: Performance of SimCode: time 2.405e-06/0.8333, allocations: 0 / 1.002 GB, free: 12.49 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02966/0.863, allocations: 13.21 MB / 1.015 GB, free: 15.58 MB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002256/0.8633, allocations: 222 kB / 1.015 GB, free: 15.33 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.094/2.958, allocations: 0 / 1.015 GB, free: 15.33 MB / 0.7794 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