Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_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 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.DC.Lines.Examples.RCModel,fileNamePrefix="Buildings_latest_Buildings_Electrical_DC_Lines_Examples_RCModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.RCModel,fileNamePrefix="Buildings_latest_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.001024/0.001024, allocations: 91.84 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.001233/0.001233, 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.544/1.544, 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 10.0.0-master/package.mo): time 2.642/2.642, allocations: 409.4 MB / 0.684 GB, free: 0.9805 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0003787/0.0003789, allocations: 16 kB / 0.8378 GB, free: 6.574 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8459/0.8463, allocations: 146.8 MB / 0.9811 GB, free: 6.32 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.RCModel): time 0.005153/0.8515, allocations: 3.836 MB / 0.9849 GB, free: 2.469 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.002818/0.8544, allocations: 1.738 MB / 0.9866 GB, free: 0.7227 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001982/0.8546, allocations: 11.94 kB / 0.9866 GB, free: 0.7109 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.0002329/0.8549, allocations: 71.42 kB / 0.9867 GB, free: 0.6406 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.0005134/0.8554, allocations: 210.9 kB / 0.9869 GB, free: 444 kB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005493/0.8559, allocations: 175.6 kB / 0.987 GB, free: 268 kB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0007666/0.8567, allocations: 0.6775 MB / 0.9877 GB, free: 15.58 MB / 0.7481 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005483/0.8573, allocations: 392.7 kB / 0.9881 GB, free: 15.17 MB / 0.7481 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002742/0.8576, allocations: 203.2 kB / 0.9883 GB, free: 14.97 MB / 0.7481 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004431/0.858, allocations: 255 kB / 0.9885 GB, free: 14.72 MB / 0.7481 GB Notification: Performance of NFPackage.collectConstants: time 5.197e-05/0.8581, allocations: 20 kB / 0.9885 GB, free: 14.7 MB / 0.7481 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002791/0.8584, allocations: 119.9 kB / 0.9886 GB, free: 14.59 MB / 0.7481 GB Notification: Performance of NFScalarize.scalarize: time 0.0001369/0.8585, allocations: 131.6 kB / 0.9888 GB, free: 14.46 MB / 0.7481 GB Notification: Performance of NFVerifyModel.verify: time 8.656e-05/0.8586, allocations: 105.5 kB / 0.9889 GB, free: 14.35 MB / 0.7481 GB Notification: Performance of NFConvertDAE.convert: time 0.0004636/0.8591, allocations: 457.1 kB / 0.9893 GB, free: 13.9 MB / 0.7481 GB Notification: Performance of FrontEnd - DAE generated: time 6.261e-06/0.8591, allocations: 0 / 0.9893 GB, free: 13.9 MB / 0.7481 GB Notification: Performance of FrontEnd: time 2.004e-06/0.8591, allocations: 0 / 0.9893 GB, free: 13.9 MB / 0.7481 GB Notification: Performance of Transformations before backend: time 6.923e-06/0.8591, allocations: 0 / 0.9893 GB, free: 13.9 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: 91 * Number of variables: 91 Notification: Performance of Generate backend data structure: time 0.001073/0.8602, allocations: 0.6588 MB / 0.9899 GB, free: 13.19 MB / 0.7481 GB Notification: Performance of prepare preOptimizeDAE: time 4.387e-05/0.8602, allocations: 8.031 kB / 0.9899 GB, free: 13.18 MB / 0.7481 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.801e-05/0.8603, allocations: 82.52 kB / 0.99 GB, free: 13.09 MB / 0.7481 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00091/0.8613, allocations: 151.3 kB / 0.9902 GB, free: 12.95 MB / 0.7481 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004267/0.8617, allocations: 321.3 kB / 0.9905 GB, free: 12.59 MB / 0.7481 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.932e-05/0.8617, allocations: 25 kB / 0.9905 GB, free: 12.57 MB / 0.7481 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.98e-05/0.8618, allocations: 35.95 kB / 0.9905 GB, free: 12.53 MB / 0.7481 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007842/0.8626, allocations: 0.5314 MB / 0.991 GB, free: 11.96 MB / 0.7481 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.461e-05/0.8626, allocations: 3.938 kB / 0.9911 GB, free: 11.96 MB / 0.7481 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.93e-05/0.8627, allocations: 20 kB / 0.9911 GB, free: 11.94 MB / 0.7481 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.409e-05/0.8627, allocations: 24.64 kB / 0.9911 GB, free: 11.91 MB / 0.7481 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005625/0.8633, allocations: 394.2 kB / 0.9915 GB, free: 11.53 MB / 0.7481 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002477/0.8658, allocations: 2.411 MB / 0.9938 GB, free: 8.898 MB / 0.7481 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005149/0.8663, allocations: 254.5 kB / 0.9941 GB, free: 8.641 MB / 0.7481 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001636/0.8665, allocations: 112.8 kB / 0.9942 GB, free: 8.527 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 1.417e-05/0.8665, allocations: 0 / 0.9942 GB, free: 8.527 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.373e-05/0.8665, allocations: 38.5 kB / 0.9942 GB, free: 8.48 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=20): time 1.353e-06/0.8666, allocations: 4 kB / 0.9942 GB, free: 8.477 MB / 0.7481 GB Notification: Performance of matching and sorting (n=23): time 0.002039/0.8686, allocations: 1.121 MB / 0.9953 GB, free: 7.258 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.555e-05/0.8686, allocations: 59.39 kB / 0.9954 GB, free: 7.188 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003017/0.869, allocations: 300.4 kB / 0.9957 GB, free: 6.887 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 2.89e-05/0.869, allocations: 33.7 kB / 0.9957 GB, free: 6.848 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001414/0.8691, allocations: 227.6 kB / 0.9959 GB, free: 6.621 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 7.131e-05/0.8692, allocations: 82.84 kB / 0.996 GB, free: 6.539 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.003e-05/0.8692, allocations: 4 kB / 0.996 GB, free: 6.535 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0001344/0.8694, allocations: 342.8 kB / 0.9963 GB, free: 6.191 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001694/0.8696, allocations: 104.6 kB / 0.9964 GB, free: 6.086 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002187/0.8698, allocations: 183.8 kB / 0.9966 GB, free: 5.867 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002148/0.87, allocations: 137.1 kB / 0.9967 GB, free: 5.734 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.462e-06/0.87, allocations: 0 / 0.9967 GB, free: 5.734 MB / 0.7481 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007316/0.8708, allocations: 438.1 kB / 0.9971 GB, free: 5.293 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 2.121e-05/0.8708, allocations: 9.078 kB / 0.9971 GB, free: 5.285 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.107e-06/0.8708, allocations: 4 kB / 0.9971 GB, free: 5.281 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003391/0.8711, allocations: 98.69 kB / 0.9972 GB, free: 5.176 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002621/0.8714, allocations: 63.91 kB / 0.9973 GB, free: 5.113 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003113/0.8745, allocations: 4.072 MB / 1.001 GB, free: 0.6367 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002126/0.8748, allocations: 11.98 kB / 1.001 GB, free: 0.625 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.395e-05/0.8748, allocations: 16 kB / 1.001 GB, free: 0.6094 MB / 0.7481 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.0002311/0.875, allocations: 181.7 kB / 1.001 GB, free: 432 kB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.624e-05/0.8751, allocations: 31.62 kB / 1.002 GB, free: 400 kB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.81e-05/0.8752, allocations: 42.45 kB / 1.002 GB, free: 356 kB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.849e-06/0.8752, allocations: 8.078 kB / 1.002 GB, free: 348 kB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.153e-06/0.8752, allocations: 4 kB / 1.002 GB, free: 344 kB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.497e-06/0.8752, allocations: 0 / 1.002 GB, free: 344 kB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004681/0.8757, allocations: 397.4 kB / 1.002 GB, free: 15.9 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.944e-06/0.8757, allocations: 0 / 1.002 GB, free: 15.9 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001824/0.8759, allocations: 47.84 kB / 1.002 GB, free: 15.85 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002927/0.8762, allocations: 90.5 kB / 1.002 GB, free: 15.75 MB / 0.7637 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.734e-05/0.8762, allocations: 8 kB / 1.002 GB, free: 15.75 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002921/0.8792, allocations: 4.052 MB / 1.006 GB, free: 11.3 MB / 0.7637 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.116e-06/0.8792, allocations: 4.172 kB / 1.006 GB, free: 11.29 MB / 0.7637 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008/0.88, allocations: 0.5591 MB / 1.007 GB, free: 10.71 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001294/0.8801, allocations: 124.7 kB / 1.007 GB, free: 10.57 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.802e-05/0.8802, allocations: 8 kB / 1.007 GB, free: 10.56 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002434/0.8804, allocations: 8.062 kB / 1.007 GB, free: 10.55 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.624e-05/0.8805, allocations: 19.97 kB / 1.007 GB, free: 10.54 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.675e-05/0.8805, allocations: 12 kB / 1.007 GB, free: 10.52 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.0002229/0.8807, allocations: 207.1 kB / 1.007 GB, free: 10.32 MB / 0.7637 GB Notification: Performance of sort global known variables: time 1.5e-07/0.8807, allocations: 3.938 kB / 1.007 GB, free: 10.32 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.0004764/0.8812, allocations: 96 kB / 1.007 GB, free: 10.22 MB / 0.7637 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.001133/0.8824, allocations: 1.103 MB / 1.008 GB, free: 9.086 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.0008819/0.8832, allocations: 0.6054 MB / 1.009 GB, free: 8.441 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 5.43e-06/0.8833, allocations: 0 / 1.009 GB, free: 8.441 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.00053/0.8838, allocations: 476.6 kB / 1.009 GB, free: 7.938 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005001/0.8843, allocations: 69.59 kB / 1.009 GB, free: 7.871 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003148/0.8875, allocations: 2.053 MB / 1.011 GB, free: 5.73 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000509/0.888, allocations: 0.8348 MB / 1.012 GB, free: 4.871 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.0002481/0.8883, allocations: 62.92 kB / 1.012 GB, free: 4.809 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001737/0.8884, allocations: 111.4 kB / 1.012 GB, free: 4.703 MB / 0.7637 GB Notification: Performance of SimCode: time 1.804e-06/0.8884, allocations: 0 / 1.012 GB, free: 4.703 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02054/0.909, allocations: 7.123 MB / 1.019 GB, free: 13.78 MB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001907/0.9092, allocations: 206.6 kB / 1.019 GB, free: 13.54 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.912/2.821, allocations: 0 / 1.019 GB, free: 13.54 MB / 0.7794 GB (rm -f Buildings_latest_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe ; mkfifo Buildings_latest_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe >> ../files/Buildings_latest_Buildings.Electrical.DC.Lines.Examples.RCModel.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Electrical.DC.Lines.Examples.RCModel_res.mat --tempDir=temp_Buildings_latest_Buildings_Electrical_DC_Lines_Examples_RCModel_fmu --startTime=0 --stopTime=15 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Electrical_DC_Lines_Examples_RCModel.fmu > Buildings_latest_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Electrical.DC.Lines.Examples.RCModel_res.mat does not exist to compare? outputFormat=mat