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.005559/0.005559, allocations: 100.8 kB / 15.73 MB, free: 6.047 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.001258/0.001258, allocations: 197.1 kB / 16.68 MB, free: 5.977 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.347/1.347, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002179/0.002179, allocations: 283 kB / 290.8 MB, free: 1.934 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9791/0.9791, allocations: 169.3 MB / 0.4983 GB, free: 13.8 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001918/0.001918, allocations: 100.3 kB / 0.6809 GB, free: 36 kB / 478.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1555/0.1574, allocations: 86.97 MB / 0.7659 GB, free: 8.988 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.DC.Sources.Examples.VoltageSource): time 0.004921/0.1624, allocations: 3.207 MB / 0.769 GB, free: 5.77 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.002385/0.1648, allocations: 1.367 MB / 0.7703 GB, free: 4.395 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002457/0.1651, allocations: 4 kB / 0.7703 GB, free: 4.391 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.001148/0.1663, allocations: 350.6 kB / 0.7707 GB, free: 4.047 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.0004809/0.1668, allocations: 143.2 kB / 0.7708 GB, free: 3.906 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004234/0.1672, allocations: 143.6 kB / 0.771 GB, free: 3.766 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0004702/0.1677, allocations: 338.5 kB / 0.7713 GB, free: 3.434 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004686/0.1682, allocations: 259.7 kB / 0.7715 GB, free: 3.176 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002498/0.1684, allocations: 143.5 kB / 0.7717 GB, free: 3.035 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003202/0.1688, allocations: 155.4 kB / 0.7718 GB, free: 2.883 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 4.214e-05/0.1688, allocations: 20 kB / 0.7718 GB, free: 2.863 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003191/0.1691, allocations: 163.7 kB / 0.772 GB, free: 2.703 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0001075/0.1693, allocations: 87.78 kB / 0.7721 GB, free: 2.617 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0001349/0.1694, allocations: 119.4 kB / 0.7722 GB, free: 2.5 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0004737/0.1699, allocations: 358.8 kB / 0.7725 GB, free: 2.148 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 4.969e-06/0.1699, allocations: 0 / 0.7725 GB, free: 2.148 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.182e-06/0.1699, allocations: 0 / 0.7725 GB, free: 2.148 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 1.026e-05/0.1699, allocations: 4 kB / 0.7725 GB, free: 2.145 MB / 0.5606 GB 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.0009494/0.1709, allocations: 0.5458 MB / 0.7731 GB, free: 1.551 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.083e-05/0.1709, allocations: 8.031 kB / 0.7731 GB, free: 1.543 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.054e-05/0.171, allocations: 54.73 kB / 0.7731 GB, free: 1.48 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005895/0.1716, allocations: 76.58 kB / 0.7732 GB, free: 1.406 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003468/0.172, allocations: 258.9 kB / 0.7734 GB, free: 1.117 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.234e-05/0.172, allocations: 24.75 kB / 0.7735 GB, free: 1.094 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.681e-05/0.172, allocations: 16.38 kB / 0.7735 GB, free: 1.078 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005049/0.1725, allocations: 308.5 kB / 0.7738 GB, free: 0.7539 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.196e-05/0.1726, allocations: 0 / 0.7738 GB, free: 0.7539 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.104e-05/0.1726, allocations: 11.98 kB / 0.7738 GB, free: 0.7422 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.647e-05/0.1726, allocations: 24.36 kB / 0.7738 GB, free: 0.7188 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000379/0.173, allocations: 213.6 kB / 0.774 GB, free: 0.5078 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3176/0.4907, allocations: 1.478 MB / 0.7755 GB, free: 14.01 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004431/0.4912, allocations: 204.1 kB / 0.7757 GB, free: 13.89 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001042/0.4913, allocations: 46.23 kB / 0.7757 GB, free: 13.88 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 1.648e-05/0.4913, allocations: 2.578 kB / 0.7757 GB, free: 13.88 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.766e-05/0.4913, allocations: 35.88 kB / 0.7757 GB, free: 13.84 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=8): time 1.783e-06/0.4913, allocations: 0.8125 kB / 0.7757 GB, free: 13.84 MB / 0.5606 GB Notification: Performance of matching and sorting (n=8): time 0.0005774/0.4919, allocations: 265 kB / 0.776 GB, free: 13.71 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.392e-05/0.4919, allocations: 56.59 kB / 0.776 GB, free: 13.64 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002096/0.4922, allocations: 204.4 kB / 0.7762 GB, free: 13.54 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.348e-05/0.4922, allocations: 29.8 kB / 0.7763 GB, free: 13.51 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 8.574e-05/0.4923, allocations: 178 kB / 0.7764 GB, free: 13.39 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 2.055e-05/0.4923, allocations: 23.06 kB / 0.7765 GB, free: 13.38 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.101e-05/0.4924, allocations: 43.81 kB / 0.7765 GB, free: 13.36 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 5.777e-05/0.4924, allocations: 325.3 kB / 0.7768 GB, free: 13.05 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001015/0.4925, allocations: 46.48 kB / 0.7769 GB, free: 13.05 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001139/0.4927, allocations: 110.8 kB / 0.777 GB, free: 12.97 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000215/0.4929, allocations: 169.5 kB / 0.7771 GB, free: 12.89 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.206e-06/0.4929, allocations: 1.031 kB / 0.7771 GB, free: 12.89 MB / 0.5606 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.000353/0.4932, allocations: 214.9 kB / 0.7773 GB, free: 12.83 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.85e-05/0.4933, allocations: 8.438 kB / 0.7773 GB, free: 12.83 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.164e-06/0.4933, allocations: 1.656 kB / 0.7773 GB, free: 12.83 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001626/0.4935, allocations: 29.91 kB / 0.7774 GB, free: 12.82 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001362/0.4936, allocations: 34.39 kB / 0.7774 GB, free: 12.82 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007699/0.4944, allocations: 1.429 MB / 0.7788 GB, free: 11.47 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001481/0.4945, allocations: 25.53 kB / 0.7788 GB, free: 11.46 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.639e-05/0.4946, allocations: 8.406 kB / 0.7788 GB, free: 11.46 MB / 0.5606 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 (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.0001022/0.4947, allocations: 146.7 kB / 0.779 GB, free: 11.34 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.851e-05/0.4947, allocations: 18.66 kB / 0.779 GB, free: 11.33 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.107e-05/0.4948, allocations: 21.72 kB / 0.779 GB, free: 11.32 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.254e-06/0.4948, allocations: 0.9688 kB / 0.779 GB, free: 11.32 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.748e-06/0.4948, allocations: 1.969 kB / 0.779 GB, free: 11.32 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.496e-06/0.4948, allocations: 4.5 kB / 0.779 GB, free: 11.32 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005457/0.4953, allocations: 489.5 kB / 0.7795 GB, free: 11.01 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.475e-06/0.4953, allocations: 0.5625 kB / 0.7795 GB, free: 11.01 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.5e-05/0.4954, allocations: 15.86 kB / 0.7795 GB, free: 11.01 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.813e-05/0.4955, allocations: 26.5 kB / 0.7795 GB, free: 11 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.028e-05/0.4955, allocations: 5.031 kB / 0.7795 GB, free: 11 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006988/0.4962, allocations: 1.42 MB / 0.7809 GB, free: 9.633 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.4962, allocations: 1.344 kB / 0.7809 GB, free: 9.633 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002563/0.4965, allocations: 241.3 kB / 0.7811 GB, free: 9.453 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 5.798e-05/0.4966, allocations: 99.47 kB / 0.7812 GB, free: 9.348 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.794e-05/0.4966, allocations: 1.062 kB / 0.7812 GB, free: 9.348 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001221/0.4967, allocations: 11.64 kB / 0.7812 GB, free: 9.344 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.193e-05/0.4968, allocations: 12.38 kB / 0.7813 GB, free: 9.34 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.649e-06/0.4968, allocations: 4.094 kB / 0.7813 GB, free: 9.34 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0001126/0.4969, allocations: 150.4 kB / 0.7814 GB, free: 9.242 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.31e-07/0.4969, allocations: 0 / 0.7814 GB, free: 9.242 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0003427/0.4973, allocations: 56.03 kB / 0.7815 GB, free: 9.23 MB / 0.5606 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.0004103/0.4977, allocations: 0.7728 MB / 0.7822 GB, free: 8.527 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0004096/0.4981, allocations: 228.4 kB / 0.7824 GB, free: 8.383 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.4981, allocations: 0 / 0.7824 GB, free: 8.383 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0001851/0.4983, allocations: 162.8 kB / 0.7826 GB, free: 8.258 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003768/0.4987, allocations: 36.78 kB / 0.7826 GB, free: 8.25 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002185/0.5009, allocations: 2.162 MB / 0.7847 GB, free: 6.574 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002086/0.5011, allocations: 0.7528 MB / 0.7855 GB, free: 5.871 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0001069/0.5012, allocations: 28.81 kB / 0.7855 GB, free: 5.867 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.439e-05/0.5013, allocations: 56.73 kB / 0.7856 GB, free: 5.828 MB / 0.5606 GB Notification: Performance of SimCode: time 2.4e-07/0.5013, allocations: 0 / 0.7856 GB, free: 5.828 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02485/0.5262, allocations: 4.029 MB / 0.7895 GB, free: 5.324 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.248/9.774, allocations: 9.156 kB / 0.7895 GB, free: 5.32 MB / 0.5606 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)