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.007241/0.007241, allocations: 98.98 kB / 15.73 MB, free: 6.008 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.001726/0.001726, allocations: 189.9 kB / 16.67 MB, free: 5.926 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.268/1.268, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002143/0.002143, allocations: 292.4 kB / 290.8 MB, free: 14.43 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9087/0.9087, allocations: 169.3 MB / 0.4983 GB, free: 4.41 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001795/0.001795, allocations: 95.84 kB / 0.6809 GB, free: 7.473 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3756/0.3774, allocations: 86.98 MB / 0.7659 GB, free: 3.848 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.DC.Sources.Examples.VoltageSource): time 0.004213/0.3817, allocations: 3.203 MB / 0.769 GB, free: 0.6328 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.001962/0.3837, allocations: 1.371 MB / 0.7704 GB, free: 15.25 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001162/0.3838, allocations: 4 kB / 0.7704 GB, free: 15.25 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.0009361/0.3848, allocations: 344.8 kB / 0.7707 GB, free: 14.91 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.0003007/0.3851, allocations: 151.2 kB / 0.7708 GB, free: 14.77 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003264/0.3854, allocations: 147.6 kB / 0.771 GB, free: 14.62 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0003256/0.3858, allocations: 334.6 kB / 0.7713 GB, free: 14.29 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003991/0.3862, allocations: 251.7 kB / 0.7715 GB, free: 14.04 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001686/0.3863, allocations: 135.5 kB / 0.7717 GB, free: 13.91 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002499/0.3866, allocations: 147.4 kB / 0.7718 GB, free: 13.77 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 3.299e-05/0.3866, allocations: 20 kB / 0.7718 GB, free: 13.75 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002532/0.3869, allocations: 175.6 kB / 0.772 GB, free: 13.57 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 8.362e-05/0.387, allocations: 79.8 kB / 0.7721 GB, free: 13.5 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0001141/0.3871, allocations: 127.4 kB / 0.7722 GB, free: 13.37 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0003841/0.3875, allocations: 352 kB / 0.7725 GB, free: 13.03 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 3.457e-06/0.3875, allocations: 0 / 0.7725 GB, free: 13.03 MB / 0.545 GB Notification: Performance of FrontEnd: time 4.859e-06/0.3875, allocations: 0 / 0.7725 GB, free: 13.03 MB / 0.545 GB Notification: Performance of Transformations before backend: time 5.4e-06/0.3875, allocations: 3.938 kB / 0.7725 GB, free: 13.03 MB / 0.545 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.0007938/0.3883, allocations: 0.5493 MB / 0.7731 GB, free: 12.43 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.514e-05/0.3884, allocations: 11.97 kB / 0.7731 GB, free: 12.42 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.298e-05/0.3884, allocations: 62.67 kB / 0.7731 GB, free: 12.35 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005598/0.389, allocations: 80.72 kB / 0.7732 GB, free: 12.27 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002856/0.3893, allocations: 256 kB / 0.7735 GB, free: 11.98 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.421e-05/0.3893, allocations: 12.81 kB / 0.7735 GB, free: 11.97 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.568e-05/0.3894, allocations: 24.38 kB / 0.7735 GB, free: 11.95 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004465/0.3898, allocations: 316.4 kB / 0.7738 GB, free: 11.61 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.065e-05/0.3898, allocations: 0 / 0.7738 GB, free: 11.61 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.623e-05/0.3899, allocations: 8 kB / 0.7738 GB, free: 11.61 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.193e-05/0.3899, allocations: 24.42 kB / 0.7738 GB, free: 11.58 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003498/0.3903, allocations: 217.5 kB / 0.774 GB, free: 11.37 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001469/0.3917, allocations: 1.49 MB / 0.7755 GB, free: 9.715 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003996/0.3922, allocations: 199.7 kB / 0.7757 GB, free: 9.492 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.019e-05/0.3923, allocations: 44.83 kB / 0.7757 GB, free: 9.445 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 1.236e-05/0.3923, allocations: 4 kB / 0.7757 GB, free: 9.441 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.334e-05/0.3923, allocations: 38.56 kB / 0.7758 GB, free: 9.395 MB / 0.545 GB Notification: Performance of pre-optimization done (n=8): time 1.332e-06/0.3923, allocations: 0 / 0.7758 GB, free: 9.395 MB / 0.545 GB Notification: Performance of matching and sorting (n=8): time 0.0005402/0.3929, allocations: 255.4 kB / 0.776 GB, free: 9.117 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.325e-05/0.3929, allocations: 51.41 kB / 0.776 GB, free: 9.055 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001805/0.3931, allocations: 215.7 kB / 0.7763 GB, free: 8.836 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 1.74e-05/0.3931, allocations: 25.7 kB / 0.7763 GB, free: 8.805 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 9.352e-05/0.3932, allocations: 176 kB / 0.7764 GB, free: 8.629 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 2.542e-05/0.3932, allocations: 39.72 kB / 0.7765 GB, free: 8.59 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.77e-05/0.3933, allocations: 29.72 kB / 0.7765 GB, free: 8.555 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 9.469e-05/0.3934, allocations: 330.8 kB / 0.7768 GB, free: 8.223 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.719e-05/0.3935, allocations: 39.98 kB / 0.7769 GB, free: 8.184 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001397/0.3937, allocations: 120.4 kB / 0.777 GB, free: 8.035 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002275/0.3939, allocations: 164.4 kB / 0.7771 GB, free: 7.844 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.3939, allocations: 0 / 0.7771 GB, free: 7.844 MB / 0.545 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0003491/0.3943, allocations: 218.1 kB / 0.7773 GB, free: 7.621 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.59e-05/0.3943, allocations: 10.5 kB / 0.7774 GB, free: 7.613 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.2e-06/0.3943, allocations: 0 / 0.7774 GB, free: 7.613 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001769/0.3945, allocations: 33.06 kB / 0.7774 GB, free: 7.578 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001765/0.3947, allocations: 39.91 kB / 0.7774 GB, free: 7.539 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009735/0.3957, allocations: 1.425 MB / 0.7788 GB, free: 5.969 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001385/0.3958, allocations: 27.77 kB / 0.7788 GB, free: 5.941 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.534e-05/0.3958, allocations: 12 kB / 0.7789 GB, free: 5.93 MB / 0.545 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.0001123/0.396, allocations: 150.4 kB / 0.779 GB, free: 5.773 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.253e-05/0.396, allocations: 15.91 kB / 0.779 GB, free: 5.758 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.082e-05/0.396, allocations: 21.39 kB / 0.779 GB, free: 5.738 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.423e-06/0.396, allocations: 4.062 kB / 0.779 GB, free: 5.734 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.224e-06/0.3961, allocations: 0 / 0.779 GB, free: 5.734 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.174e-06/0.3961, allocations: 0 / 0.779 GB, free: 5.734 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005522/0.3966, allocations: 491.1 kB / 0.7795 GB, free: 5.195 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.693e-06/0.3966, allocations: 0 / 0.7795 GB, free: 5.195 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.676e-05/0.3967, allocations: 16.05 kB / 0.7795 GB, free: 5.18 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.854e-05/0.3968, allocations: 24.84 kB / 0.7795 GB, free: 5.152 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.596e-06/0.3968, allocations: 4 kB / 0.7795 GB, free: 5.148 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008607/0.3977, allocations: 1.425 MB / 0.7809 GB, free: 3.586 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.3977, allocations: 0 / 0.7809 GB, free: 3.586 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002845/0.398, allocations: 244.1 kB / 0.7812 GB, free: 3.328 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 7.661e-05/0.3981, allocations: 100.9 kB / 0.7813 GB, free: 3.211 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.274e-05/0.3981, allocations: 4 kB / 0.7813 GB, free: 3.207 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001249/0.3982, allocations: 8.062 kB / 0.7813 GB, free: 3.199 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.49e-05/0.3983, allocations: 7.984 kB / 0.7813 GB, free: 3.191 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.476e-06/0.3983, allocations: 4 kB / 0.7813 GB, free: 3.188 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0001246/0.3984, allocations: 154.1 kB / 0.7814 GB, free: 3.039 MB / 0.545 GB Notification: Performance of sort global known variables: time 2.81e-07/0.3984, allocations: 0 / 0.7814 GB, free: 3.039 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.000331/0.3988, allocations: 59.84 kB / 0.7815 GB, free: 2.98 MB / 0.545 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.0005679/0.3993, allocations: 0.7728 MB / 0.7823 GB, free: 2.176 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0004211/0.3998, allocations: 227 kB / 0.7825 GB, free: 1.941 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 3.828e-06/0.3998, allocations: 4.125 kB / 0.7825 GB, free: 1.938 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0002202/0.4, allocations: 162.9 kB / 0.7826 GB, free: 1.766 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003717/0.4004, allocations: 42.08 kB / 0.7827 GB, free: 1.727 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00221/0.4026, allocations: 2.149 MB / 0.7848 GB, free: 15.43 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002813/0.4029, allocations: 0.7476 MB / 0.7855 GB, free: 14.66 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0001022/0.403, allocations: 29.53 kB / 0.7855 GB, free: 14.63 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.903e-05/0.4031, allocations: 63.41 kB / 0.7856 GB, free: 14.57 MB / 0.5606 GB Notification: Performance of SimCode: time 1.483e-06/0.4031, allocations: 0 / 0.7856 GB, free: 14.57 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02202/0.4251, allocations: 4.036 MB / 0.7895 GB, free: 10.7 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.001/9.426, allocations: 6.75 kB / 0.7895 GB, free: 10.7 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 & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Electrical.DC.Sources.Examples.VoltageSource_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 BuildingSystems_BuildingSystems_Electrical_DC_Sources_Examples_VoltageSource.fmu > BuildingSystems_BuildingSystems.Electrical.DC.Sources.Examples.VoltageSource.pipe 2>&1)