Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.Resistor.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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(BuildingSystems.Electrical.DC.Loads.Examples.Resistor,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_DC_Loads_Examples_Resistor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Electrical.DC.Loads.Examples.Resistor,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_DC_Loads_Examples_Resistor",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.006948/0.006948, allocations: 94.98 kB / 15.73 MB, free: 6.039 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.00181/0.00181, allocations: 200.3 kB / 16.68 MB, free: 5.969 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.462/1.462, allocations: 222.9 MB / 240.4 MB, free: 4.301 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002523/0.002523, allocations: 286.5 kB / 290.8 MB, free: 1.898 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.146/1.146, allocations: 169.3 MB / 0.4983 GB, free: 13.82 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003981/0.003981, allocations: 100.1 kB / 0.681 GB, free: 12 kB / 478.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1734/0.1774, allocations: 86.97 MB / 0.7659 GB, free: 8.965 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.DC.Loads.Examples.Resistor): time 0.005808/0.1832, allocations: 3.833 MB / 0.7696 GB, free: 5.117 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.002854/0.1861, allocations: 1.733 MB / 0.7713 GB, free: 3.375 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001994/0.1863, allocations: 7.938 kB / 0.7713 GB, free: 3.367 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.001392/0.1877, allocations: 498.1 kB / 0.7718 GB, free: 2.879 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.0005293/0.1883, allocations: 218.9 kB / 0.772 GB, free: 2.664 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005298/0.1888, allocations: 210.4 kB / 0.7722 GB, free: 2.461 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0005935/0.1894, allocations: 478.2 kB / 0.7727 GB, free: 1.992 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005718/0.19, allocations: 361.1 kB / 0.773 GB, free: 1.637 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000275/0.1903, allocations: 199.2 kB / 0.7732 GB, free: 1.441 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004927/0.1908, allocations: 223.1 kB / 0.7734 GB, free: 1.223 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 6.14e-05/0.1908, allocations: 28 kB / 0.7734 GB, free: 1.195 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005322/0.1914, allocations: 247.4 kB / 0.7737 GB, free: 0.9531 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0001783/0.1916, allocations: 119.7 kB / 0.7738 GB, free: 0.8359 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0002585/0.1918, allocations: 167.2 kB / 0.774 GB, free: 0.6719 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0008033/0.1926, allocations: 0.5098 MB / 0.7744 GB, free: 164 kB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 4.237e-06/0.1927, allocations: 0 / 0.7744 GB, free: 164 kB / 0.5606 GB Notification: Performance of FrontEnd: time 1.333e-06/0.1927, allocations: 0 / 0.7744 GB, free: 164 kB / 0.5606 GB Notification: Performance of Transformations before backend: time 1.142e-05/0.1927, allocations: 0 / 0.7744 GB, free: 164 kB / 0.5606 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 78 * Number of variables: 78 Notification: Performance of Generate backend data structure: time 0.3002/0.4929, allocations: 0.6359 MB / 0.7751 GB, free: 15.22 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 5.081e-05/0.493, allocations: 10.38 kB / 0.7751 GB, free: 15.22 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.769e-05/0.4931, allocations: 71.47 kB / 0.7751 GB, free: 15.18 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001009/0.4941, allocations: 135.7 kB / 0.7753 GB, free: 15.16 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003737/0.4945, allocations: 292.8 kB / 0.7756 GB, free: 14.96 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.318e-05/0.4945, allocations: 24.38 kB / 0.7756 GB, free: 14.96 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.192e-05/0.4946, allocations: 28.56 kB / 0.7756 GB, free: 14.96 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006447/0.4952, allocations: 461.2 kB / 0.776 GB, free: 14.84 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.449e-05/0.4953, allocations: 7.953 kB / 0.7761 GB, free: 14.84 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.432e-05/0.4953, allocations: 13.31 kB / 0.7761 GB, free: 14.84 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.004e-05/0.4953, allocations: 29.81 kB / 0.7761 GB, free: 14.83 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004778/0.4958, allocations: 319.9 kB / 0.7764 GB, free: 14.82 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001739/0.4976, allocations: 2.185 MB / 0.7785 GB, free: 13.03 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003334/0.4979, allocations: 251.6 kB / 0.7788 GB, free: 12.86 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002165/0.4982, allocations: 107.5 kB / 0.7789 GB, free: 12.83 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 1.047e-05/0.4982, allocations: 1.781 kB / 0.7789 GB, free: 12.83 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.074e-05/0.4982, allocations: 40.45 kB / 0.7789 GB, free: 12.78 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=14): time 1.613e-06/0.4982, allocations: 3.75 kB / 0.7789 GB, free: 12.78 MB / 0.5606 GB Notification: Performance of matching and sorting (n=14): time 0.0005398/0.4988, allocations: 295.5 kB / 0.7792 GB, free: 12.59 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.346e-05/0.4988, allocations: 54.36 kB / 0.7793 GB, free: 12.53 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002613/0.4991, allocations: 269 kB / 0.7795 GB, free: 12.38 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.532e-05/0.4991, allocations: 30.73 kB / 0.7795 GB, free: 12.35 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 9.468e-05/0.4992, allocations: 207.9 kB / 0.7797 GB, free: 12.18 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 3.033e-05/0.4992, allocations: 58.53 kB / 0.7798 GB, free: 12.14 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.793e-05/0.4993, allocations: 45.67 kB / 0.7798 GB, free: 12.11 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 6.179e-05/0.4994, allocations: 339.7 kB / 0.7802 GB, free: 11.78 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.742e-05/0.4995, allocations: 55.25 kB / 0.7802 GB, free: 11.76 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001322/0.4996, allocations: 151.1 kB / 0.7804 GB, free: 11.63 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002478/0.4999, allocations: 217.1 kB / 0.7806 GB, free: 11.47 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.026e-06/0.4999, allocations: 0.9375 kB / 0.7806 GB, free: 11.47 MB / 0.5606 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004036/0.5003, allocations: 262.2 kB / 0.7808 GB, free: 11.35 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.859e-05/0.5003, allocations: 9.344 kB / 0.7808 GB, free: 11.35 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.428e-06/0.5003, allocations: 3.156 kB / 0.7808 GB, free: 11.35 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001642/0.5005, allocations: 35.12 kB / 0.7809 GB, free: 11.34 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001918/0.5007, allocations: 48.3 kB / 0.7809 GB, free: 11.33 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008293/0.5015, allocations: 1.43 MB / 0.7823 GB, free: 9.902 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001793/0.5017, allocations: 25.09 kB / 0.7823 GB, free: 9.887 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.814e-05/0.5017, allocations: 13.19 kB / 0.7823 GB, free: 9.883 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * 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 (27): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001366/0.5019, allocations: 162.1 kB / 0.7825 GB, free: 9.746 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.005e-05/0.5019, allocations: 27.45 kB / 0.7825 GB, free: 9.73 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.888e-05/0.502, allocations: 36.44 kB / 0.7826 GB, free: 9.707 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.595e-06/0.502, allocations: 1.031 kB / 0.7826 GB, free: 9.707 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.617e-06/0.502, allocations: 1.875 kB / 0.7826 GB, free: 9.707 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.183e-06/0.502, allocations: 3.906 kB / 0.7826 GB, free: 9.707 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008839/0.5029, allocations: 0.7023 MB / 0.7832 GB, free: 9.164 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.096e-06/0.5029, allocations: 1.969 kB / 0.7833 GB, free: 9.164 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.226e-05/0.503, allocations: 29.11 kB / 0.7833 GB, free: 9.16 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.973e-05/0.5031, allocations: 25.17 kB / 0.7833 GB, free: 9.148 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.304e-05/0.5031, allocations: 9.609 kB / 0.7833 GB, free: 9.145 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007438/0.5039, allocations: 1.413 MB / 0.7847 GB, free: 7.723 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.444e-06/0.5039, allocations: 1.844 kB / 0.7847 GB, free: 7.723 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002605/0.5042, allocations: 317.8 kB / 0.785 GB, free: 7.473 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 7.672e-05/0.5042, allocations: 121.8 kB / 0.7851 GB, free: 7.355 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.891e-05/0.5043, allocations: 6.688 kB / 0.7851 GB, free: 7.352 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001853/0.5045, allocations: 6.688 kB / 0.7851 GB, free: 7.352 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.806e-05/0.5045, allocations: 21.56 kB / 0.7851 GB, free: 7.34 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.038e-05/0.5045, allocations: 5.469 kB / 0.7852 GB, free: 7.34 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0001557/0.5047, allocations: 190.1 kB / 0.7853 GB, free: 7.23 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.2e-07/0.5047, allocations: 4 kB / 0.7853 GB, free: 7.227 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0004986/0.5052, allocations: 80.28 kB / 0.7854 GB, free: 7.207 MB / 0.5606 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 (14): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004186/0.5056, allocations: 0.8509 MB / 0.7862 GB, free: 6.43 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0003931/0.506, allocations: 274.1 kB / 0.7865 GB, free: 6.266 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 3.546e-06/0.506, allocations: 9.156 kB / 0.7865 GB, free: 6.258 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0001702/0.5062, allocations: 181.6 kB / 0.7867 GB, free: 6.125 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005401/0.5068, allocations: 54.11 kB / 0.7867 GB, free: 6.113 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002687/0.5095, allocations: 2.725 MB / 0.7894 GB, free: 4.129 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002182/0.5097, allocations: 0.7883 MB / 0.7902 GB, free: 3.422 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0001254/0.5098, allocations: 47.36 kB / 0.7902 GB, free: 3.414 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.632e-05/0.5099, allocations: 86.58 kB / 0.7903 GB, free: 3.352 MB / 0.5606 GB Notification: Performance of SimCode: time 2.61e-07/0.5099, allocations: 0 / 0.7903 GB, free: 3.352 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03244/0.5424, allocations: 5.405 MB / 0.7956 GB, free: 2.742 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.426/9.969, allocations: 24.16 kB / 0.7956 GB, free: 2.73 MB / 0.5606 GB (rm -f BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.Resistor.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.Resistor.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.Resistor.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.Resistor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Electrical_DC_Loads_Examples_Resistor_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Electrical_DC_Loads_Examples_Resistor.fmu > BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.Resistor.pipe 2>&1)