Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.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 10.0.0-master/package.mo", uses=false) Using package Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.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.ThreePhasesBalanced.Lines.Examples.ACLine_RL,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine_RL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_ThreePhasesBalanced_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.00151/0.00151, allocations: 98.38 kB / 15.05 MB, free: 1.105 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.001674/0.001674, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.62/2.62, allocations: 223.2 MB / 239.9 MB, free: 5.383 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 5.406/5.406, allocations: 409.2 MB / 0.6838 GB, free: 0.9805 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0006299/0.0006304, allocations: 8 kB / 0.8375 GB, free: 6.574 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.826/1.826, allocations: 146.8 MB / 0.9809 GB, free: 6.5 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL): time 0.01071/1.837, allocations: 4.707 MB / 0.9855 GB, free: 1.773 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.007138/1.845, allocations: 2.5 MB / 0.9879 GB, free: 15.27 MB / 0.7481 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009534/1.846, allocations: 15.88 kB / 0.9879 GB, free: 15.25 MB / 0.7481 GB Notification: Performance of NFTyping.typeComponents: time 0.0005221/1.846, allocations: 87.38 kB / 0.988 GB, free: 15.16 MB / 0.7481 GB Notification: Performance of NFTyping.typeBindings: time 0.001874/1.848, allocations: 327 kB / 0.9883 GB, free: 14.84 MB / 0.7481 GB Notification: Performance of NFTyping.typeClassSections: time 0.001722/1.85, allocations: 310.4 kB / 0.9886 GB, free: 14.54 MB / 0.7481 GB Notification: Performance of NFFlatten.flatten: time 0.00175/1.852, allocations: 0.5863 MB / 0.9892 GB, free: 13.96 MB / 0.7481 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002192/1.854, allocations: 0.7398 MB / 0.9899 GB, free: 13.18 MB / 0.7481 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0009949/1.855, allocations: 290.9 kB / 0.9902 GB, free: 12.89 MB / 0.7481 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000788/1.856, allocations: 290.9 kB / 0.9905 GB, free: 12.61 MB / 0.7481 GB Notification: Performance of NFPackage.collectConstants: time 7.907e-05/1.856, allocations: 28 kB / 0.9905 GB, free: 12.58 MB / 0.7481 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007924/1.856, allocations: 159.7 kB / 0.9906 GB, free: 12.43 MB / 0.7481 GB Notification: Performance of NFScalarize.scalarize: time 0.0003311/1.857, allocations: 199.5 kB / 0.9908 GB, free: 12.23 MB / 0.7481 GB Notification: Performance of NFVerifyModel.verify: time 0.0002693/1.857, allocations: 145.3 kB / 0.991 GB, free: 12.08 MB / 0.7481 GB Notification: Performance of NFConvertDAE.convert: time 0.001177/1.858, allocations: 0.6959 MB / 0.9917 GB, free: 11.39 MB / 0.7481 GB Notification: Performance of FrontEnd - DAE generated: time 4.989e-06/1.858, allocations: 3.938 kB / 0.9917 GB, free: 11.38 MB / 0.7481 GB Notification: Performance of FrontEnd: time 2.003e-06/1.858, allocations: 0 / 0.9917 GB, free: 11.38 MB / 0.7481 GB Notification: Performance of Transformations before backend: time 1.205e-05/1.858, allocations: 4 kB / 0.9917 GB, free: 11.38 MB / 0.7481 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.002329/1.861, allocations: 0.839 MB / 0.9925 GB, free: 10.49 MB / 0.7481 GB Notification: Performance of prepare preOptimizeDAE: time 8.51e-05/1.861, allocations: 12.03 kB / 0.9925 GB, free: 10.48 MB / 0.7481 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002106/1.861, allocations: 98.5 kB / 0.9926 GB, free: 10.37 MB / 0.7481 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001902/1.863, allocations: 182.9 kB / 0.9928 GB, free: 10.19 MB / 0.7481 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001282/1.864, allocations: 489.4 kB / 0.9932 GB, free: 9.672 MB / 0.7481 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.097e-05/1.864, allocations: 40.98 kB / 0.9933 GB, free: 9.633 MB / 0.7481 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002509/1.865, allocations: 55.98 kB / 0.9933 GB, free: 9.578 MB / 0.7481 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001997/1.867, allocations: 0.8122 MB / 0.9941 GB, free: 8.688 MB / 0.7481 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.985e-05/1.867, allocations: 7.938 kB / 0.9941 GB, free: 8.68 MB / 0.7481 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.458e-05/1.867, allocations: 27.98 kB / 0.9941 GB, free: 8.652 MB / 0.7481 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002794/1.867, allocations: 64.94 kB / 0.9942 GB, free: 8.586 MB / 0.7481 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001301/1.868, allocations: 0.5696 MB / 0.9948 GB, free: 8.02 MB / 0.7481 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007993/1.876, allocations: 4.6 MB / 0.9993 GB, free: 3.066 MB / 0.7481 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007831/1.877, allocations: 291.3 kB / 0.9995 GB, free: 2.773 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 4.159e-05/1.877, allocations: 4.281 kB / 0.9995 GB, free: 2.77 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.147e-05/1.877, allocations: 42.84 kB / 0.9996 GB, free: 2.719 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=33): time 4.278e-06/1.877, allocations: 0 / 0.9996 GB, free: 2.719 MB / 0.7481 GB Notification: Performance of matching and sorting (n=40): time 0.008378/1.886, allocations: 2.623 MB / 1.002 GB, free: 15.97 MB / 0.7637 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.036e-05/1.886, allocations: 59.41 kB / 1.002 GB, free: 15.9 MB / 0.7637 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007776/1.887, allocations: 458 kB / 1.003 GB, free: 15.44 MB / 0.7637 GB Notification: Performance of collectPreVariables (initialization): time 6.059e-05/1.887, allocations: 33.7 kB / 1.003 GB, free: 15.4 MB / 0.7637 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003597/1.887, allocations: 347.6 kB / 1.003 GB, free: 15.05 MB / 0.7637 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001811/1.887, allocations: 145.9 kB / 1.003 GB, free: 14.91 MB / 0.7637 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.764e-05/1.887, allocations: 8 kB / 1.003 GB, free: 14.9 MB / 0.7637 GB Notification: Performance of setup shared object (initialization): time 0.0003272/1.888, allocations: 370.7 kB / 1.003 GB, free: 14.53 MB / 0.7637 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005124/1.888, allocations: 236.9 kB / 1.004 GB, free: 14.3 MB / 0.7637 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007304/1.889, allocations: 402.5 kB / 1.004 GB, free: 13.83 MB / 0.7637 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000635/1.89, allocations: 289.7 kB / 1.004 GB, free: 13.55 MB / 0.7637 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.767e-06/1.89, allocations: 0 / 1.004 GB, free: 13.55 MB / 0.7637 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.002517/1.892, allocations: 0.9214 MB / 1.005 GB, free: 12.61 MB / 0.7637 GB Notification: Performance of prepare postOptimizeDAE: time 4.369e-05/1.892, allocations: 8 kB / 1.005 GB, free: 12.61 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.088e-05/1.892, allocations: 4 kB / 1.005 GB, free: 12.6 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001218/1.893, allocations: 226.7 kB / 1.006 GB, free: 12.37 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008272/1.894, allocations: 119.8 kB / 1.006 GB, free: 12.25 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008332/1.903, allocations: 5.009 MB / 1.011 GB, free: 6.852 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001037/1.904, allocations: 27.97 kB / 1.011 GB, free: 6.824 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.858e-05/1.904, allocations: 24.38 kB / 1.011 GB, free: 6.801 MB / 0.7637 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.0006948/1.905, allocations: 233.5 kB / 1.011 GB, free: 6.562 MB / 0.7637 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001687/1.905, allocations: 55.34 kB / 1.011 GB, free: 6.508 MB / 0.7637 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002777/1.908, allocations: 0.7774 MB / 1.012 GB, free: 5.711 MB / 0.7637 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.333e-05/1.908, allocations: 8 kB / 1.012 GB, free: 5.703 MB / 0.7637 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.586e-06/1.908, allocations: 0 / 1.012 GB, free: 5.703 MB / 0.7637 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.967e-06/1.908, allocations: 3.938 kB / 1.012 GB, free: 5.699 MB / 0.7637 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004041/1.912, allocations: 1.494 MB / 1.013 GB, free: 4.117 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.634e-06/1.912, allocations: 4 kB / 1.013 GB, free: 4.113 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005781/1.912, allocations: 67.94 kB / 1.013 GB, free: 4.047 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001082/1.913, allocations: 206.5 kB / 1.013 GB, free: 3.836 MB / 0.7637 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.036e-05/1.914, allocations: 8 kB / 1.013 GB, free: 3.828 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008413/1.922, allocations: 4.955 MB / 1.018 GB, free: 14.47 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.647e-06/1.922, allocations: 0 / 1.018 GB, free: 14.47 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003372/1.925, allocations: 1.215 MB / 1.019 GB, free: 13.17 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000516/1.926, allocations: 172.4 kB / 1.02 GB, free: 12.98 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.554e-05/1.926, allocations: 8 kB / 1.02 GB, free: 12.97 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005105/1.927, allocations: 27.97 kB / 1.02 GB, free: 12.95 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001576/1.927, allocations: 39.97 kB / 1.02 GB, free: 12.91 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.75e-05/1.927, allocations: 12 kB / 1.02 GB, free: 12.89 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0008083/1.928, allocations: 314.9 kB / 1.02 GB, free: 12.59 MB / 0.7794 GB Notification: Performance of sort global known variables: time 4.028e-06/1.928, allocations: 0 / 1.02 GB, free: 12.59 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.001329/1.929, allocations: 167.9 kB / 1.02 GB, free: 12.43 MB / 0.7794 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.004426/1.933, allocations: 2.244 MB / 1.022 GB, free: 10.1 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.003306/1.937, allocations: 0.9971 MB / 1.023 GB, free: 9.062 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.05e-05/1.937, allocations: 4 kB / 1.023 GB, free: 9.059 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.001935/1.939, allocations: 0.6759 MB / 1.024 GB, free: 8.344 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001499/1.94, allocations: 165.7 kB / 1.024 GB, free: 8.188 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01424/1.955, allocations: 7.315 MB / 1.031 GB, free: 0.6914 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001213/1.956, allocations: 0.9611 MB / 1.032 GB, free: 15.7 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.0007574/1.957, allocations: 113 kB / 1.032 GB, free: 15.59 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004656/1.957, allocations: 215.3 kB / 1.032 GB, free: 15.38 MB / 0.795 GB Notification: Performance of SimCode: time 2.064e-06/1.957, allocations: 4 kB / 1.032 GB, free: 15.37 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1318/2.089, allocations: 13.26 MB / 1.045 GB, free: 2.441 MB / 0.795 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0005281/2.09, allocations: 232.6 kB / 1.046 GB, free: 2.195 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.555/6.645, allocations: 2.531 kB / 1.046 GB, free: 2.195 MB / 0.795 GB (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL_res.mat --tempDir=temp_Buildings_latest_Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine_RL_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine_RL.fmu > Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL_res.mat does not exist to compare? outputFormat=mat