Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.DC.Lines.Examples.RCModel.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.DC.Lines.Examples.RCModel,fileNamePrefix="Buildings_9_Buildings_Electrical_DC_Lines_Examples_RCModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.RCModel,fileNamePrefix="Buildings_9_Buildings_Electrical_DC_Lines_Examples_RCModel",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.001055/0.001055, 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.001237/0.001237, 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.465/1.465, allocations: 223.3 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.557/2.557, allocations: 390.4 MB / 0.6655 GB, free: 2.922 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003444/0.0003445, allocations: 12 kB / 0.8149 GB, free: 14.09 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7612/0.7616, allocations: 142.3 MB / 0.9538 GB, free: 8.098 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.RCModel): time 0.0038/0.7654, allocations: 3.835 MB / 0.9576 GB, free: 5.156 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.002276/0.7677, allocations: 1.741 MB / 0.9593 GB, free: 3.777 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002009/0.7679, allocations: 6.875 kB / 0.9593 GB, free: 3.777 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.000222/0.7682, allocations: 73.05 kB / 0.9594 GB, free: 3.715 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0005309/0.7687, allocations: 205.3 kB / 0.9596 GB, free: 3.555 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006292/0.7694, allocations: 186.6 kB / 0.9597 GB, free: 3.418 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0008706/0.7702, allocations: 0.6845 MB / 0.9604 GB, free: 3.012 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000537/0.7708, allocations: 385 kB / 0.9608 GB, free: 2.715 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003196/0.7711, allocations: 199.7 kB / 0.961 GB, free: 2.617 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005299/0.7717, allocations: 248.8 kB / 0.9612 GB, free: 2.48 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 5.677e-05/0.7717, allocations: 19.34 kB / 0.9612 GB, free: 2.48 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003812/0.7721, allocations: 127 kB / 0.9613 GB, free: 2.426 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.000133/0.7723, allocations: 133.2 kB / 0.9615 GB, free: 2.34 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 9.729e-05/0.7724, allocations: 101.1 kB / 0.9616 GB, free: 2.273 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0004478/0.7728, allocations: 457.7 kB / 0.962 GB, free: 1.98 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.38e-06/0.7728, allocations: 0 / 0.962 GB, free: 1.98 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.673e-06/0.7728, allocations: 0 / 0.962 GB, free: 1.98 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 1.177e-05/0.7728, allocations: 0 / 0.962 GB, free: 1.98 MB / 0.7169 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 91 * Number of variables: 91 Notification: Performance of Generate backend data structure: time 0.0009199/0.7738, allocations: 0.6668 MB / 0.9626 GB, free: 1.406 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.865e-05/0.7738, allocations: 10.22 kB / 0.9627 GB, free: 1.406 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.105e-05/0.7739, allocations: 75.97 kB / 0.9627 GB, free: 1.336 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009444/0.7748, allocations: 149.6 kB / 0.9629 GB, free: 1.273 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004408/0.7753, allocations: 327.9 kB / 0.9632 GB, free: 0.9727 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.276e-05/0.7753, allocations: 27.3 kB / 0.9632 GB, free: 0.957 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.96e-05/0.7754, allocations: 29.25 kB / 0.9632 GB, free: 0.9492 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000811/0.7762, allocations: 0.5288 MB / 0.9638 GB, free: 0.5859 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.367e-05/0.7763, allocations: 1.344 kB / 0.9638 GB, free: 0.5859 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.16e-05/0.7763, allocations: 19.58 kB / 0.9638 GB, free: 0.5703 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.125e-05/0.7764, allocations: 37.11 kB / 0.9638 GB, free: 0.5586 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005706/0.7769, allocations: 380 kB / 0.9642 GB, free: 388 kB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002534/0.7795, allocations: 2.413 MB / 0.9665 GB, free: 14.11 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005228/0.78, allocations: 264.9 kB / 0.9668 GB, free: 13.96 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001786/0.7802, allocations: 118.4 kB / 0.9669 GB, free: 13.89 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 1.588e-05/0.7802, allocations: 2.438 kB / 0.9669 GB, free: 13.89 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.383e-05/0.7803, allocations: 35.81 kB / 0.9669 GB, free: 13.85 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=20): time 1.843e-06/0.7803, allocations: 0 / 0.9669 GB, free: 13.85 MB / 0.7325 GB Notification: Performance of matching and sorting (n=23): time 0.002223/0.7825, allocations: 1.119 MB / 0.968 GB, free: 13.01 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.352e-05/0.7826, allocations: 54.47 kB / 0.9681 GB, free: 12.95 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003394/0.7829, allocations: 301 kB / 0.9684 GB, free: 12.73 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.089e-05/0.783, allocations: 27.83 kB / 0.9684 GB, free: 12.7 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001324/0.7831, allocations: 228.7 kB / 0.9686 GB, free: 12.5 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 6.202e-05/0.7832, allocations: 81.91 kB / 0.9687 GB, free: 12.43 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.779e-05/0.7832, allocations: 9.156 kB / 0.9687 GB, free: 12.42 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001086/0.7833, allocations: 354.2 kB / 0.969 GB, free: 12.07 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000171/0.7835, allocations: 95.67 kB / 0.9691 GB, free: 12.02 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002159/0.7837, allocations: 186.9 kB / 0.9693 GB, free: 11.86 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002125/0.7839, allocations: 139.4 kB / 0.9694 GB, free: 11.79 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.7839, allocations: 1 kB / 0.9694 GB, free: 11.79 MB / 0.7325 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.000758/0.7847, allocations: 437.7 kB / 0.9699 GB, free: 11.55 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.749e-05/0.7847, allocations: 6.156 kB / 0.9699 GB, free: 11.55 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.064e-05/0.7847, allocations: 14.98 kB / 0.9699 GB, free: 11.54 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003317/0.7851, allocations: 94.52 kB / 0.97 GB, free: 11.48 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002834/0.7854, allocations: 64.66 kB / 0.97 GB, free: 11.46 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002819/0.7882, allocations: 4.068 MB / 0.974 GB, free: 7.305 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002505/0.7885, allocations: 8.188 kB / 0.974 GB, free: 7.301 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.242e-05/0.7885, allocations: 14.72 kB / 0.974 GB, free: 7.297 MB / 0.7325 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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 (34): * Single equations (assignments): 31 * 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 {(1,100.0%) 1,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002064/0.7887, allocations: 190.1 kB / 0.9742 GB, free: 7.129 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.086e-05/0.7888, allocations: 32.28 kB / 0.9742 GB, free: 7.113 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.002e-05/0.7889, allocations: 41.19 kB / 0.9743 GB, free: 7.082 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.466e-06/0.7889, allocations: 3.312 kB / 0.9743 GB, free: 7.082 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.915e-06/0.7889, allocations: 1.156 kB / 0.9743 GB, free: 7.082 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.506e-06/0.7889, allocations: 0 / 0.9743 GB, free: 7.082 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004448/0.7894, allocations: 402.2 kB / 0.9747 GB, free: 6.742 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.7894, allocations: 0 / 0.9747 GB, free: 6.742 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001865/0.7896, allocations: 34.53 kB / 0.9747 GB, free: 6.734 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00028/0.7898, allocations: 95.03 kB / 0.9748 GB, free: 6.672 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.81e-05/0.7899, allocations: 4.875 kB / 0.9748 GB, free: 6.668 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002668/0.7925, allocations: 4.073 MB / 0.9788 GB, free: 2.512 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.203e-06/0.7926, allocations: 0 / 0.9788 GB, free: 2.512 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007923/0.7934, allocations: 0.5599 MB / 0.9793 GB, free: 2.133 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001209/0.7935, allocations: 121.2 kB / 0.9794 GB, free: 2.012 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.116e-05/0.7935, allocations: 5.094 kB / 0.9794 GB, free: 2.008 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001956/0.7937, allocations: 11.5 kB / 0.9794 GB, free: 2.004 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.418e-05/0.7938, allocations: 19.41 kB / 0.9795 GB, free: 1.992 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.704e-05/0.7938, allocations: 8.938 kB / 0.9795 GB, free: 1.988 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0002039/0.794, allocations: 212.5 kB / 0.9797 GB, free: 1.844 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.2e-07/0.794, allocations: 0 / 0.9797 GB, free: 1.844 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0005031/0.7945, allocations: 98.22 kB / 0.9798 GB, free: 1.832 MB / 0.7325 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (RC_dyn.Vc) * 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 (18): * Single equations (assignments): 15 * 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 {(1,100.0%) 1,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001027/0.7956, allocations: 1.098 MB / 0.9808 GB, free: 0.9297 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0007851/0.7964, allocations: 0.6089 MB / 0.9814 GB, free: 460 kB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.7964, allocations: 0 / 0.9814 GB, free: 460 kB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.000458/0.7969, allocations: 471.2 kB / 0.9819 GB, free: 40 kB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000514/0.7974, allocations: 84.67 kB / 0.982 GB, free: 15.99 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002837/0.8002, allocations: 2.055 MB / 0.984 GB, free: 14.57 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003642/0.8006, allocations: 0.8303 MB / 0.9848 GB, free: 13.8 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 0.0002237/0.8008, allocations: 62.86 kB / 0.9848 GB, free: 13.77 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001445/0.801, allocations: 110.3 kB / 0.9849 GB, free: 13.67 MB / 0.7481 GB Notification: Performance of SimCode: time 5.11e-07/0.801, allocations: 0 / 0.9849 GB, free: 13.67 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01859/0.8196, allocations: 7.12 MB / 0.9919 GB, free: 7.547 MB / 0.7481 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001772/0.8198, allocations: 204.8 kB / 0.9921 GB, free: 7.301 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.878/2.698, allocations: 0 / 0.9921 GB, free: 7.301 MB / 0.7481 GB (rm -f Buildings_9_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe ; mkfifo Buildings_9_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe >> ../files/Buildings_9_Buildings.Electrical.DC.Lines.Examples.RCModel.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Electrical.DC.Lines.Examples.RCModel_res.mat --tempDir=temp_Buildings_9_Buildings_Electrical_DC_Lines_Examples_RCModel_fmu --startTime=0 --stopTime=15 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Electrical_DC_Lines_Examples_RCModel.fmu > Buildings_9_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Electrical.DC.Lines.Examples.RCModel_res.mat does not exist to compare? outputFormat=mat