Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Examples.GridDCLoad.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.AC.OnePhase.Examples.GridDCLoad,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_OnePhase_Examples_GridDCLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Electrical.AC.OnePhase.Examples.GridDCLoad,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_OnePhase_Examples_GridDCLoad",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.006138/0.006138, allocations: 101.2 kB / 15.73 MB, free: 5.523 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.001278/0.001278, allocations: 191.8 kB / 16.67 MB, free: 5.461 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.394/1.394, allocations: 222.9 MB / 240.4 MB, free: 4.18 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002215/0.002216, allocations: 282.8 kB / 290.8 MB, free: 1.781 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9617/0.9617, allocations: 169.3 MB / 0.4983 GB, free: 13.79 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001792/0.001792, allocations: 94.44 kB / 0.6809 GB, free: 0 / 478.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1558/0.1577, allocations: 86.98 MB / 0.7659 GB, free: 8.945 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Examples.GridDCLoad): time 0.004607/0.1623, allocations: 3.072 MB / 0.7689 GB, free: 5.859 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.003102/0.1654, allocations: 1.898 MB / 0.7707 GB, free: 3.949 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002183/0.1657, allocations: 4 kB / 0.7707 GB, free: 3.945 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0009752/0.1667, allocations: 286.8 kB / 0.771 GB, free: 3.664 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.0005138/0.1672, allocations: 191.1 kB / 0.7712 GB, free: 3.477 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006573/0.1679, allocations: 247.2 kB / 0.7714 GB, free: 3.234 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0004302/0.1683, allocations: 326.7 kB / 0.7717 GB, free: 2.914 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003676/0.1687, allocations: 178.2 kB / 0.7719 GB, free: 2.734 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002439/0.1689, allocations: 135.5 kB / 0.772 GB, free: 2.602 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003654/0.1693, allocations: 151.4 kB / 0.7722 GB, free: 2.453 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 4.827e-05/0.1694, allocations: 20 kB / 0.7722 GB, free: 2.434 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006567/0.17, allocations: 403.2 kB / 0.7726 GB, free: 2.039 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0001034/0.1702, allocations: 83.8 kB / 0.7727 GB, free: 1.957 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0001323/0.1703, allocations: 127.3 kB / 0.7728 GB, free: 1.832 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0006929/0.171, allocations: 482.7 kB / 0.7733 GB, free: 1.359 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.171, allocations: 0 / 0.7733 GB, free: 1.359 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.352e-06/0.171, allocations: 0 / 0.7733 GB, free: 1.359 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 8.095e-06/0.171, allocations: 4 kB / 0.7733 GB, free: 1.355 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: 55 * Number of variables: 55 Notification: Performance of Generate backend data structure: time 0.0008867/0.1719, allocations: 0.569 MB / 0.7738 GB, free: 0.7383 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.856e-05/0.172, allocations: 8.031 kB / 0.7738 GB, free: 0.7305 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.096e-05/0.172, allocations: 62.72 kB / 0.7739 GB, free: 0.6602 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008046/0.1729, allocations: 108.5 kB / 0.774 GB, free: 0.5547 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003655/0.1732, allocations: 267.9 kB / 0.7742 GB, free: 260 kB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.789e-05/0.1733, allocations: 16.78 kB / 0.7743 GB, free: 244 kB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.184e-05/0.1733, allocations: 20.38 kB / 0.7743 GB, free: 224 kB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3014/0.4747, allocations: 348.7 kB / 0.7746 GB, free: 14.93 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.57e-05/0.4747, allocations: 4.531 kB / 0.7746 GB, free: 14.93 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.702e-05/0.4748, allocations: 5.844 kB / 0.7746 GB, free: 14.93 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.028e-05/0.4748, allocations: 25.27 kB / 0.7746 GB, free: 14.93 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005177/0.4753, allocations: 292 kB / 0.7749 GB, free: 14.93 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001941/0.4773, allocations: 1.733 MB / 0.7766 GB, free: 13.73 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004351/0.4777, allocations: 322.6 kB / 0.7769 GB, free: 13.59 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001435/0.4779, allocations: 106.2 kB / 0.777 GB, free: 13.57 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 8.419e-05/0.478, allocations: 86.42 kB / 0.7771 GB, free: 13.48 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.98e-05/0.478, allocations: 41.81 kB / 0.7771 GB, free: 13.44 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=16): time 2.024e-06/0.478, allocations: 0.625 kB / 0.7771 GB, free: 13.44 MB / 0.5606 GB Notification: Performance of matching and sorting (n=23): time 0.00237/0.4804, allocations: 0.9687 MB / 0.7781 GB, free: 13.08 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.683e-05/0.4804, allocations: 80.53 kB / 0.7782 GB, free: 12.98 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001973/0.4806, allocations: 217 kB / 0.7784 GB, free: 12.84 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.901e-05/0.4807, allocations: 28.03 kB / 0.7784 GB, free: 12.81 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 7.491e-05/0.4808, allocations: 167.4 kB / 0.7786 GB, free: 12.66 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 5.114e-05/0.4808, allocations: 88.38 kB / 0.7786 GB, free: 12.6 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.539e-05/0.4809, allocations: 63.88 kB / 0.7787 GB, free: 12.56 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 5.697e-05/0.481, allocations: 331.8 kB / 0.779 GB, free: 12.24 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002026/0.4812, allocations: 129.8 kB / 0.7791 GB, free: 12.2 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002377/0.4814, allocations: 213.9 kB / 0.7793 GB, free: 12.05 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000427/0.4819, allocations: 362.5 kB / 0.7797 GB, free: 11.84 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.405e-06/0.4819, allocations: 0.875 kB / 0.7797 GB, free: 11.84 MB / 0.5606 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0008664/0.4827, allocations: 0.5145 MB / 0.7802 GB, free: 11.61 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 2.231e-05/0.4828, allocations: 8.688 kB / 0.7802 GB, free: 11.61 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.004e-05/0.4828, allocations: 3.391 kB / 0.7802 GB, free: 11.61 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005144/0.4833, allocations: 154 kB / 0.7804 GB, free: 11.55 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002548/0.4836, allocations: 59.95 kB / 0.7804 GB, free: 11.54 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002252/0.4858, allocations: 4.189 MB / 0.7845 GB, free: 7.543 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001838/0.486, allocations: 17.39 kB / 0.7845 GB, free: 7.539 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.786e-05/0.4861, allocations: 14.19 kB / 0.7845 GB, free: 7.539 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * 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 (32): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,1), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0001401/0.4862, allocations: 170.9 kB / 0.7847 GB, free: 7.395 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.756e-05/0.4863, allocations: 25.91 kB / 0.7847 GB, free: 7.379 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007372/0.487, allocations: 474.4 kB / 0.7852 GB, free: 7.156 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.098e-06/0.4871, allocations: 2.438 kB / 0.7852 GB, free: 7.156 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.046e-06/0.4871, allocations: 1.031 kB / 0.7852 GB, free: 7.156 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.198e-06/0.4871, allocations: 4.906 kB / 0.7852 GB, free: 7.152 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001378/0.4885, allocations: 1.001 MB / 0.7862 GB, free: 6.52 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.218e-06/0.4885, allocations: 1.938 kB / 0.7862 GB, free: 6.52 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001289/0.4886, allocations: 36.53 kB / 0.7862 GB, free: 6.512 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003506/0.489, allocations: 147.2 kB / 0.7863 GB, free: 6.449 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.968e-05/0.489, allocations: 4.406 kB / 0.7863 GB, free: 6.449 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001933/0.4909, allocations: 4.161 MB / 0.7904 GB, free: 2.445 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.878e-06/0.491, allocations: 3.594 kB / 0.7904 GB, free: 2.445 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007767/0.4917, allocations: 0.6235 MB / 0.791 GB, free: 18 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001297/0.4919, allocations: 121.7 kB / 0.7911 GB, free: 17.89 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.098e-05/0.4919, allocations: 15.66 kB / 0.7911 GB, free: 17.88 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002162/0.4921, allocations: 16.56 kB / 0.7912 GB, free: 17.88 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.632e-05/0.4922, allocations: 25.19 kB / 0.7912 GB, free: 17.87 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.977e-05/0.4922, allocations: 13.09 kB / 0.7912 GB, free: 17.86 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0001303/0.4923, allocations: 158.9 kB / 0.7913 GB, free: 17.76 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.1e-07/0.4924, allocations: 3.844 kB / 0.7914 GB, free: 17.76 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0005065/0.4929, allocations: 90.84 kB / 0.7914 GB, free: 17.75 MB / 0.5762 GB Notification: Model statistics after passing the back-end for simulation: * 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 simulation (21): * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,1), (1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0009922/0.4939, allocations: 1.192 MB / 0.7926 GB, free: 16.78 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0008109/0.4947, allocations: 0.5897 MB / 0.7932 GB, free: 16.43 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.767e-06/0.4947, allocations: 0 / 0.7932 GB, free: 16.43 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0004343/0.4951, allocations: 398.8 kB / 0.7936 GB, free: 16.15 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004893/0.4956, allocations: 52.52 kB / 0.7936 GB, free: 16.14 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003639/0.4993, allocations: 3.308 MB / 0.7968 GB, free: 13.82 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003272/0.4996, allocations: 0.7801 MB / 0.7976 GB, free: 13.11 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0001553/0.4998, allocations: 65.56 kB / 0.7977 GB, free: 13.1 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.14e-05/0.4999, allocations: 70.08 kB / 0.7977 GB, free: 13.05 MB / 0.5762 GB Notification: Performance of SimCode: time 7.12e-07/0.4999, allocations: 2.875 kB / 0.7977 GB, free: 13.05 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02761/0.5275, allocations: 6.83 MB / 0.8044 GB, free: 12.33 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.54/12.07, allocations: 9.375 kB / 0.8044 GB, free: 12.32 MB / 0.5762 GB (rm -f BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Examples.GridDCLoad.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Electrical_AC_OnePhase_Examples_GridDCLoad_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Electrical_AC_OnePhase_Examples_GridDCLoad.fmu > BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe 2>&1)