Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.DC.Sources.Examples.VoltageSource.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.Sources.Examples.VoltageSource,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_DC_Sources_Examples_VoltageSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Electrical.DC.Sources.Examples.VoltageSource,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_DC_Sources_Examples_VoltageSource",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.001327/0.001326, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001527/0.001527, allocations: 197.7 kB / 16.53 MB, free: 6.66 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.353/1.353, allocations: 222.9 MB / 240.2 MB, free: 4.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002176/0.002176, allocations: 286.4 kB / 290.7 MB, free: 2.008 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9226/0.9226, allocations: 169.3 MB / 0.4982 GB, free: 13.95 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001776/0.001776, allocations: 99.8 kB / 0.5954 GB, free: 27.85 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1366/0.1384, allocations: 86.97 MB / 0.6803 GB, free: 0.5898 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.DC.Sources.Examples.VoltageSource): time 0.004846/0.1432, allocations: 3.2 MB / 0.6834 GB, free: 13.39 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.002241/0.1455, allocations: 1.371 MB / 0.6847 GB, free: 12.01 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002338/0.1458, allocations: 7.938 kB / 0.6848 GB, free: 12 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001049/0.1469, allocations: 334.6 kB / 0.6851 GB, free: 11.68 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000426/0.1473, allocations: 153.3 kB / 0.6852 GB, free: 11.53 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004238/0.1477, allocations: 144.2 kB / 0.6854 GB, free: 11.39 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004177/0.1482, allocations: 332.3 kB / 0.6857 GB, free: 11.07 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005099/0.1487, allocations: 252.3 kB / 0.6859 GB, free: 10.82 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002695/0.149, allocations: 139.5 kB / 0.686 GB, free: 10.68 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003564/0.1493, allocations: 151.4 kB / 0.6862 GB, free: 10.54 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 5.221e-05/0.1494, allocations: 20 kB / 0.6862 GB, free: 10.52 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003603/0.1498, allocations: 163.7 kB / 0.6864 GB, free: 10.36 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001047/0.1499, allocations: 87.72 kB / 0.6865 GB, free: 10.27 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001349/0.15, allocations: 119.5 kB / 0.6866 GB, free: 10.15 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000506/0.1505, allocations: 354.8 kB / 0.6869 GB, free: 9.805 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.1506, allocations: 4 kB / 0.6869 GB, free: 9.801 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.1506, allocations: 0 / 0.6869 GB, free: 9.801 MB / 494.1 MB Notification: Performance of Transformations before backend: time 7.624e-06/0.1506, allocations: 0 / 0.6869 GB, free: 9.801 MB / 494.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.0008985/0.1515, allocations: 0.538 MB / 0.6874 GB, free: 9.215 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.821e-05/0.1515, allocations: 8.031 kB / 0.6874 GB, free: 9.207 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.857e-05/0.1516, allocations: 58.72 kB / 0.6875 GB, free: 9.141 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005863/0.1522, allocations: 84.58 kB / 0.6876 GB, free: 9.059 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003019/0.1525, allocations: 249.7 kB / 0.6878 GB, free: 8.777 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.903e-05/0.1525, allocations: 20.8 kB / 0.6878 GB, free: 8.758 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.143e-05/0.1526, allocations: 16.38 kB / 0.6879 GB, free: 8.742 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004749/0.1531, allocations: 320.5 kB / 0.6882 GB, free: 8.406 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.173e-05/0.1531, allocations: 3.938 kB / 0.6882 GB, free: 8.402 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.574e-05/0.1531, allocations: 8 kB / 0.6882 GB, free: 8.395 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.253e-05/0.1531, allocations: 16.42 kB / 0.6882 GB, free: 8.379 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003606/0.1535, allocations: 213.5 kB / 0.6884 GB, free: 8.172 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001549/0.1551, allocations: 1.494 MB / 0.6898 GB, free: 6.512 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004133/0.1555, allocations: 207.7 kB / 0.69 GB, free: 6.281 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.307e-05/0.1556, allocations: 44.78 kB / 0.6901 GB, free: 6.234 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.447e-05/0.1556, allocations: 4 kB / 0.6901 GB, free: 6.23 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.149e-05/0.1556, allocations: 34.56 kB / 0.6901 GB, free: 6.188 MB / 494.1 MB Notification: Performance of pre-optimization done (n=8): time 1.283e-06/0.1557, allocations: 0 / 0.6901 GB, free: 6.188 MB / 494.1 MB Notification: Performance of matching and sorting (n=8): time 0.000551/0.1562, allocations: 267.4 kB / 0.6904 GB, free: 5.898 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.07e-05/0.1563, allocations: 55.34 kB / 0.6904 GB, free: 5.832 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001874/0.1564, allocations: 216.3 kB / 0.6906 GB, free: 5.613 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.758e-05/0.1565, allocations: 25.7 kB / 0.6907 GB, free: 5.582 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001034/0.1566, allocations: 171.7 kB / 0.6908 GB, free: 5.41 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.357e-05/0.1566, allocations: 31.55 kB / 0.6909 GB, free: 5.379 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.635e-05/0.1567, allocations: 33.72 kB / 0.6909 GB, free: 5.34 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001001/0.1568, allocations: 330.8 kB / 0.6912 GB, free: 5.008 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001013/0.1569, allocations: 43.97 kB / 0.6912 GB, free: 4.965 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001287/0.157, allocations: 118.3 kB / 0.6914 GB, free: 4.82 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002265/0.1573, allocations: 168.4 kB / 0.6915 GB, free: 4.625 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.336e-06/0.1573, allocations: 3.938 kB / 0.6915 GB, free: 4.621 MB / 494.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0003699/0.1576, allocations: 214 kB / 0.6917 GB, free: 4.402 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.579e-05/0.1577, allocations: 8.281 kB / 0.6917 GB, free: 4.395 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.656e-06/0.1577, allocations: 4 kB / 0.6917 GB, free: 4.391 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001656/0.1579, allocations: 28.78 kB / 0.6918 GB, free: 4.359 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001336/0.158, allocations: 32.05 kB / 0.6918 GB, free: 4.328 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001053/0.1591, allocations: 1.429 MB / 0.6932 GB, free: 2.758 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001389/0.1592, allocations: 15.88 kB / 0.6932 GB, free: 2.742 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.467e-05/0.1592, allocations: 8 kB / 0.6932 GB, free: 2.734 MB / 494.1 MB 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 (18): * Single equations (assignments): 17 * 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.0001395/0.1594, allocations: 162.5 kB / 0.6934 GB, free: 2.566 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.204e-05/0.1594, allocations: 15.81 kB / 0.6934 GB, free: 2.551 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.263e-05/0.1595, allocations: 17.41 kB / 0.6934 GB, free: 2.539 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.673e-06/0.1595, allocations: 0 / 0.6934 GB, free: 2.539 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.368e-06/0.1595, allocations: 4 kB / 0.6934 GB, free: 2.535 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.589e-06/0.1595, allocations: 3.984 kB / 0.6934 GB, free: 2.531 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006087/0.1601, allocations: 491.1 kB / 0.6939 GB, free: 1.992 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.843e-06/0.1601, allocations: 0 / 0.6939 GB, free: 1.992 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.69e-05/0.1602, allocations: 12 kB / 0.6939 GB, free: 1.98 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.61e-05/0.1603, allocations: 24.83 kB / 0.6939 GB, free: 1.953 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.081e-05/0.1603, allocations: 4 kB / 0.6939 GB, free: 1.949 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009008/0.1612, allocations: 1.418 MB / 0.6953 GB, free: 400 kB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.1612, allocations: 0 / 0.6953 GB, free: 400 kB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002774/0.1615, allocations: 244.2 kB / 0.6955 GB, free: 136 kB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.433e-05/0.1616, allocations: 97.02 kB / 0.6956 GB, free: 20 kB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.326e-05/0.1616, allocations: 11.92 kB / 0.6956 GB, free: 8 kB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001387/0.1618, allocations: 12.05 kB / 0.6956 GB, free: 15.99 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.426e-05/0.1618, allocations: 3.938 kB / 0.6957 GB, free: 15.99 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.375e-06/0.1618, allocations: 4 kB / 0.6957 GB, free: 15.99 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001212/0.162, allocations: 157.4 kB / 0.6958 GB, free: 15.84 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.2e-07/0.162, allocations: 0 / 0.6958 GB, free: 15.84 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003311/0.1623, allocations: 55.84 kB / 0.6959 GB, free: 15.78 MB / 0.4981 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 (7): * Single equations (assignments): 6 * 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.0005347/0.1629, allocations: 0.7697 MB / 0.6966 GB, free: 14.98 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0004239/0.1633, allocations: 234.5 kB / 0.6968 GB, free: 14.74 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.806e-06/0.1633, allocations: 0 / 0.6968 GB, free: 14.74 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0002036/0.1635, allocations: 163.2 kB / 0.697 GB, free: 14.57 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003772/0.1639, allocations: 44.62 kB / 0.697 GB, free: 14.52 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002221/0.1661, allocations: 2.151 MB / 0.6991 GB, free: 12.23 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002978/0.1665, allocations: 0.7515 MB / 0.6999 GB, free: 11.46 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0001147/0.1666, allocations: 29.53 kB / 0.6999 GB, free: 11.43 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.996e-05/0.1667, allocations: 55.42 kB / 0.6999 GB, free: 11.38 MB / 0.4981 GB Notification: Performance of SimCode: time 3.6e-07/0.1667, allocations: 4 kB / 0.7 GB, free: 11.37 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.417/1.583, allocations: 3.941 MB / 0.7038 GB, free: 7.574 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.84/12.43, allocations: 7.062 kB / 0.7038 GB, free: 7.57 MB / 0.4981 GB (rm -f BuildingSystems_BuildingSystems.Electrical.DC.Sources.Examples.VoltageSource.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.DC.Sources.Examples.VoltageSource.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.DC.Sources.Examples.VoltageSource.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.DC.Sources.Examples.VoltageSource.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Electrical_DC_Sources_Examples_VoltageSource_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Electrical_DC_Sources_Examples_VoltageSource.fmu > BuildingSystems_BuildingSystems.Electrical.DC.Sources.Examples.VoltageSource.pipe 2>&1)