Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.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.OnePhase.Lines.Examples.ACLine_R,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_R",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_R",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.001068/0.001074, allocations: 91.61 kB / 15.06 MB, free: 1.098 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.001381/0.001381, allocations: 172.7 kB / 15.95 MB, free: 208 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.468/1.468, 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 10.0.0-master/package.mo): time 2.528/2.528, allocations: 409.4 MB / 0.684 GB, free: 0.8984 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0003769/0.0003771, allocations: 12 kB / 0.8378 GB, free: 6.469 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7258/0.7262, allocations: 146.8 MB / 0.9811 GB, free: 6.25 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R): time 0.007094/0.7334, allocations: 5.993 MB / 0.987 GB, free: 240 kB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.005382/0.7388, allocations: 2.866 MB / 0.9898 GB, free: 13.36 MB / 0.7481 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000818/0.7397, allocations: 19.88 kB / 0.9898 GB, free: 13.34 MB / 0.7481 GB Notification: Performance of NFTyping.typeComponents: time 0.0007815/0.7405, allocations: 138.8 kB / 0.9899 GB, free: 13.2 MB / 0.7481 GB Notification: Performance of NFTyping.typeBindings: time 0.002408/0.7429, allocations: 417.7 kB / 0.9903 GB, free: 12.79 MB / 0.7481 GB Notification: Performance of NFTyping.typeClassSections: time 0.002019/0.745, allocations: 313.8 kB / 0.9906 GB, free: 12.49 MB / 0.7481 GB Notification: Performance of NFFlatten.flatten: time 0.002845/0.7478, allocations: 1.326 MB / 0.9919 GB, free: 11.16 MB / 0.7481 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002203/0.7501, allocations: 0.9287 MB / 0.9928 GB, free: 10.21 MB / 0.7481 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000935/0.751, allocations: 394.4 kB / 0.9932 GB, free: 9.82 MB / 0.7481 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001079/0.7521, allocations: 486.2 kB / 0.9937 GB, free: 9.344 MB / 0.7481 GB Notification: Performance of NFPackage.collectConstants: time 0.0002218/0.7523, allocations: 32 kB / 0.9937 GB, free: 9.312 MB / 0.7481 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007596/0.7531, allocations: 191.7 kB / 0.9939 GB, free: 9.125 MB / 0.7481 GB Notification: Performance of NFScalarize.scalarize: time 0.0004125/0.7535, allocations: 267.2 kB / 0.9942 GB, free: 8.863 MB / 0.7481 GB Notification: Performance of NFVerifyModel.verify: time 0.0003734/0.7539, allocations: 177.3 kB / 0.9943 GB, free: 8.684 MB / 0.7481 GB Notification: Performance of NFConvertDAE.convert: time 0.001217/0.7551, allocations: 0.9099 MB / 0.9952 GB, free: 7.773 MB / 0.7481 GB Notification: Performance of FrontEnd - DAE generated: time 6.572e-06/0.7552, allocations: 0 / 0.9952 GB, free: 7.773 MB / 0.7481 GB Notification: Performance of FrontEnd: time 2.394e-06/0.7552, allocations: 0 / 0.9952 GB, free: 7.773 MB / 0.7481 GB Notification: Performance of Transformations before backend: time 4.267e-05/0.7552, allocations: 0 / 0.9952 GB, free: 7.773 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: 183 * Number of variables: 183 Notification: Performance of Generate backend data structure: time 0.002109/0.7573, allocations: 1.013 MB / 0.9962 GB, free: 6.711 MB / 0.7481 GB Notification: Performance of prepare preOptimizeDAE: time 4.899e-05/0.7574, allocations: 11.97 kB / 0.9962 GB, free: 6.699 MB / 0.7481 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002846/0.7577, allocations: 118.5 kB / 0.9963 GB, free: 6.574 MB / 0.7481 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001594/0.7593, allocations: 242.7 kB / 0.9966 GB, free: 6.336 MB / 0.7481 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001092/0.7604, allocations: 0.5288 MB / 0.9971 GB, free: 5.762 MB / 0.7481 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.976e-05/0.7605, allocations: 45.3 kB / 0.9971 GB, free: 5.719 MB / 0.7481 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001623/0.7606, allocations: 71.94 kB / 0.9972 GB, free: 5.648 MB / 0.7481 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001656/0.7623, allocations: 1.073 MB / 0.9982 GB, free: 4.465 MB / 0.7481 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.588e-05/0.7623, allocations: 7.938 kB / 0.9982 GB, free: 4.457 MB / 0.7481 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.239e-05/0.7624, allocations: 31.98 kB / 0.9983 GB, free: 4.426 MB / 0.7481 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001742/0.7626, allocations: 85.25 kB / 0.9983 GB, free: 4.344 MB / 0.7481 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001256/0.7639, allocations: 0.7426 MB / 0.9991 GB, free: 3.602 MB / 0.7481 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00572/0.7696, allocations: 5.905 MB / 1.005 GB, free: 13.27 MB / 0.7637 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009837/0.7706, allocations: 0.5476 MB / 1.005 GB, free: 12.7 MB / 0.7637 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004308/0.7711, allocations: 334 kB / 1.006 GB, free: 12.38 MB / 0.7637 GB Notification: Performance of preOpt evalFunc (simulation): time 4.215e-05/0.7711, allocations: 8.375 kB / 1.006 GB, free: 12.37 MB / 0.7637 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.239e-05/0.7712, allocations: 39 kB / 1.006 GB, free: 12.32 MB / 0.7637 GB Notification: Performance of pre-optimization done (n=47): time 2.345e-06/0.7712, allocations: 0 / 1.006 GB, free: 12.32 MB / 0.7637 GB Notification: Performance of matching and sorting (n=48): time 0.003795/0.775, allocations: 1.982 MB / 1.008 GB, free: 10.25 MB / 0.7637 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.308e-05/0.775, allocations: 59.84 kB / 1.008 GB, free: 10.18 MB / 0.7637 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007501/0.7758, allocations: 0.5507 MB / 1.008 GB, free: 9.621 MB / 0.7637 GB Notification: Performance of collectPreVariables (initialization): time 5.315e-05/0.7759, allocations: 37.7 kB / 1.008 GB, free: 9.578 MB / 0.7637 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002849/0.7762, allocations: 414.9 kB / 1.009 GB, free: 9.164 MB / 0.7637 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001445/0.7763, allocations: 173.6 kB / 1.009 GB, free: 8.992 MB / 0.7637 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.349e-05/0.7763, allocations: 8 kB / 1.009 GB, free: 8.984 MB / 0.7637 GB Notification: Performance of setup shared object (initialization): time 0.0001681/0.7765, allocations: 374.8 kB / 1.009 GB, free: 8.609 MB / 0.7637 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004194/0.777, allocations: 277.8 kB / 1.009 GB, free: 8.336 MB / 0.7637 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005614/0.7775, allocations: 489 kB / 1.01 GB, free: 7.766 MB / 0.7637 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005508/0.7781, allocations: 342 kB / 1.01 GB, free: 7.434 MB / 0.7637 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.078e-06/0.7781, allocations: 0 / 1.01 GB, free: 7.434 MB / 0.7637 GB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001881/0.78, allocations: 1.082 MB / 1.011 GB, free: 6.332 MB / 0.7637 GB Notification: Performance of prepare postOptimizeDAE: time 2.323e-05/0.78, allocations: 12.83 kB / 1.011 GB, free: 6.32 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.404e-05/0.78, allocations: 4 kB / 1.011 GB, free: 6.316 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000824/0.7809, allocations: 283.2 kB / 1.012 GB, free: 6.027 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004635/0.7813, allocations: 123.8 kB / 1.012 GB, free: 5.906 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006068/0.7874, allocations: 6.595 MB / 1.018 GB, free: 14.77 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005808/0.788, allocations: 39.95 kB / 1.018 GB, free: 14.73 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.853e-05/0.7881, allocations: 32 kB / 1.018 GB, free: 14.7 MB / 0.7794 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * 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 (67): * Single equations (assignments): 63 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(2,100.0%) 6,(2,100.0%) 4,(2,100.0%) 2,(2,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004195/0.7886, allocations: 260.4 kB / 1.019 GB, free: 14.44 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001562/0.7887, allocations: 75.14 kB / 1.019 GB, free: 14.36 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001585/0.7903, allocations: 0.8846 MB / 1.019 GB, free: 13.46 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.051e-06/0.7903, allocations: 4 kB / 1.019 GB, free: 13.46 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.264e-05/0.7903, allocations: 12.14 kB / 1.019 GB, free: 13.45 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.723e-06/0.7904, allocations: 3.984 kB / 1.019 GB, free: 13.44 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002595/0.793, allocations: 1.72 MB / 1.021 GB, free: 11.63 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.668e-06/0.793, allocations: 0 / 1.021 GB, free: 11.63 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002542/0.7932, allocations: 63.94 kB / 1.021 GB, free: 11.57 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007058/0.794, allocations: 271.3 kB / 1.021 GB, free: 11.29 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.638e-05/0.794, allocations: 8 kB / 1.021 GB, free: 11.29 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006375/0.8004, allocations: 6.581 MB / 1.028 GB, free: 4.172 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.529e-06/0.8004, allocations: 3.938 kB / 1.028 GB, free: 4.168 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001635/0.8021, allocations: 0.9875 MB / 1.029 GB, free: 3.137 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003641/0.8024, allocations: 192.2 kB / 1.029 GB, free: 2.93 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001519/0.8026, allocations: 15.98 kB / 1.029 GB, free: 2.914 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003605/0.803, allocations: 23.97 kB / 1.029 GB, free: 2.891 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001085/0.8031, allocations: 51.88 kB / 1.029 GB, free: 2.84 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.111e-05/0.8031, allocations: 12 kB / 1.029 GB, free: 2.828 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.000431/0.8036, allocations: 383.1 kB / 1.03 GB, free: 2.457 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.51e-07/0.8036, allocations: 0 / 1.03 GB, free: 2.457 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0008532/0.8044, allocations: 220 kB / 1.03 GB, free: 2.242 MB / 0.7794 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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 simulation (31): * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(2,100.0%) 2,(2,100.0%) 4,(2,100.0%) 2,(2,100.0%) 6} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001735/0.8062, allocations: 1.528 MB / 1.031 GB, free: 0.6523 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.002164/0.8084, allocations: 1.271 MB / 1.032 GB, free: 15.34 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 4.018e-06/0.8084, allocations: 0 / 1.032 GB, free: 15.34 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.001236/0.8096, allocations: 0.8893 MB / 1.033 GB, free: 14.39 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001068/0.8107, allocations: 212.8 kB / 1.034 GB, free: 14.19 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006854/0.8176, allocations: 4.374 MB / 1.038 GB, free: 9.633 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006922/0.8183, allocations: 1.005 MB / 1.039 GB, free: 8.598 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.0004789/0.8188, allocations: 126 kB / 1.039 GB, free: 8.473 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000315/0.8191, allocations: 247.4 kB / 1.039 GB, free: 8.23 MB / 0.795 GB Notification: Performance of SimCode: time 9.02e-07/0.8191, allocations: 0 / 1.039 GB, free: 8.23 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03308/0.8522, allocations: 16.21 MB / 1.055 GB, free: 8.332 MB / 0.8106 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001782/0.8524, allocations: 221.1 kB / 1.055 GB, free: 8.09 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.193/3.046, allocations: 0 / 1.055 GB, free: 8.09 MB / 0.8106 GB (rm -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R_res.mat --tempDir=temp_Buildings_latest_Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_R_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_R.fmu > Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R_res.mat does not exist to compare? outputFormat=mat