Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance.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.Resistance,fileNamePrefix="Buildings_latest_Buildings_Electrical_DC_Lines_Examples_Resistance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.Resistance,fileNamePrefix="Buildings_latest_Buildings_Electrical_DC_Lines_Examples_Resistance",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.001016/0.001016, allocations: 91.69 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.001184/0.001184, 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.457/1.457, allocations: 223.2 MB / 240 MB, free: 5.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.502/2.502, allocations: 409.4 MB / 0.684 GB, free: 0.9023 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0003623/0.0003623, allocations: 8 kB / 0.8378 GB, free: 6.527 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7786/0.779, allocations: 146.8 MB / 0.9811 GB, free: 6.281 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.Resistance): time 0.003681/0.7828, allocations: 2.671 MB / 0.9837 GB, free: 3.598 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.00192/0.7847, allocations: 1.232 MB / 0.9849 GB, free: 2.359 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001187/0.7849, allocations: 7.938 kB / 0.985 GB, free: 2.352 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.0001749/0.785, allocations: 43.7 kB / 0.985 GB, free: 2.309 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.0003366/0.7854, allocations: 111.5 kB / 0.9851 GB, free: 2.199 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003079/0.7857, allocations: 94.25 kB / 0.9852 GB, free: 2.109 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0003572/0.7861, allocations: 362.9 kB / 0.9855 GB, free: 1.754 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003051/0.7864, allocations: 200 kB / 0.9857 GB, free: 1.539 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001364/0.7865, allocations: 99.62 kB / 0.9858 GB, free: 1.441 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002871/0.7868, allocations: 123.6 kB / 0.9859 GB, free: 1.32 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 2.804e-05/0.7869, allocations: 11.94 kB / 0.9859 GB, free: 1.309 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001981/0.7871, allocations: 91.81 kB / 0.986 GB, free: 1.219 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 8.087e-05/0.7872, allocations: 63.84 kB / 0.9861 GB, free: 1.156 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 5.997e-05/0.7872, allocations: 65.58 kB / 0.9862 GB, free: 1.086 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.000294/0.7875, allocations: 253.6 kB / 0.9864 GB, free: 0.8398 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 5.961e-06/0.7875, allocations: 0 / 0.9864 GB, free: 0.8398 MB / 0.7325 GB Notification: Performance of FrontEnd: time 2.445e-06/0.7876, allocations: 0 / 0.9864 GB, free: 0.8398 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 6.963e-06/0.7876, allocations: 0 / 0.9864 GB, free: 0.8398 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: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.0008249/0.7884, allocations: 483 kB / 0.9869 GB, free: 324 kB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.702e-05/0.7885, allocations: 8.031 kB / 0.9869 GB, free: 316 kB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.26e-05/0.7885, allocations: 58.53 kB / 0.9869 GB, free: 248 kB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000591/0.7891, allocations: 83.64 kB / 0.987 GB, free: 164 kB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003483/0.7895, allocations: 244 kB / 0.9872 GB, free: 15.88 MB / 0.7481 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.297e-05/0.7895, allocations: 20.33 kB / 0.9873 GB, free: 15.86 MB / 0.7481 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.568e-05/0.7896, allocations: 16 kB / 0.9873 GB, free: 15.85 MB / 0.7481 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004744/0.79, allocations: 303.2 kB / 0.9876 GB, free: 15.53 MB / 0.7481 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.196e-05/0.7901, allocations: 3.938 kB / 0.9876 GB, free: 15.52 MB / 0.7481 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.26e-05/0.7901, allocations: 4 kB / 0.9876 GB, free: 15.52 MB / 0.7481 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.341e-05/0.7901, allocations: 16.38 kB / 0.9876 GB, free: 15.5 MB / 0.7481 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003026/0.7904, allocations: 192.9 kB / 0.9878 GB, free: 15.32 MB / 0.7481 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001512/0.792, allocations: 1.468 MB / 0.9892 GB, free: 13.69 MB / 0.7481 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002653/0.7922, allocations: 179.6 kB / 0.9894 GB, free: 13.48 MB / 0.7481 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.082e-05/0.7923, allocations: 36.84 kB / 0.9894 GB, free: 13.45 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 1.146e-05/0.7923, allocations: 0 / 0.9894 GB, free: 13.45 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.645e-05/0.7924, allocations: 38.55 kB / 0.9894 GB, free: 13.4 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=7): time 1.082e-06/0.7924, allocations: 0 / 0.9894 GB, free: 13.4 MB / 0.7481 GB Notification: Performance of matching and sorting (n=7): time 0.0004659/0.7928, allocations: 223.4 kB / 0.9897 GB, free: 13.15 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.679e-05/0.7929, allocations: 51.41 kB / 0.9897 GB, free: 13.09 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001959/0.7931, allocations: 199 kB / 0.9899 GB, free: 12.89 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 1.807e-05/0.7931, allocations: 29.7 kB / 0.9899 GB, free: 12.85 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001122/0.7932, allocations: 163.5 kB / 0.9901 GB, free: 12.69 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 2.52e-05/0.7933, allocations: 31.78 kB / 0.9901 GB, free: 12.66 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.023e-06/0.7933, allocations: 4 kB / 0.9901 GB, free: 12.65 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0002147/0.7935, allocations: 330.7 kB / 0.9904 GB, free: 12.32 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.786e-05/0.7936, allocations: 31.98 kB / 0.9905 GB, free: 12.29 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001075/0.7937, allocations: 97.66 kB / 0.9906 GB, free: 12.16 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000113/0.7938, allocations: 59.92 kB / 0.9906 GB, free: 12.11 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.7938, allocations: 0 / 0.9906 GB, free: 12.11 MB / 0.7481 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002753/0.7941, allocations: 182.2 kB / 0.9908 GB, free: 11.92 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 2.041e-05/0.7941, allocations: 9.875 kB / 0.9908 GB, free: 11.91 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.061e-06/0.7941, allocations: 0 / 0.9908 GB, free: 11.91 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001747/0.7943, allocations: 29.12 kB / 0.9908 GB, free: 11.88 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001045/0.7944, allocations: 31.92 kB / 0.9909 GB, free: 11.85 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000965/0.7954, allocations: 1.315 MB / 0.9921 GB, free: 10.4 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001161/0.7955, allocations: 31.72 kB / 0.9922 GB, free: 10.37 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.042e-05/0.7955, allocations: 4 kB / 0.9922 GB, free: 10.37 MB / 0.7481 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * 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 (17): * Single equations (assignments): 16 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001381/0.7957, allocations: 145.8 kB / 0.9923 GB, free: 10.21 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.777e-05/0.7957, allocations: 11.91 kB / 0.9923 GB, free: 10.2 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.246e-05/0.7958, allocations: 21.33 kB / 0.9923 GB, free: 10.18 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.322e-06/0.7958, allocations: 8.031 kB / 0.9924 GB, free: 10.18 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.539e-06/0.7958, allocations: 4 kB / 0.9924 GB, free: 10.17 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.265e-06/0.7958, allocations: 0 / 0.9924 GB, free: 10.17 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004862/0.7963, allocations: 435.2 kB / 0.9928 GB, free: 9.688 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.277e-06/0.7963, allocations: 3.984 kB / 0.9928 GB, free: 9.684 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.827e-05/0.7963, allocations: 15.94 kB / 0.9928 GB, free: 9.668 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.841e-05/0.7964, allocations: 16.84 kB / 0.9928 GB, free: 9.648 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.458e-05/0.7964, allocations: 15.95 kB / 0.9928 GB, free: 9.633 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008958/0.7973, allocations: 1.3 MB / 0.9941 GB, free: 8.195 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.7974, allocations: 4.156 kB / 0.9941 GB, free: 8.191 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002097/0.7976, allocations: 208.6 kB / 0.9943 GB, free: 7.969 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 7.925e-05/0.7977, allocations: 108.8 kB / 0.9944 GB, free: 7.844 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.831e-05/0.7977, allocations: 0 / 0.9944 GB, free: 7.844 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001042/0.7978, allocations: 8.094 kB / 0.9944 GB, free: 7.836 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.43e-05/0.7978, allocations: 11.92 kB / 0.9944 GB, free: 7.824 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.441e-06/0.7978, allocations: 4 kB / 0.9944 GB, free: 7.82 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0001215/0.798, allocations: 144.3 kB / 0.9946 GB, free: 7.68 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.403e-06/0.798, allocations: 0 / 0.9946 GB, free: 7.68 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0003369/0.7983, allocations: 55.84 kB / 0.9946 GB, free: 7.625 MB / 0.7481 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (6): * Single equations (assignments): 5 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005148/0.7988, allocations: 0.7483 MB / 0.9953 GB, free: 6.848 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0003499/0.7992, allocations: 206.5 kB / 0.9955 GB, free: 6.633 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.7992, allocations: 0 / 0.9955 GB, free: 6.633 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0001475/0.7994, allocations: 150.6 kB / 0.9957 GB, free: 6.473 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003721/0.7998, allocations: 36.67 kB / 0.9957 GB, free: 6.438 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00152/0.8013, allocations: 1.027 MB / 0.9967 GB, free: 5.324 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003792/0.8017, allocations: 0.7478 MB / 0.9974 GB, free: 4.551 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 0.0001035/0.8018, allocations: 29.55 kB / 0.9975 GB, free: 4.523 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.473e-05/0.8019, allocations: 51.41 kB / 0.9975 GB, free: 4.473 MB / 0.7481 GB Notification: Performance of SimCode: time 2.51e-07/0.8019, allocations: 0 / 0.9975 GB, free: 4.473 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01508/0.817, allocations: 3.345 MB / 1.001 GB, free: 1.305 MB / 0.7481 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001681/0.8172, allocations: 207.6 kB / 1.001 GB, free: 1.066 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.798/2.615, allocations: 3.938 kB / 1.001 GB, free: 1.062 MB / 0.7481 GB (rm -f Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe ; mkfifo Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe >> ../files/Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance_res.mat --tempDir=temp_Buildings_latest_Buildings_Electrical_DC_Lines_Examples_Resistance_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Electrical_DC_Lines_Examples_Resistance.fmu > Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance_res.mat does not exist to compare? outputFormat=mat